1
1
 
#!/bin/sh
2
2
 
#==============================================================================
3
3
 
#
4
4
 
#  This script defines how to run CTest on the default ("unknown") machine.
5
5
 
#
6
6
 
#  This assumes the CTest model name (e.g., "Nightly") is passed to it when
7
7
 
#  run.
8
8
 
#
9
9
 
#==============================================================================
10
10
 
 
11
+
# Get the CTest script directory
 
12
+
scrdir=$1
 
13
+
11
14
 
# Get the dashboard model name
12
 
-
model=$1
 
15
+
model=$2
13
16
 
14
17
 
# Run the "ctest" command in another process
15
 
-
ctest -S ctest/CTestScript-Test.cmake,${model} -V
 
18
+
ctest -S ${scrdir}/CTestScript-Test.cmake,${model} -V