Differences between revisions 1 and 2
Revision 1 as of 2004-05-28 08:25:07
Size: 72
Editor: anonymous
Comment:
Revision 2 as of 2004-05-28 08:52:59
Size: 303
Editor: anonymous
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:

Simple file compare:


set test "file compare"

send "diff -s exp.dat res.dat\r"
expect "diff -s exp.dat res.dat\r\n"
expect {{{{
    -re "^Files exp.dat and res.dat are identical." {pass "$test"}
    default {fail "$test"}
}}}
}

Page for test examples.

Simple file compare:

set test "file compare"

send "diff -s exp.dat res.dat\r" expect "diff -s exp.dat res.dat\r\n" expect