nr_client=${nr_client-4} . ./test-lib.sh test -r random_blob || die "random_blob required, run with 'make $0'" eval $(unused_listen) rtmpfiles unicorn_config curl_out curl_err r_err r_out pid cat > $unicorn_config <> $curl_out 2>> $curl_err ) & done wait echo elapsed=$(( $(date +%s) - $start )) kill $(cat $pid) test $nr_client -eq $(wc -l < $curl_out) test 1 -eq $(sort < $curl_out | uniq | wc -l) blob_sha1=$( expr "$(sha1sum < random_blob)" : '\([a-f0-9]\+\)') echo blob_sha1=$blob_sha1 test x"$blob_sha1" = x"$(sort < $curl_out | uniq)" check_stderr