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 test/test_files/*.meta; 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 uuid_file=test/test_dir/uuid.meta
22 printf "== %s UUID pattern match test ==\n" "$uuid_file"
23 if cat "$uuid_file" | grep -Eq "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; then
24 echo "== test SUCCESS =="
26 echo "== test FAILURE =="