]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
first tests working
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jun 2002 12:21:31 +0000 (12:21 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jun 2002 12:21:31 +0000 (12:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@6043 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/build-test/.cvsignore [new file with mode: 0644]
deal.II/common/scripts/build-test/Makefile [new file with mode: 0644]
deal.II/common/scripts/build-test/configurations/aixterm-gcc295.cfg [new file with mode: 0644]
deal.II/common/scripts/build-test/configurations/hades-gcc295.cfg [new file with mode: 0644]
deal.II/common/scripts/build-test/configurations/hades-gcc30.cfg [new file with mode: 0644]
deal.II/common/scripts/build-test/configurations/poseidon-gcc31.cfg [new file with mode: 0644]
deal.II/common/scripts/build-test/configurations/ultra-gcc31-mt.cfg [new file with mode: 0644]
deal.II/common/scripts/build-test/template [moved from deal.II/common/scripts/build-test/build-template with 85% similarity]

diff --git a/deal.II/common/scripts/build-test/.cvsignore b/deal.II/common/scripts/build-test/.cvsignore
new file mode 100644 (file)
index 0000000..1964f99
--- /dev/null
@@ -0,0 +1 @@
+build-*
\ No newline at end of file
diff --git a/deal.II/common/scripts/build-test/Makefile b/deal.II/common/scripts/build-test/Makefile
new file mode 100644 (file)
index 0000000..a347611
--- /dev/null
@@ -0,0 +1,10 @@
+sources=$(wildcard configurations/*.cfg)
+#targets=$(patsubst %.cfg,%.bash,$(notdir $(sources)))
+targets=$(patsubst %.cfg,build-%,$(notdir $(sources)))
+
+vpath %.cfg configurations
+
+all: $(targets)
+
+build-%: %.cfg template
+       perl -p $< template > $@
diff --git a/deal.II/common/scripts/build-test/configurations/aixterm-gcc295.cfg b/deal.II/common/scripts/build-test/configurations/aixterm-gcc295.cfg
new file mode 100644 (file)
index 0000000..5d17397
--- /dev/null
@@ -0,0 +1,29 @@
+# Options for gcc3.1 on ultra450.iwr.uni-heidelberg.de with multithreading
+# sparc-sun-solaris2.8 gcc31
+
+# Configuration options
+
+s'compiler=.*'compiler=gcc295';
+#s!options=.*!options='--enable-multithreading --with-multithreading'!;
+
+# Commands
+
+s'CXX=.*'CXX=g++';
+s'CC=.*'CC=gcc';
+s'CVS=.*'CVS=cvs';
+s'MAKE=.*'MAKE=gmake';
+s'MAIL=.*'MAIL=mail';
+
+# Path variables
+
+s'#export PATH'export PATH=$HOME/bin';
+
+# We need to compile in the special directory data. Therefore, target is changed here.
+
+s'target=.*'target=/tmp/gcc295';
+
+# CVS account
+
+s'export CVSROOT=.*'export CVSROOT=:pserver:guido@eris.iwr.uni-heidelberg.de:/home/people/cvs/deal';
+
+
diff --git a/deal.II/common/scripts/build-test/configurations/hades-gcc295.cfg b/deal.II/common/scripts/build-test/configurations/hades-gcc295.cfg
new file mode 100644 (file)
index 0000000..6631f28
--- /dev/null
@@ -0,0 +1,22 @@
+# Options for gcc3.1 on ultra450.iwr.uni-heidelberg.de with multithreading
+# sparc-sun-solaris2.8 gcc31
+
+# Configuration options
+
+s'compiler=.*'compiler=gcc295';
+
+# Commands
+
+s'CXX=.*'CXX=g++';
+s'CC=.*'CC=gcc';
+s'CVS=.*'CVS=cvs';
+s'MAKE=.*'MAKE="make"';
+s'MAIL=.*'MAIL=mail';
+
+# Path variables
+
+s'#export PATH'export PATH=/usr/local/gcc/gcc/bin:/usr/local/bin';
+
+# CVS account
+
+s'export CVSROOT=.*'export CVSROOT=:pserver:deal@eris:/home/people/cvs/deal';
diff --git a/deal.II/common/scripts/build-test/configurations/hades-gcc30.cfg b/deal.II/common/scripts/build-test/configurations/hades-gcc30.cfg
new file mode 100644 (file)
index 0000000..5ef8b05
--- /dev/null
@@ -0,0 +1,23 @@
+# Options for gcc3.1 on ultra450.iwr.uni-heidelberg.de with multithreading
+# sparc-sun-solaris2.8 gcc31
+
+# Configuration options
+
+s'compiler=.*'compiler=gcc30';
+
+# Commands
+
+s'CXX=.*'CXX=g++';
+s'CC=.*'CC=gcc';
+s'CVS=.*'CVS=cvs';
+s'MAKE=.*'MAKE="make"';
+s'MAIL=.*'MAIL=mail';
+
+# Path variables
+
+s'#export PATH'export PATH=/data/user/software/sparc-sun-solaris2.7/gcc-3.0.4/bin:/usr/local/bin';
+s'#export LD_LIBRARY_PATH'export LD_LIBRARY_PATH=/data/user/software/sparc-sun-solaris2.7/gcc-3.0.4/lib';
+
+# CVS account
+
+s'export CVSROOT=.*'export CVSROOT=:pserver:deal@eris:/home/people/cvs/deal';
diff --git a/deal.II/common/scripts/build-test/configurations/poseidon-gcc31.cfg b/deal.II/common/scripts/build-test/configurations/poseidon-gcc31.cfg
new file mode 100644 (file)
index 0000000..412ace0
--- /dev/null
@@ -0,0 +1,23 @@
+# Options for gcc3.1 on ultra450.iwr.uni-heidelberg.de with multithreading
+# sparc-sun-solaris2.8 gcc31
+
+# Configuration options
+
+s'compiler=.*'compiler=gcc31';
+
+# Commands
+
+s'CXX=.*'CXX=g++';
+s'CC=.*'CC=gcc';
+s'CVS=.*'CVS=cvs';
+s'MAKE=.*'MAKE="make"';
+s'MAIL=.*'MAIL=mail';
+
+# Path variables
+
+s'#export PATH'export PATH=/data/user/software/sparc-sun-solaris2.7/gcc-3.1.0/bin:/usr/local/bin';
+s'#export LD_LIBRARY_PATH'export LD_LIBRARY_PATH=/data/user/software/sparc-sun-solaris2.7/gcc-3.1.0/lib';
+
+# CVS account
+
+s'export CVSROOT=.*'export CVSROOT=:pserver:deal@eris:/home/people/cvs/deal';
diff --git a/deal.II/common/scripts/build-test/configurations/ultra-gcc31-mt.cfg b/deal.II/common/scripts/build-test/configurations/ultra-gcc31-mt.cfg
new file mode 100644 (file)
index 0000000..75a83d1
--- /dev/null
@@ -0,0 +1,24 @@
+# Options for gcc3.1 on ultra450.iwr.uni-heidelberg.de with multithreading
+# sparc-sun-solaris2.8 gcc31
+
+# Configuration options
+
+s'compiler=.*'compiler=gcc31';
+s!options=.*!options='--enable-multithreading --with-multithreading'!;
+
+# Commands
+
+s'CXX=.*'CXX=g++';
+s'CC=.*'CC=gcc';
+s'CVS=.*'CVS=cvs';
+s'MAKE=.*'MAKE="make"';
+s'MAIL=.*'MAIL=mail';
+
+# Path variables
+
+s'#export PATH'export PATH=/data/user/software/sparc-sun-solaris2.7/gcc-3.1.0/bin:/usr/local/bin';
+s'#export LD_LIBRARY_PATH'export LD_LIBRARY_PATH=/data/user/software/sparc-sun-solaris2.7/gcc-3.1.0/lib';
+
+# CVS account
+
+s'export CVSROOT=.*'export CVSROOT=:pserver:guido@eris:/home/people/cvs/deal';
similarity index 85%
rename from deal.II/common/scripts/build-test/build-template
rename to deal.II/common/scripts/build-test/template
index 66c59d4f2faa3ca88ae77f989a53637c3b34be00..dc574c41e16829cb1d538c34b537bac911a0f793 100644 (file)
@@ -33,7 +33,7 @@ compiler=gcc295
 
 # Options for configure
 
-options='-'
+options=''
 
 # Name of the target directory (must be unique if you run several
 # tests on the same computer). Change the value below if you use the
@@ -48,11 +48,11 @@ target="${sysname}+${compiler}"
 
 # Name of the C++ compiler
 
-export CXX=CC
+export CXX=g++
 
 # Name of the C compiler
 
-export CC=cc
+export CC=gcc
 
 # Additional command names
 
@@ -61,8 +61,8 @@ MAKE=make
 
 # Make sure the right compiler, linker and libraries are found first
 
-#export PATH=/mypath/bin:$PATH
-#export LD_LIBRARY_PATH=/mypath/lib:$LD_LIBRARY_PATH
+#export PATH:$PATH
+#export LD_LIBRARY_PATH:$LD_LIBRARY_PATH
 
 ######################################################################
 # Mail program setup:
@@ -82,6 +82,7 @@ MAIL='mail'
 ######################################################################
 ######################################################################
 
+if test -d $target ; then rm -rf $target ; fi
 mkdir $target
 cd $target
 $CVS co deal.II
@@ -91,16 +92,18 @@ cd deal.II
 
 echo "CONFIG " $sysname $compiler $options > log
 
-echo "RUNNING CONFIGURE AT " `date` | tee -a log
+echo "RUNNING CONFIGURE AT " `date '+%Y-%m-%d %T'` | tee -a log
 (./configure $options 2>&1) | tee -a log
 
-echo "BUILDING LIBRARY AT " `date` | tee -a log
+echo "BUILDING LIBRARY AT " `date '+%Y-%m-%d %T'` | tee -a log
 
 # now build the library. either write "succeeded" or "failed"
 # into the file "result", and append all the output into "log"
 
-(if ($MAKE all -k 2>&1) ; then 
-       echo "BUILDING EXAMPLES AT " `date` | tee -a log
+(if ($MAKE all -k 2>&1) ; then
+       echo "CLEANING OBJECT FILES AT " `date '+%Y-%m-%d %T'` | tee -a log
+       $MAKE clean
+       echo "BUILDING EXAMPLES AT " `date '+%Y-%m-%d %T'` | tee -a log
         if (cd examples ; $MAKE -k 2>&1) ; then
                result=succeeded ;
        else
@@ -110,7 +113,7 @@ else
        result=failed ;
 fi ; echo $result > result ) | tee -a log 
 
-echo "CHECKING RESULTS AT " `date` | tee -a log
+echo "CHECKING RESULTS AT " `date '+%Y-%m-%d %T'` | tee -a log
 
 # now decide what to do with the output. if the build succeeded then
 # simply delete it and replace it by a success message for mailing to
@@ -120,13 +123,10 @@ echo "CHECKING RESULTS AT " `date` | tee -a log
 if test "`cat result`" = "failed" ; then
        $MAIL build-failure@dealii.org < log
 else
-       rm -f log
-       echo "CONFIG " $sysname $compiler $options > log
-       echo "OK AT " `date` >> log
        $MAIL build-success@dealii.org < log
 fi
 
-echo "CLEANING UP AT " `date` | tee -a log
+echo "CLEANING UP AT " `date '+%Y-%m-%d %T'` | tee -a log
 
 # finally clean up
 cd ../../

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.