File: testwrapper-direct.sh

package info (click to toggle)
flex 2.6.4-8.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 7,168 kB
  • sloc: ansic: 12,044; sh: 5,363; lex: 3,699; yacc: 990; makefile: 717; perl: 238; awk: 72; cpp: 25; sed: 16
file content (20 lines) | stat: -rwxr-xr-x 409 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
echo 'set -euvx'
set -euvx

# testwrapper-direct.sh: run some specialized flex tests that care where
# they're run from.

while getopts :b:s: OPTION ; do
    case $OPTION in
        b) BINARY_DIR=$OPTARG ;;
        s) SOURCE_DIR=$OPTARG ;;
    esac
    done

shift $(($OPTIND-1))
TESTNAME=$1

INPUT_NAME=`basename "${TESTNAME%.exe}"`.txt

cd ${SOURCE_DIR} && ${BINARY_DIR}/${TESTNAME} ${INPUT_NAME}