/[escript]/trunk/scons/grouptest.py
ViewVC logotype

Diff of /trunk/scons/grouptest.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2504 by jfenwick, Wed Jul 1 07:27:17 2009 UTC revision 2508 by jfenwick, Thu Jul 2 04:33:25 2009 UTC
# Line 40  class GroupTest: Line 40  class GroupTest:
40      res=res+"# It will be regenerated each time scons is run\n"      res=res+"# It will be regenerated each time scons is run\n"
41      res=res+"#############################################\n\n"      res=res+"#############################################\n\n"
42      res=res+"function failed()\n{\n  echo ""Execution failed for $@""\n  exit 1\n}\n"      res=res+"function failed()\n{\n  echo ""Execution failed for $@""\n  exit 1\n}\n"
43        res=res+"if [ $# -ne 1 ]\nthen\n echo Usage: $0 wrapper_options\necho Runs all unit tests. Options must be a single string.\nexit 2\nfi\n"
44      res=res+'CMDSTR="getopt -uq -o p:n: -- $1"\nSTR=`$CMDSTR`\nNUMPROCS=1\n'      res=res+'CMDSTR="getopt -uq -o p:n: -- $1"\nSTR=`$CMDSTR`\nNUMPROCS=1\n'
45      res=res+'NUMNODES=1\n#This little complication is required because set --\n'      res=res+'NUMNODES=1\n#This little complication is required because set --\n'
46      res=res+'#does not seem to like -n as the first positional parameter\n'      res=res+'#does not seem to like -n as the first positional parameter\n'
# Line 61  class GroupTest: Line 62  class GroupTest:
62      res=res+"\nexport OLD_PYTHON=`pwd`:$PYTHONPATH\nBINRUNNER=\"`pwd`/bin/escript -b $1\"\nPYTHONRUNNER=\"`pwd`/bin/escript $1\"\nBATCH_ROOT=`pwd`\n"      res=res+"\nexport OLD_PYTHON=`pwd`:$PYTHONPATH\nBINRUNNER=\"`pwd`/bin/escript -b $1\"\nPYTHONRUNNER=\"`pwd`/bin/escript $1\"\nBATCH_ROOT=`pwd`\n"
63      res=res+"BUILD_DIR=$BATCH_ROOT/build/"+build_platform      res=res+"BUILD_DIR=$BATCH_ROOT/build/"+build_platform
64      res=res+"\nif [ ! -d $BUILD_DIR ]\nthen\n echo Can not find build directory $BUILD_DIR\n exit 2\nfi\n"      res=res+"\nif [ ! -d $BUILD_DIR ]\nthen\n echo Can not find build directory $BUILD_DIR\n exit 2\nfi\n"
     res=res+"if [ $# -ne 1 ]\nthen\n echo Usage: $0 wrapper_options\necho Runs all unit tests. Options must be a single string.\nexit 2\nfi\n"  
65      #res=res+"if [ $# -lt 2 ]\nthen\n echo Usage: $0 bin_run_cmd python_run_cmd\n exit 2\nfi\n"      #res=res+"if [ $# -lt 2 ]\nthen\n echo Usage: $0 bin_run_cmd python_run_cmd\n exit 2\nfi\n"
66      return res      return res
67      makeHeader=staticmethod(makeHeader)      makeHeader=staticmethod(makeHeader)

Legend:
Removed from v.2504  
changed lines
  Added in v.2508

  ViewVC Help
Powered by ViewVC 1.1.26