Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
770acbe7
Commit
770acbe7
authored
Jan 26, 2011
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
codelab/wiki: fix build
TBR=adg CC=golang-dev
https://golang.org/cl/4077045
parent
e46e1928
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
doc/codelab/wiki/test.sh
doc/codelab/wiki/test.sh
+4
-4
doc/codelab/wiki/test_edit.good
doc/codelab/wiki/test_edit.good
+1
-1
No files found.
doc/codelab/wiki/test.sh
View file @
770acbe7
#
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
...
...
doc/codelab/wiki/test_edit.good
View file @
770acbe7
<h1>Editing Test</h1>
<form action="/save/Test" method="POST">
<div><textarea name="
B
ody" rows="20" cols="80"></textarea></div>
<div><textarea name="
b
ody" rows="20" cols="80"></textarea></div>
<div><input type="submit" value="Save"></div>
</form>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment