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' |
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) |