#!/bin/sh -e # Smoke test for Empire if [ $# -ne 1 ] then echo "Usage: $0 SRCDIR" >&2; exit 1 fi srcdir="$1" . "$srcdir"/tests/test-common.sh # # Currently expected to work only with thread package LWP, because: # # - Thread scheduling is reliably deterministic only with LWP # - Shell builtin kill appears not to do the job in MinGW # - The Windows server tries to run as service when -d isn't # specified # # TODO address these shortcomings. # if [ `sed -n 's/empthread *:= *\(.*\)/\1/p' &2 fi create_sandbox begin_test "$srcdir"/tests/smoke/fairland.xdump feed_input POGO peter "$srcdir"/tests/smoke/newcap_script t= for i in `git ls-files "$srcdir"/tests/smoke | grep 'tests/smoke/../..$'` do p="$t" t="${i%/??}" if [ "$p" != "$t" ] && [ "$p" ] then feed_input POGO peter <