#!/bin/bash

set -eux

ALSPRO=$1

TESTDIR=$(dirname "$0")

trap 'pkill -P $$' EXIT

php --server localhost:8888 --docroot "$TESTDIR"/echo &

"$ALSPRO" "$TESTDIR"/curl_test.pro -g test

#!/bin/bash

set -eux

: ${debug:=0}

ALSPRO=$1

TESTDIR=$(dirname "$0")

trap 'pkill -P $$' EXIT

php --server localhost:8888 --docroot "$TESTDIR"/echo &

if (( $debug ))
then
"$ALSPRO" "$TESTDIR"/curl_test.pro -g 'test ; true'
else
"$ALSPRO" "$TESTDIR"/curl_test.pro -g test
fi

Add debug option to curl test script
Add debug option to curl test script

The curl tests will drop into the shell after running, if the debug environment flag is set to 1. Example via make:

make curl_test debug=1
