home · contact · privacy
Move work so far into repo.
[redo-blog] / test.sh
1 #!/bin/sh
2
3 rm -rf test/test_dir
4 ./add_dir.sh test/test_dir
5 cp test/test_files/test.md test/test_dir/
6 cp test/test_files/foo.rst test/test_dir/
7 cp test/test_files/bar\ baz.md test/test_dir/
8 cd test/test_dir
9 redo
10 cd ../..
11 echo "== index.html diff test =="
12 diff test/test_files/index.html test/test_dir/index.html
13 if [ "$?" = "0" ]; then
14   echo "== test SUCCESS =="
15 else
16   echo "== test FAILURE =="
17 fi