diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:56 -0700 |
commit | b32e9240ec68f2493038c5cfbc9ca6859cca6ad8 (patch) | |
tree | c5ebde64b9c25568921a0e094531100ae04504da /t/t4101-rev-rack-input-trailer.sh | |
parent | 95417ca711a75612da86a25acd20134efdbc0e67 (diff) | |
download | rainbows-b32e9240ec68f2493038c5cfbc9ca6859cca6ad8.tar.gz |
Just in case we break something. Also add staggered blob test to simulate slow client uploads.
Diffstat (limited to 't/t4101-rev-rack-input-trailer.sh')
-rwxr-xr-x | t/t4101-rev-rack-input-trailer.sh | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/t/t4101-rev-rack-input-trailer.sh b/t/t4101-rev-rack-input-trailer.sh index 9dffc43..d360e53 100755 --- a/t/t4101-rev-rack-input-trailer.sh +++ b/t/t4101-rev-rack-input-trailer.sh @@ -1,51 +1,2 @@ #!/bin/sh -nr_client=${nr_client-25} -nr=${nr-50} - -. ./test-lib.sh -require_rev -test -r random_blob || die "random_blob required, run with 'make $0'" - -eval $(unused_listen) -rtmpfiles unicorn_config tmp r_err r_out pid fifo ok -rm -f $fifo -mkfifo $fifo - -cat > $unicorn_config <<EOF -listen "$listen" -pid "$pid" -stderr_path "$r_err" -stdout_path "$r_out" -Rainbows! do - use :Rev -end -EOF - -rainbows -D content-md5.ru -c $unicorn_config -wait_for_pid $pid - -echo "small blob" -( - echo hello world | content-md5-put - cat $fifo > $tmp & - wait - echo ok > $ok -) | socat - TCP:$listen | tee $fifo - -fgrep 'HTTP/1.1 200 OK' $tmp -test xok = x"$(cat $ok)" -! grep Error $r_err - - -echo "big blob" -( - content-md5-put < random_blob - cat $fifo > $tmp & - wait - echo ok > $ok -) | socat - TCP:$listen | tee $fifo - -fgrep 'HTTP/1.1 200 OK' $tmp -test xok = x"$(cat $ok)" -! grep Error $r_err -kill $(cat $pid) +. ./lib-input-trailer.sh Rev |