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/
11 for file in test/test_files/*.html; do
12 cmp_file=`echo "$file" | sed 's/test_files/test_dir/'`
13 printf "== %s diff test ==\n" "$cmp_file"
14 diff "$file" "$cmp_file"
15 if [ "$?" = "0" ]; then
16 echo "== test SUCCESS =="
18 echo "== test FAILURE =="
21 for file in test/test_files/*meta; do
22 if [ "$file" = "test/test_files/uuid.meta" ]; then
26 cmp_file=`echo "$file" | sed 's/test_files/test_dir/'`
27 printf "== %s diff test ==\n" "$cmp_file"
28 diff "$file" "$cmp_file"
29 if [ "$?" = "0" ]; then
30 echo "== test SUCCESS =="
32 echo "== test FAILURE =="