gmi-web/test.sh

10 lines
349 B
Bash
Raw Normal View History

2021-02-02 22:02:09 +00:00
./cli.js --lang en --images --audio --video "example/*.gmi"
if cmp -s "example/test.html" "example/expected.html"; then
printf "PASS: test.html matches expected.html!\n"
else
printf "FAIL: test.html DOES NOT match expected.html!\n"
cmp "example/test.html" "example/expected.html"
diff "example/test.html" "example/expected.html"
exit 1
fi