Navigation


Changeset 348:d978dd58a1d9 in freeDiameter


Ignore:
Timestamp:
Jun 29, 2010, 4:21:14 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Improved management of the source directory in tests

Location:
contrib/nightly_tests
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • contrib/nightly_tests/runtests.sh

    r347 r348  
    66ROOTDIR=$HOME/fDtests
    77if [ ! -d $ROOTDIR ]; then
    8    echo "The working directory $ROOTDIR does not exist. Please create or edit the script."
     8   echo "The working directory $ROOTDIR does not exist. Please create it or edit the script."
    99   exit 1;
    1010fi
     
    2222fi
    2323
    24 # Now, cleanup any previous data. We start from clean slate.
    25 rm -rf $WORKDIR
    26 mkdir $WORKDIR
     24# Now, cleanup any previous built data, but keep the sources (to get the diffs)
     25if [ ! -d $WORKDIR ]; then
     26   mkdir $WORKDIR
     27else
     28   rm -rf $WORKDIR/*/build
     29if
    2730
    2831echo "Starting Nightly tests, time: "`date`
     
    4952   #### Create the script
    5053   
    51    # Project name, ...
     54   # Project name, nightly time
    5255   cp $WORKDIR/1_default.cmake $WORKDIR/$t/CTestScript.cmake
    5356   
    54    # Path name, build configuration, ...
     57   # Create path names, default build configuration, ...
    5558   cat >> $WORKDIR/$t/CTestScript.cmake << EOF
    5659      ##########################
    57       SET(CTEST_SOURCE_DIRECTORY "$ROOTDIR/source")
     60      SET(CTEST_SOURCE_DIRECTORY "$WORKDIR/$t/source")
    5861      SET(CTEST_BINARY_DIRECTORY "$WORKDIR/$t/build")
    5962
     
    8386       #######################################################################
    8487
    85        ctest_empty_binary_directory(\${CTEST_BINARY_DIRECTORY})
     88       # ctest_empty_binary_directory(\${CTEST_BINARY_DIRECTORY})
    8689
    8790       find_program(CTEST_HG_COMMAND NAMES hg)
  • contrib/nightly_tests/tests.list

    r346 r348  
    11alldefault
     2nosctp
    23#noext
    34#allext
    4 #nosctp
Note: See TracChangeset for help on using the changeset viewer.