blob: f4ecff1fc8a5071115cc00785078013bef236fdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash -vx
# testwrapper.sh: run a flex test, typically called by a Makefile
# Each test will exercise some feature or aspect of flex. Run the test with any input it may need.
SRCDIR="$1"
TESTNAME="$2"
INPUTNAME=`basename $TESTNAME`.txt
if [ -f $SRCDIR/$INPUTNAME ] ; then
$TESTNAME < $SRCDIR/$INPUTNAME
else
$TESTNAME
fi
|