#!/bin/sh . ../.function ## server.test -- Test server feature start_msg server #UTRACE="0 50M 0" #UTRACE_SIGNAL="0 100M 0" #UOBJDUMP="0 50M 1000" #USIMERR="error.sim" export UTRACE UOBJDUMP USIMERR UTRACE_SIGNAL if [ "$TERM" != "cygwin" ]; then DIR=../../src/ulib/net/server/plugin/.libs test -d $DIR && ( cd $DIR; ln -sf ../v8/.libs/server_plugin_v8.so; ln -sf ../php/.libs/server_plugin_php.so; ln -sf ../ruby/.libs/server_plugin_ruby.so; ln -sf ../page_speed/.libs/server_plugin_pagespeed.so ) fi #VALGRIND=valgrind # --gen-suppressions=all #STRACE=$TRUSS start_prg_background server ../../src/ulib/net/server/plugin/.libs '"echo http"' # '"soap http"' $SLEEP #$TRUSS socat -u open:inp/http/form_enctype.http tcp4-connect:127.0.0.1:8080 >out/server.out 2>/tmp/trace.out check_for_netcat send_req $NCAT localhost 8080 inp/http/form_enctype.http server 3 $SLEEP kill_prg test_server TERM rm -rf /tmp/form* # Test against expected output test_output_wc w server