From afb7eeb1f5917f39eef491fe579e452945e15d18 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Sat, 16 Aug 2014 01:37:36 +0200 Subject: [PATCH] [T] Add EmptyProject ctest for ogs executable. --- Applications/CMakeLists.txt | 2 ++ Applications/Tests.cmake | 5 +++++ Tests/Data/EmptyProject.xml.md5 | 1 + 3 files changed, 8 insertions(+) create mode 100644 Applications/Tests.cmake create mode 100644 Tests/Data/EmptyProject.xml.md5 diff --git a/Applications/CMakeLists.txt b/Applications/CMakeLists.txt index 5437ef7489f..3ae68b08854 100644 --- a/Applications/CMakeLists.txt +++ b/Applications/CMakeLists.txt @@ -13,3 +13,5 @@ ENDIF() # OGS_BUILD_GUI IF(OGS_BUILD_CLI ) ADD_SUBDIRECTORY(CLI) ENDIF() # OGS_BUILD_CLI + +INCLUDE(Tests.cmake) diff --git a/Applications/Tests.cmake b/Applications/Tests.cmake new file mode 100644 index 00000000000..84879e3b445 --- /dev/null +++ b/Applications/Tests.cmake @@ -0,0 +1,5 @@ + +add_test(NAME ogs_no_args COMMAND ogs) +set_tests_properties(ogs_no_args PROPERTIES WILL_FAIL TRUE) + +AddOgsBenchmark(ogs_empty_project EmptyProject.xml) diff --git a/Tests/Data/EmptyProject.xml.md5 b/Tests/Data/EmptyProject.xml.md5 new file mode 100644 index 00000000000..a88b3bf302e --- /dev/null +++ b/Tests/Data/EmptyProject.xml.md5 @@ -0,0 +1 @@ +ec9e4b48ac57b1fa7ea3113cef7f9935 -- GitLab