use git diff for test.

This commit is contained in:
Christopher Jeffrey 2013-03-06 04:10:13 -06:00
parent 78c2803523
commit e2621f4025

View File

@ -1,5 +1,11 @@
#!/bin/bash
node test/tput.js "$@" | tee out
diff -u -s test/terminfo out | less -c -R
out=$(git diff --color=always --no-index test/terminfo out)
rm out
if test -n "$out"; then
echo "$out" | less -c -R
else
echo 'Files are identical.'
fi