START usr.bin/sdiff 2024-11-22T00:37:59Z ==== test-lflag ==== sdiff -l /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 | diff -u /usr/src/regress/usr.bin/sdiff/lflag.out - ==== test-sflag ==== sdiff -s /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 | diff -u /usr/src/regress/usr.bin/sdiff/sflag.out - ==== test-wflag ==== sdiff -w 40 /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 | diff -u /usr/src/regress/usr.bin/sdiff/wflag.out - ==== test-tabs ==== sdiff /usr/src/regress/usr.bin/sdiff/tabs.in /usr/src/regress/usr.bin/sdiff/tabs.in | diff -u /usr/src/regress/usr.bin/sdiff/tabs.out - ==== test-tabends ==== sdiff -w30 /usr/src/regress/usr.bin/sdiff/tabends /dev/null | diff -u /usr/src/regress/usr.bin/sdiff/tabends.out - ==== test-tabends2 ==== sdiff -w30 /dev/null /usr/src/regress/usr.bin/sdiff/tabends | diff -u /usr/src/regress/usr.bin/sdiff/tabends2.out - ==== test-tabends3 ==== sdiff -w19 /usr/src/regress/usr.bin/sdiff/tabends /dev/null | diff -u /usr/src/regress/usr.bin/sdiff/tabends3.out - ==== test-merge ==== yes l | sdiff -o merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file1 merge.out ==== test-merge2 ==== yes r | sdiff -o merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file2 merge.out ==== test-merge3 ==== yes el | VISUAL=cat sdiff -o merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file1 merge.out ==== test-merge4 ==== yes er | VISUAL=cat sdiff -o merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file2 merge.out ==== test-merge5 ==== yes l | sdiff -so merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file1 merge.out ==== test-merge6 ==== yes r | sdiff -so merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file2 merge.out ==== test-merge7 ==== yes l | sdiff -lo merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file1 merge.out ==== test-merge8 ==== yes r | sdiff -lo merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file2 merge.out ==== test-merge9 ==== yes l | sdiff -lso merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file1 merge.out ==== test-merge10 ==== yes r | sdiff -lso merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file2 merge.out ==== test-merge11 ==== { while :; do echo s;echo l;echo v;echo l;done; } | sdiff -o merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file1 merge.out ==== test-merge12 ==== { while :; do echo s;echo r;echo v;echo r;done; } | sdiff -o merge.out /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 >/dev/null || true diff -u /usr/src/regress/usr.bin/sdiff/file2 merge.out ==== test-same ==== sdiff /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file1 | diff -u /usr/src/regress/usr.bin/sdiff/same.out - ==== test-oneline ==== sdiff /dev/null /usr/src/regress/usr.bin/sdiff/oneline.in | fgrep -q abcd ==== test-oneline2 ==== sdiff /usr/src/regress/usr.bin/sdiff/oneline.in /dev/null | fgrep -q abcd ==== test-dot ==== sdiff /dev/null /usr/src/regress/usr.bin/sdiff/dot.in | fgrep -q '> .' ==== test-dot2 ==== sdiff /usr/src/regress/usr.bin/sdiff/dot.in /dev/null | fgrep -q . ==== test-short ==== diff -u /usr/src/regress/usr.bin/sdiff/short.out /usr/src/regress/usr.bin/sdiff/short.in ==== test-stdin ==== echo stdin | sdiff /dev/null /dev/stdin | fgrep -q '> stdin' ==== test-stdin2 ==== echo stdin | sdiff /dev/stdin /dev/null | fgrep -q stdin ==== test-Iflag12 ==== sdiff -w 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 | diff -u - /usr/src/regress/usr.bin/sdiff/Iflag12.out ==== test-Iflag21 ==== sdiff -w 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file2 /usr/src/regress/usr.bin/sdiff/file1 | diff -u - /usr/src/regress/usr.bin/sdiff/Iflag21.out ==== test-Isflag12 ==== sdiff -sw 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 | diff -u - /usr/src/regress/usr.bin/sdiff/Isflag12.out ==== test-Isflag21 ==== sdiff -sw 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file2 /usr/src/regress/usr.bin/sdiff/file1 | diff -u - /usr/src/regress/usr.bin/sdiff/Isflag21.out ==== test-Ilflag12 ==== sdiff -lw 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 | diff -u - /usr/src/regress/usr.bin/sdiff/Ilflag12.out ==== test-Ilflag21 ==== sdiff -lw 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file2 /usr/src/regress/usr.bin/sdiff/file1 | diff -u - /usr/src/regress/usr.bin/sdiff/Ilflag21.out ==== test-Ilsflag12 ==== sdiff -sw 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file1 /usr/src/regress/usr.bin/sdiff/file2 | diff -u - /usr/src/regress/usr.bin/sdiff/Ilsflag12.out ==== test-Ilsflag21 ==== sdiff -sw 125 -I '.*filename.*' /usr/src/regress/usr.bin/sdiff/file2 /usr/src/regress/usr.bin/sdiff/file1 | diff -u - /usr/src/regress/usr.bin/sdiff/Ilsflag21.out PASS usr.bin/sdiff Duration 0m01.29s