Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r2141 - trunk/tests


Chronological Thread 
  • From: "James Bigler" <bigler@cs.utah.edu>
  • To: manta@sci.utah.edu
  • Subject: [Manta] r2141 - trunk/tests
  • Date: Mon, 3 Mar 2008 22:43:09 -0700 (MST)

Author: bigler
Date: Mon Mar  3 22:43:09 2008
New Revision: 2141

Modified:
   trunk/tests/SmokeTest.code.rayscale.sh
Log:
SmokeTest.code.rayscale.sh

  Use the new common.sh functions.  Makes test work again.


Modified: trunk/tests/SmokeTest.code.rayscale.sh
==============================================================================
--- trunk/tests/SmokeTest.code.rayscale.sh      (original)
+++ trunk/tests/SmokeTest.code.rayscale.sh      Mon Mar  3 22:43:09 2008
@@ -2,51 +2,46 @@
 #
 #  1  02   *   *   * bash 
/home/bigler/manta/dashboard/tests/SmokeTest.code.rayscale.sh >> 
/home/bigler/manta/dashboard/logs/tests.log 2>&1
 #
-echo "#############################################"
-echo "Started  "`date`
-echo "#"
-source /home/bigler/.bashrc
 
-# This will cause the program to exit right away if it fails
-export SCI_SIGNALMODE=exit
+# Get the path to the script directory
+TEST_SCRIPT_PATH=`dirname $0`
+source $TEST_SCRIPT_PATH/common.sh
 
-MANTA_SRC_PATH=/home/bigler/manta/dashboard
-MANTA_LOG_DIR=${MANTA_SRC_PATH}/logs
+start_time;
 
-# Test parameters
+#######################################################
+# Set parameters.  Set these before calling setup below
+
+#########
+# These ones will figure them selves out, but you can override them here
+
+# Set this if cmake isn't in your default path
+PATH_TO_CMAKE=/usr/local/bin
+
+# Path to manta source tree
+#MANTA_SRC_PATH=/home/sci/bigler/manta/dashboard/arachne
+
+# Path to where to write the script logs
+#MANTA_LOG_PATH=${MANTA_SRC_PATH}/logs
+
+#######
+# These ones should always be set, but their values can be overriden from 
the command line
+
+# Number of cores to run the tests on
 NP=1
+# Number of threads to use for a parallel build
 MAKE_PARALLEL=1
-#TEST_TYPE=Experimental
+# Type of test, can be Experimental or Nightly (or something supported by 
ctest)
 TEST_TYPE=Nightly
+# Weather or not to do a clean build
 CLEAN_BUILD=ON
 
-# Make the log directory if it doesn't exist
-if [[ ! -d ${MANTA_LOG_DIR} ]]; then mkdir ${MANTA_LOG_DIR};fi
-
-#ctest -S /Users/bigler/manta/testing/src/tests/SmokeTest.cmake -V >> 
/Users/bigler/manta/testing/logs/`date +%F`.log 2>&1
-
 
-cd ${MANTA_SRC_PATH}/tests
+# Make sure you pass in the script arguments '$@'
+setup $@;
 
-###################################################################
-echo "Starting SSETest: "`date`
-cmake -DBUILD_DIR:STRING=build-ctest-sse -DCLEAN_BUILD:BOOL=$CLEAN_BUILD 
-DTEST_TYPE:STRING=$TEST_TYPE -DNUM_CORES:INTEGER=$NP 
-DMAKE_PARALLEL:INTEGER=$MAKE_PARALLEL -DENABLE_SSE:BOOL=TRUE 
-DREAL_TYPE:STRING=float -DSCRIPT_NAME:STRING=code.rayscale.sse.cmake -P 
GenerateTest.cmake
-#
-ctest -S code.rayscale.sse.cmake -V >> ${MANTA_LOG_DIR}/`date +%F`.log 2>&1
-
-###################################################################
-echo "Starting NoSSEFloatTest: "`date`
-cmake -DBUILD_DIR:STRING=build-ctest-nosse-float 
-DCLEAN_BUILD:BOOL=$CLEAN_BUILD -DTEST_TYPE:STRING=$TEST_TYPE 
-DNUM_CORES:INTEGER=$NP -DMAKE_PARALLEL:INTEGER=$MAKE_PARALLEL 
-DENABLE_SSE:BOOL=FALSE -DREAL_TYPE:STRING=float 
-DSCRIPT_NAME:STRING=code.rayscale.nosse-float.cmake -P GenerateTest.cmake
-#
-ctest -S code.rayscale.nosse-float.cmake -V >> ${MANTA_LOG_DIR}/`date 
+%F`.log 2>&1
-#ctest -S ${MANTA_SRC_PATH}/tests/NoSSEFloatTest.cmake -V >> 
${MANTA_LOG_DIR}/`date +%F`.log 2>&1
-
-###################################################################
-echo "Starting NoSSEDoubleTest: "`date`
-cmake -DBUILD_DIR:STRING=build-ctest-nosse-double 
-DCLEAN_BUILD:BOOL=$CLEAN_BUILD -DTEST_TYPE:STRING=$TEST_TYPE 
-DNUM_CORES:INTEGER=$NP -DMAKE_PARALLEL:INTEGER=$MAKE_PARALLEL 
-DENABLE_SSE:BOOL=FALSE -DREAL_TYPE:STRING=double 
-DSCRIPT_NAME:STRING=code.rayscale.nosse-double.cmake -P GenerateTest.cmake
-#
-ctest -S code.rayscale.nosse-double.cmake -V >> ${MANTA_LOG_DIR}/`date 
+%F`.log 2>&1
-#ctest -S ${MANTA_SRC_PATH}/tests/NoSSEDoubleTest.cmake -V >> 
${MANTA_LOG_DIR}/`date +%F`.log 2>&1
+run_sse_test;
+run_nosse_float_test;
+run_nosse_double_test;
 
-echo "#"
-echo "Finished "`date`
+finish_time;




  • [Manta] r2141 - trunk/tests, James Bigler, 03/04/2008

Archive powered by MHonArc 2.6.16.

Top of page