]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a small submit_results.cmake script to manually submit test results to CDash
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 28 Sep 2013 22:30:48 +0000 (22:30 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 28 Sep 2013 22:30:48 +0000 (22:30 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31008 0785d39b-7218-0410-832d-ea1e28bc413d

tests/submit_results.cmake [new file with mode: 0644]

diff --git a/tests/submit_results.cmake b/tests/submit_results.cmake
new file mode 100644 (file)
index 0000000..31128fa
--- /dev/null
@@ -0,0 +1,48 @@
+## ---------------------------------------------------------------------
+## $Id$
+##
+## Copyright (C) 2013 by the deal.II authors
+##
+## This file is part of the deal.II library.
+##
+## The deal.II library is free software; you can use it, redistribute
+## it, and/or modify it under the terms of the GNU Lesser General
+## Public License as published by the Free Software Foundation; either
+## version 2.1 of the License, or (at your option) any later version.
+## The full text of the license can be found in the file LICENSE at
+## the top level of the deal.II distribution.
+##
+## ---------------------------------------------------------------------
+
+#
+# Submit existing test results to CDash.
+#
+# Usage:
+#   Invoke this script in a directory with test results already present
+#   under ./Testing, i.e. valid ./Testing/TAG pointing to test results:
+#
+#   ctest -S ../tests/submit_results.cmake
+#
+# You may specify CTEST_SOURCE_DIRECTORY to point to a directory containing
+# CTestConfig.cmake
+#
+
+IF("${CTEST_SOURCE_DIRECTORY}" STREQUAL "")
+  GET_FILENAME_COMPONENT(_path "${CMAKE_CURRENT_LIST_DIR}" PATH)
+  SET(CTEST_SOURCE_DIRECTORY ${_path}/deal.II)
+ENDIF()
+
+SET(CTEST_BINARY_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
+
+FILE(STRINGS ${CTEST_BINARY_DIRECTORY}/Testing/TAG _tag)
+LIST(GET _tag 1 _track)
+
+IF("${_track}" STREQUAL "")
+  MESSAGE(FATAL_ERROR "
+No test results found. Bailing out.
+"
+    )
+ENDIF()
+
+CTEST_START(Experimental TRACK ${_track} APPEND)
+CTEST_SUBMIT()

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.