diff --git a/test/testMSVC.sh b/test/testMSVC.sh index a1217744..eccfdd39 100755 --- a/test/testMSVC.sh +++ b/test/testMSVC.sh @@ -1,15 +1,16 @@ #!/bin/bash msvc=$1 -dryrun=$2 +test=$2 +home=$(dirname $0) if [ -z $msvc ]; then - echo usage: $0 \ [dryrun] + echo usage: $0 \ [test] exit fi -if [ ! -z $dryrun ]; then - dryrun=echo +if [ -z $test ]; then + test=tests fi for d in $(find "$msvc" -name exiv2.exe -exec dirname {} ";"); do @@ -22,7 +23,10 @@ for d in $(find "$msvc" -name exiv2.exe -exec dirname {} ";"); do echo $bar $d $bar echo $bar $(cygpath -aw "$msvc") $bar echo $Bar - $dryrun make test + ( + cd "$home/.." + make $test + ) done # That's all Folks!