Add cmake test for the --version switch

This commit is contained in:
Joakim Hove
2018-12-09 21:41:28 +01:00
parent 54417a8033
commit 7c6831f8b9
+7
View File
@@ -132,6 +132,13 @@ opm_add_test(flow
flow/flow_ebos_oilwater_polymer.cpp)
install(TARGETS flow DESTINATION bin)
add_test(NAME flow__version
COMMAND flow --version)
set_tests_properties(flow__version PROPERTIES
PASS_REGULAR_EXPRESSION "${${project}_LABEL}")
include(OpmBashCompletion)
opm_add_bash_completion(flow)