mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
12 lines
328 B
Bash
12 lines
328 B
Bash
#!/bin/bash
|
|
|
|
source defines.sh
|
|
|
|
token=$(create_token)
|
|
start_server "$token"
|
|
dd if=/dev/urandom of="$tmp/random.bytes" bs=$((64*1024)) count=1
|
|
do_curl "$token" --data-binary "@$tmp/random.bytes" \
|
|
"http://foobar.com/dynamic/echo" > "$tmp/random.bytes.out"
|
|
cmp "$tmp/random.bytes" "$tmp/random.bytes.out"
|
|
stop_server "$token"
|