File: test-combblas

package info (click to toggle)
combblas 2.0.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 190,488 kB
  • sloc: cpp: 55,918; ansic: 25,134; sh: 3,691; makefile: 548; csh: 66; python: 49; perl: 21
file content (36 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export PRTE_MCA_plm_ssh_agent=/bin/false
export PRTE_MCA_rmaps_default_mapping_policy=":oversubscribe"

# create ctest control scripts
mkdir build
(cd build; cmake -Wno-dev ..)

# tests use TESTDATA in the dir above them
tar xzf debian/testdata_combblas*.tgz -C ReleaseTests/

EXTRA_TEST_DIRS=Applications

for subdir in ${EXTRA_TEST_DIRS}; do
    ln -s ../ReleaseTests/TESTDATA ${subdir}
done

# build tests against system installation of combblas
for subdir in ReleaseTests ${EXTRA_TEST_DIRS}; do
    echo "=== Running ${subdir} tests ==="
    cd ${subdir}
    patch <../debian/tests/${subdir}_CMakeLists.txt.patch
    mkdir tmp_tests
    cd tmp_tests
    cmake -Wno-dev ..
    make VERBOSE=1

    # put ctest control script into place
    cp ../../build/${subdir}/CTestTestfile.cmake .
    mv ../../build/${subdir} ../../build/${subdir}_upper
    ln -s $PWD ../../build/${subdir}

    # run tests
    ctest --verbose
    cd ../..
    echo "=== Completed ${subdir} tests ==="
done