about summary refs log tree commit homepage
path: root/t/t4003-rev-parser-error.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-17 22:42:56 -0700
commitc50132e156da457186929e5c36d9e16f636f48df (patch)
treeb292c5b521a3d31caef5085821bb8fbf7bd8dbfe /t/t4003-rev-parser-error.sh
parentcd91835b826b968df08ae1bcde794a9d54334182 (diff)
downloadrainbows-c50132e156da457186929e5c36d9e16f636f48df.tar.gz
Diffstat (limited to 't/t4003-rev-parser-error.sh')
-rwxr-xr-xt/t4003-rev-parser-error.sh35
1 files changed, 2 insertions, 33 deletions
diff --git a/t/t4003-rev-parser-error.sh b/t/t4003-rev-parser-error.sh
index dff3e33..bcb129a 100755
--- a/t/t4003-rev-parser-error.sh
+++ b/t/t4003-rev-parser-error.sh
@@ -1,34 +1,3 @@
 #!/bin/sh
-. ./test-lib.sh
-require_rev
-
-eval $(unused_listen)
-rtmpfiles unicorn_config pid r_err r_out tmp 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 t4000.ru -c $unicorn_config
-wait_for_pid $pid
-
-(
-        printf 'GET / HTTP/1/1\r\nHost: example.com\r\n\r\n'
-        cat $fifo > $tmp &
-        wait
-        echo ok > $ok
-) | socat - TCP:$listen > $fifo
-
-kill $(cat $pid)
-
-dbgcat tmp
-grep -F 'HTTP/1.1 400 Bad Request' $tmp
-! grep Error $r_err
+model=Rev
+. ./lib-parser-error.sh