mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
motivation: nicer source tree chanages: * move scripts to scripts directory * move integration tests to IntegrationTests directory and remove driver script * add .sh extension to bash scripts * adjust rio.yaml
16 lines
471 B
Bash
16 lines
471 B
Bash
#!/bin/bash
|
|
|
|
source defines.sh
|
|
|
|
token=$(create_token)
|
|
start_server "$token"
|
|
htdocs=$(get_htdocs "$token")
|
|
base="s/o/m/e/r/a/n/d/o/m/f/o/l/d/e/r"
|
|
mkdir -p "$htdocs/$base"
|
|
dd if=/dev/urandom of="$htdocs/$base/random.bytes" bs=$((1024 * 1024)) count=2
|
|
for method in sendfile fileio; do
|
|
do_curl "$token" "http://foobar.com/$method/$base/random.bytes" > "$tmp/random.bytes"
|
|
assert_equal_files "$htdocs/$base/random.bytes" "$tmp/random.bytes"
|
|
done
|
|
stop_server "$token"
|