Change to test script to make it easier to run testv/teste etc
This commit is contained in:
+9
-5
@@ -1,15 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
msvc=$1
|
||||
dryrun=$2
|
||||
test=$2
|
||||
home=$(dirname $0)
|
||||
|
||||
if [ -z $msvc ]; then
|
||||
echo usage: $0 \<path-to-msvc-bin\> [dryrun]
|
||||
echo usage: $0 \<path-to-msvc-bin\> [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!
|
||||
|
||||
Reference in New Issue
Block a user