certi-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[certi-cvs] certi/scripts certi-cdash certi-ctest.cmake run...


From: certi-cvs
Subject: [certi-cvs] certi/scripts certi-cdash certi-ctest.cmake run...
Date: Fri, 23 Oct 2009 14:56:45 +0000

CVSROOT:        /sources/certi
Module name:    certi
Changes by:     Eric NOULARD <erk>      09/10/23 14:56:45

Added files:
        scripts        : certi-cdash certi-ctest.cmake runtest.sh 

Log message:
        Add CERTI ctest sample script.
        + auxiliary cron scripts.
        
        this is a preliminary linux example.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/certi-cdash?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/certi-ctest.cmake?cvsroot=certi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/certi/scripts/runtest.sh?cvsroot=certi&rev=1.1

Patches:
Index: certi-cdash
===================================================================
RCS file: certi-cdash
diff -N certi-cdash
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ certi-cdash 23 Oct 2009 14:56:45 -0000      1.1
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+CERTI_NIGHTLY_BUILD_DIR=/LOCAL/ERIC/CertiNightly
+cd ${CERTI_NIGHTLY_BUILD_DIR}
+runuser enoulard ${CERTI_NIGHTLY_BUILD_DIR}/runtest.sh
+
+exit 0

Index: certi-ctest.cmake
===================================================================
RCS file: certi-ctest.cmake
diff -N certi-ctest.cmake
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ certi-ctest.cmake   23 Oct 2009 14:56:45 -0000      1.1
@@ -0,0 +1,68 @@
+####################################################################
+#
+# CTest script which may be used to setup a CDash submission
+# to CERTI Dashboard.
+#
+####################################################################
+SET (CTEST_SOURCE_DIRECTORY "/LOCAL/ERIC/CertiNightly/CERTI")
+SET (CTEST_BINARY_DIRECTORY "/LOCAL/ERIC/CertiNightly/build")
+
+SET (CTEST_CVS_COMMAND "cvs")
+SET (CTEST_CVS_CHECKOUT "${CTEST_CVS_COMMAND} -z3 
-d:pserver:address@hidden:/sources/certi co -d CERTI certi")
+
+# Easy handling of script commande line argument
+SET(MODEL Nightly)
+IF(${CTEST_SCRIPT_ARG} MATCHES Experimental)
+  SET(MODEL Experimental) 
+ENDIF(${CTEST_SCRIPT_ARG} MATCHES Experimental)
+
+# which ctest command to use for running the dashboard
+IF (${MODEL} MATCHES Experimental)
+
+   SET (CTEST_COMMAND
+       "logger -i -t cdash \"CERTI Experimental CDash BEGIN...\" "
+       "ctest -D ${MODEL}"
+       "logger -i -t cdash \"CERTI Experimental CDash END.\" "
+   )
+ELSE(${MODEL} MATCHES Experimental)
+   SET (CTEST_COMMAND 
+     "logger -i -t cdash \"CERTI Nightly CDash BEGIN...\" "
+     "ctest -D NightlyStart -D NightlyUpdate -D NightlyConfigure -D 
NightlyBuild -D NightlyTest -D NightlySubmit"
+     "ctest -D NightlyMemCheck -D NightlySubmit"
+     "logger -i -t cdash \"CERTI Nightly CDash END.\" "
+   )
+endif(${MODEL} MATCHES Experimental)
+
+# what cmake command to use for configuring this dashboard
+SET (CTEST_CMAKE_COMMAND 
+  "cmake"
+  )
+
+####################################################################
+# The values in this section are optional you can either
+# have them or leave them commented out
+####################################################################
+
+# should ctest backup the source tree and restore it whenever a test failed?
+#SET (CTEST_BACKUP_AND_RESTORE TRUE) 
+
+# should ctest wipe the binary tree before running
+#SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
+
+# this is the initial cache to use for the binary tree, be careful to escape
+# any quotes inside of this string if you use it
+SET (CTEST_INITIAL_CACHE "
+MAKECOMMAND:STRING=make
+CMAKE_MAKE_PROGRAM:FILEPATH=make
+CMAKE_GENERATOR:INTERNAL=Unix Makefiles
+BUILDNAME:STRING=Linux-i686-gcc-4.1.2
+SITE:STRING=ErkAtONERA
+CVSCOMMAND:FILEPATH=cvs
+")
+
+SET( $ENV{LC_MESSAGES}    "en_EN" )
+
+# set any extra environment variables to use during the execution of the 
script here:
+SET (CTEST_ENVIRONMENT
+    "HTTP_PROXY=proxy.onecert.fr:80"
+)

Index: runtest.sh
===================================================================
RCS file: runtest.sh
diff -N runtest.sh
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ runtest.sh  23 Oct 2009 14:56:45 -0000      1.1
@@ -0,0 +1,3 @@
+#!/bin/sh
+CERTI_NIGHTLY_BUILD_DIR=`pwd`
+/usr/local/bin/ctest -S ${CERTI_NIGHTLY_BUILD_DIR}/certi-ctest.cmake




reply via email to

[Prev in Thread] Current Thread [Next in Thread]