newlib-cygwin/winsup/testsuite/cygrun.sh

18 lines
324 B
Bash
Executable File

#!/bin/dash
#
# test driver to run $1 in the appropriate environment
#
# $1 = test executable to run
exe=$1
export PATH="$runtime_root:${PATH}"
if [ "$1" = "./mingw/cygload" ]
then
windows_runtime_root=$(cygpath -m $runtime_root)
$exe -v -cygwin $windows_runtime_root/cygwin1.dll
else
cygdrop $cygrun $exe
fi