From b5f7f816da67dba6d6a09320e6e3b3b8278e900d Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Wed, 23 Apr 2003 08:15:04 +0000 Subject: [PATCH] tests on linux git-svn-id: https://svn.dealii.org/trunk@7447 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/Makefile.rules | 11 +++++++++++ tests/README | 6 ++++++ tests/newplatform.csh | 15 +++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 tests/newplatform.csh diff --git a/tests/Makefile.rules b/tests/Makefile.rules index ca33243853..9bcdc77f0a 100644 --- a/tests/Makefile.rules +++ b/tests/Makefile.rules @@ -126,6 +126,17 @@ run-tests: $(tests:%=%.OK) output: $(tests:%=%.output) +############################################################ +# Link and copy files in ./results/* to generate checked +# checked files for new hardware/compiler platform. +# +# It is expected that the tests are run with ./compare being +# sym-linked to a suitable existing result directory. +# +# The current subdirectory must exist there. +############################################################ +new-platform: output run-tests + csh ../newplatform.csh $(WORKDIR) $(TARGET)+$(GXX-VERSION) ############################################################ # Cleanup targets diff --git a/tests/README b/tests/README index 2513d2837e..99056c41ab 100644 --- a/tests/README +++ b/tests/README @@ -26,6 +26,12 @@ carefully. Running the tests on a new platform ----------------------------------- +Run + +make new-platform + +if you understand what's going on there. Else, do it by hand: + 1) Link the subdirectory in results, matching your platform most closely to a directory ./compare. 2) Run the tests and check the results. diff --git a/tests/newplatform.csh b/tests/newplatform.csh new file mode 100644 index 0000000000..9b5ec809b4 --- /dev/null +++ b/tests/newplatform.csh @@ -0,0 +1,15 @@ +touch ../results/$2/$1/.cvsignore +foreach f (*.output) + if (-e $f:r.OK) then + set old=`ls -l ../compare | perl -p -e 's/.*results\///;'` + pushd ../results/$2/$1 + ln -s ../../$old/$1/$f $f + echo $f >> .cvsignore + popd + else + pushd ../results/$2/$1 + cp =1/$f . + cvs add $f + popd + endif +end -- 2.39.5