From 0c2ea5bf95b6c5a045dd8ccbcf110168dff71888 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 28 Sep 2013 22:30:48 +0000 Subject: [PATCH] Add a small submit_results.cmake script to manually submit test results to CDash git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31008 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/submit_results.cmake | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 tests/submit_results.cmake diff --git a/tests/submit_results.cmake b/tests/submit_results.cmake new file mode 100644 index 0000000000..31128fa1c7 --- /dev/null +++ b/tests/submit_results.cmake @@ -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() -- 2.39.5