[cig-commits] [commit] master: add test for backslash in prm parsing (1256f07)

cig_noreply at geodynamics.org cig_noreply at geodynamics.org
Mon May 19 18:34:26 PDT 2014


Repository : https://github.com/geodynamics/aspect

On branch  : master
Link       : https://github.com/geodynamics/aspect/compare/a47d240e63234d5806d4fdb38f78b57c78948cf7...1256f07c1b5e15057b8f9338a2e49d00331d4b57

>---------------------------------------------------------------

commit 1256f07c1b5e15057b8f9338a2e49d00331d4b57
Author: Timo Heister <timo.heister at gmail.com>
Date:   Mon May 19 21:34:07 2014 -0400

    add test for backslash in prm parsing


>---------------------------------------------------------------

1256f07c1b5e15057b8f9338a2e49d00331d4b57
 tests/{maxtimestep.prm => prmbackslash.prm}              | 16 +++++++++++-----
 tests/{maxtimestep => prmbackslash}/screen-output        |  0
 .../screen-output => prmbackslash/screen-output~}        |  0
 tests/{maxtimestep => prmbackslash}/statistics           |  0
 4 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/tests/maxtimestep.prm b/tests/prmbackslash.prm
similarity index 88%
copy from tests/maxtimestep.prm
copy to tests/prmbackslash.prm
index 185d8d5..4d0468a 100644
--- a/tests/maxtimestep.prm
+++ b/tests/prmbackslash.prm
@@ -1,10 +1,12 @@
-# a test that verifies that setting an end time earlier than when
-# we achieve steady state still terminates the program at the right
-# time
+# a test that tests \\
+#
+\\
 
 set Dimension = 2
 set CFL number                             = 1.0
-set End time                               = 1e7
+set End \\
+time                               = \\
+1e7
 set Start time                             = 0
 set Adiabatic surface temperature          = 0
 set Surface pressure                       = 0
@@ -16,6 +18,9 @@ subsection Boundary temperature model
   set Model name = box
 end
 
+# \\ test
+# \\
+bla
 
 
 subsection Gravity model
@@ -23,7 +28,8 @@ subsection Gravity model
 end
 
 
-subsection Geometry model
+subsection Geometry \\
+model
   set Model name = box
 
   subsection Box
diff --git a/tests/maxtimestep/screen-output b/tests/prmbackslash/screen-output
similarity index 100%
copy from tests/maxtimestep/screen-output
copy to tests/prmbackslash/screen-output
diff --git a/tests/maxtimestep/screen-output b/tests/prmbackslash/screen-output~
similarity index 100%
copy from tests/maxtimestep/screen-output
copy to tests/prmbackslash/screen-output~
diff --git a/tests/maxtimestep/statistics b/tests/prmbackslash/statistics
similarity index 100%
copy from tests/maxtimestep/statistics
copy to tests/prmbackslash/statistics



More information about the CIG-COMMITS mailing list