]> https://gitweb.dealii.org/ - dealii.git/commitdiff
allow for different mail programs. I am sure we did that in earlier versions, but...
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 7 Nov 2010 21:42:02 +0000 (21:42 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Sun, 7 Nov 2010 21:42:02 +0000 (21:42 +0000)
now we can test on mashines without working mail again

git-svn-id: https://svn.dealii.org/trunk@22627 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules

index 7d10345d74fc05044d25f704a304b45a5ea6a7b9..a21b6f2bbdd8530d66b35f76964ef2cc4fd8dff1 100644 (file)
@@ -18,6 +18,14 @@ WORKDIR = $(notdir $(shell pwd))
 
 verbose = off
 
+# The mail program. Override this by something like
+#
+# MAIL=mymailprog
+#
+# on the command line to use a different mail agent or to tunnel through ssh.
+# The mail program takes a single argument, which is the mail address for tests
+# The contents of the mail will be provided on STDIN
+MAIL=mail
 
 PLATFORM = $(TARGET)+$(GXX-VERSION:intel_%=%)
 PLATFORM-HIERARCHY = $(shell $(PERL) ../hierarchy.pl $(PLATFORM))
@@ -179,8 +187,7 @@ report:
 
 report+mail:
        @$(MAKE) report | tee testresults
-       @cat testresults | \
-        mail -s "Regression results from `id -un` on `hostname`" regression-tests@dealii.org
+       @cat testresults | $(MAIL) regression-tests@dealii.org
        @rm testresults
 
 ######################################################################

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.