comparison tests/runtest @ 235:c603041da866 trunk

[svn r251] fixed arguments checking in runtest script
author ChristianK
date Sun, 08 Jun 2008 12:06:22 +0200
parents 0806379a5eca
children df1abfe27be6
comparison
equal deleted inserted replaced
234:9760f54af0b7 235:c603041da866
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # check for command line arguments 3 # check for command line arguments
4 if [ -z $1 ] ; then 4 if [ -z "$1" ] ; then
5 echo "Usage: `basename $0` <test result file>" 5 echo "Usage: `basename $0` <test result file>"
6 exit 6 exit
7 fi 7 fi
8 TARGETFILE=$1 8 TARGETFILE=$1
9 9
31 31
32 echo 32 echo
33 echo "Running new test and storing result in $TARGETFILE ..." 33 echo "Running new test and storing result in $TARGETFILE ..."
34 echo 34 echo
35 35
36 if [ -z $DMD ] ; then 36 if [ -z "$DMD" ] ; then
37 echo "Testing with llvmdc. Set DMD environment variable to select compiler." 37 echo "Testing with llvmdc. Set DMD environment variable to select compiler."
38 DMD="llvmdc -O0" 38 DMD="llvmdc -O0"
39 else 39 else
40 echo "Using compiler given by DMD environment variable: $DMD" 40 echo "Using compiler given by DMD environment variable: $DMD"
41 fi 41 fi