gmi-web/test.sh
Talon Poole 2ade53f268 three --css modes: gmi.css, base and none
when "none" inline tags will be wrapped in <p>

--image, --audio and --video now accept the extensions to inline
  so what's possible to load isn't maintained here

--lang is now referred to as --html
  --html and --body are mutually exclusive
2021-02-11 23:26:29 +00:00

11 lines
387 B
Bash
Executable file

rm -rf "example/test.html"
./cli.js --image jpg --audio mp3 --video mp4 --html en "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