X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=test.sh;h=97d0fbf1ccd88f6bad431d69044d67b04854907e;hb=93be8e855138454b2dc2a1108702abc933209d78;hp=00194ba7f644bebf3e245292be75b20e11ba5e70;hpb=58272f437f554daa14ac1dfdf9902d48c17841bf;p=redo-blog
diff --git a/test.sh b/test.sh
index 00194ba..97d0fbf 100755
--- a/test.sh
+++ b/test.sh
@@ -8,10 +8,13 @@ cp test/test_files/bar\ baz.md test/test_dir/
cd test/test_dir
redo
cd ../..
-echo "== index.html diff test =="
-diff test/test_files/index.html test/test_dir/index.html
-if [ "$?" = "0" ]; then
- echo "== test SUCCESS =="
-else
- echo "== test FAILURE =="
-fi
+for file in test/test_files/*.html; do
+ cmp_file=`echo "$file" | sed 's/test_files/test_dir/'`
+ printf "== %s diff test ==\n" "$cmp_file"
+ diff "$file" "$cmp_file"
+ if [ "$?" = "0" ]; then
+ echo "== test SUCCESS =="
+ else
+ echo "== test FAILURE =="
+ fi
+done