mirror of
https://github.com/golang/go
synced 2024-11-25 04:07:55 -07:00
codelab/wiki: fix build
TBR=adg CC=golang-dev https://golang.org/cl/4077045
This commit is contained in:
parent
e46e192857
commit
770acbe7b8
@ -1,4 +1,4 @@
|
|||||||
#1/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
./final.bin &
|
./final.bin &
|
||||||
wiki_pid=$!
|
wiki_pid=$!
|
||||||
@ -13,11 +13,11 @@ trap cleanup INT
|
|||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
curl -s -o test_edit.out http://localhost:8080/edit/Test
|
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
|
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
|
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"
|
echo "Passed"
|
||||||
cleanup 0
|
cleanup 0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<h1>Editing Test</h1>
|
<h1>Editing Test</h1>
|
||||||
|
|
||||||
<form action="/save/Test" method="POST">
|
<form action="/save/Test" method="POST">
|
||||||
<div><textarea name="Body" rows="20" cols="80"></textarea></div>
|
<div><textarea name="body" rows="20" cols="80"></textarea></div>
|
||||||
<div><input type="submit" value="Save"></div>
|
<div><input type="submit" value="Save"></div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user