diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/buildtests.in | 2 | ||||
-rw-r--r-- | scripts/cdashtesting.cmake.in | 4 | ||||
-rw-r--r-- | scripts/eigen_gen_split_test_help.cmake | 11 | ||||
-rwxr-xr-x | scripts/eigen_monitor_perf.sh | 25 |
4 files changed, 39 insertions, 3 deletions
diff --git a/scripts/buildtests.in b/scripts/buildtests.in index 526d5b74b..ab9c18fb1 100755 --- a/scripts/buildtests.in +++ b/scripts/buildtests.in @@ -10,7 +10,7 @@ then fi TESTSLIST="@EIGEN_TESTS_LIST@" -targets_to_make=`echo "$TESTSLIST" | egrep "$1" | xargs echo` +targets_to_make=$(echo "$TESTSLIST" | grep -E "$1" | xargs echo) if [ -n "${EIGEN_MAKE_ARGS:+x}" ] then diff --git a/scripts/cdashtesting.cmake.in b/scripts/cdashtesting.cmake.in index 59cf53328..0bf0fac2a 100644 --- a/scripts/cdashtesting.cmake.in +++ b/scripts/cdashtesting.cmake.in @@ -12,8 +12,8 @@ elseif(${CTEST_SCRIPT_ARG} MATCHES Continuous) set(MODEL Continuous) endif() -find_program(CTEST_HG_COMMAND NAMES hg) -set(CTEST_UPDATE_COMMAND "${CTEST_HG_COMMAND}") +find_program(CTEST_GIT_COMMAND NAMES git) +set(CTEST_UPDATE_COMMAND "${CTEST_GIT_COMMAND}") ctest_start(${MODEL} ${CTEST_SOURCE_DIRECTORY} ${CTEST_BINARY_DIRECTORY}) diff --git a/scripts/eigen_gen_split_test_help.cmake b/scripts/eigen_gen_split_test_help.cmake new file mode 100644 index 000000000..e43f5aabe --- /dev/null +++ b/scripts/eigen_gen_split_test_help.cmake @@ -0,0 +1,11 @@ +#!cmake -P +file(WRITE split_test_helper.h "") +foreach(i RANGE 1 999) + file(APPEND split_test_helper.h + "#if defined(EIGEN_TEST_PART_${i}) || defined(EIGEN_TEST_PART_ALL)\n" + "#define CALL_SUBTEST_${i}(FUNC) CALL_SUBTEST(FUNC)\n" + "#else\n" + "#define CALL_SUBTEST_${i}(FUNC)\n" + "#endif\n\n" + ) +endforeach()
\ No newline at end of file diff --git a/scripts/eigen_monitor_perf.sh b/scripts/eigen_monitor_perf.sh new file mode 100755 index 000000000..8f3425daf --- /dev/null +++ b/scripts/eigen_monitor_perf.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +# This is a script example to automatically update and upload performance unit tests. +# The following five variables must be adjusted to match your settings. + +USER='ggael' +UPLOAD_DIR=perf_monitoring/ggaelmacbook26 +EIGEN_SOURCE_PATH=$HOME/Eigen/eigen +export PREFIX="haswell-fma" +export CXX_FLAGS="-mfma -w" + +#### + +BENCH_PATH=$EIGEN_SOURCE_PATH/bench/perf_monitoring/$PREFIX +PREVPATH=$(pwd) +cd $EIGEN_SOURCE_PATH/bench/perf_monitoring && ./runall.sh "Haswell 2.6GHz, FMA, Apple's clang" "$@" +cd $PREVPATH || exit 1 + +ALLFILES="$BENCH_PATH/*.png $BENCH_PATH/*.html $BENCH_PATH/index.html $BENCH_PATH/s1.js $BENCH_PATH/s2.js" + +# (the '/' at the end of path is very important, see rsync documentation) +rsync -az --no-p --delete $ALLFILES $USER@ssh.tuxfamily.org:eigen/eigen.tuxfamily.org-web/htdocs/$UPLOAD_DIR/ || { echo "upload failed"; exit 1; } + +# fix the perm +ssh $USER@ssh.tuxfamily.org "chmod -R g+w /home/eigen/eigen.tuxfamily.org-web/htdocs/perf_monitoring" || { echo "perm failed"; exit 1; } |