shithub: riscv

ref: 613fd6b4294ad3277a91c9a2e58b2b2d4f22ab1c
dir: /sys/src/cmd/diff/test/diff.rc/

View raw version
#!/bin/rc

# tests with no line endings
# are broken; fix them later
# tests=`{seq 15}
tests=(1 2 3 4 5 11 12 13 15)
for(t in $tests){
	echo ../$O.diff -u diff-t$t.1 diff-t$t.2
	../$O.diff -u diff-t$t.1 diff-t$t.2 > diff-t$t.out
	cmp diff-t$t.out diff-t$t.expected #|| {echo 'failed '$t; exit failed}
}