quakeforge/tools/qfcc/test/build-compile-fail-run

16 lines
145 B
Text
Raw Normal View History

#! /bin/sh
script=$1
shift
cat > $script <<EOF
#! /bin/sh
# compile must fail
$@
if test \$? != 1; then
exit 1
fi
exit 0
EOF
chmod +x $script