Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
传
传输层实验之五: TCP连接器实现
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
计算机网络-协议实现
传输层实验之五
传输层实验之五: TCP连接器实现
Commits
d2c3ab58
Commit
d2c3ab58
authored
Dec 21, 2021
by
张三
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update webget_t.sh
parent
2076bef1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
tests/webget_t.sh
tests/webget_t.sh
+4
-7
No files found.
tests/webget_t.sh
View file @
d2c3ab58
#!/bin/bash
#/headless/sponge/tap.sh start
WEB_HASH
=
`
./apps/webget cs144.keithw.org /hasher/xyzzy |
tee
/dev/stderr |
tail
-n
1
`
/headless/sponge/tap.sh start
service apache2 start
echo
"QWx0NhMPkoM/bJr/ohvHXlviFhOyYrYb+qqdOnwLYo4"
>
/var/www/html/xyzzy
WEB_HASH
=
`
./apps/webget 1
27.0.
0.1 /xyzzy |
tee
/dev/stderr |
tail
-n
1
`
WEB_HASH
=
`
./apps/webget 1
69.254.1
0.1 /xyzzy |
tee
/dev/stderr |
tail
-n
1
`
CORRECT_HASH
=
"QWx0NhMPkoM/bJr/ohvHXlviFhOyYrYb+qqdOnwLYo4"
if
[
"
${
WEB_HASH
}
"
!=
"
${
CORRECT_HASH
}
"
]
;
then
echo
ERROR: webget returned output that did not match the
test
\'
s expectations
exit
1
fi
exit
0
if
[
"
${
WEB_HASH
}
"
!=
"
${
CORRECT_HASH
}
"
]
;
then
\ No newline at end of file
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