]> https://gitweb.dealii.org/ - dealii.git/commitdiff
tests on linux
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 23 Apr 2003 08:15:04 +0000 (08:15 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 23 Apr 2003 08:15:04 +0000 (08:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@7447 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules
tests/README
tests/newplatform.csh [new file with mode: 0644]

index ca33243853239a448b1988adc1d9d2457cd02a97..9bcdc77f0a34ee6d83d4d95d8b6de160572af7d9 100644 (file)
@@ -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
index 2513d2837e3a33a154c35680aa8fb520d8848b1c..99056c41ab15110f0b48767f713e00a261714332 100644 (file)
@@ -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 (file)
index 0000000..9b5ec80
--- /dev/null
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.