diff --git a/doc/codelab/wiki/test.sh b/doc/codelab/wiki/test.sh index 5b752fe3c2..5aad5704f1 100755 --- a/doc/codelab/wiki/test.sh +++ b/doc/codelab/wiki/test.sh @@ -1,4 +1,4 @@ -#1/bin/bash +#!/bin/bash ./final.bin & wiki_pid=$! @@ -13,11 +13,11 @@ trap cleanup INT sleep 1 curl -s -o test_edit.out http://localhost:8080/edit/Test -cmp test_edit.out test_edit.good || cleanup 1 +diff -u test_edit.out test_edit.good || cleanup 1 curl -s -o /dev/null -d body=some%20content http://localhost:8080/save/Test -cmp Test.txt test_Test.txt.good || cleanup 1 +diff -u Test.txt test_Test.txt.good || cleanup 1 curl -s -o test_view.out http://localhost:8080/view/Test -cmp test_view.out test_view.good || cleanup 1 +diff -u test_view.out test_view.good || cleanup 1 echo "Passed" cleanup 0 diff --git a/doc/codelab/wiki/test_edit.good b/doc/codelab/wiki/test_edit.good index e4edf8cb23..36c6dbb732 100644 --- a/doc/codelab/wiki/test_edit.good +++ b/doc/codelab/wiki/test_edit.good @@ -1,6 +1,6 @@