mirror of https://github.com/status-im/evmc.git
CMake: Clean up vmtester tests prefix
This commit is contained in:
parent
d3d21e00fc
commit
68ffbc1a2d
|
@ -14,23 +14,23 @@ install(TARGETS evmc-vmtester RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
|
||||||
add_test(NAME vmtester/examplevm COMMAND evmc-vmtester $<TARGET_FILE:evmc-example-vm>)
|
add_test(NAME vmtester/examplevm COMMAND evmc-vmtester $<TARGET_FILE:evmc-example-vm>)
|
||||||
|
|
||||||
add_test(NAME vmtester-help COMMAND evmc-vmtester --version --help)
|
add_test(NAME vmtester/help COMMAND evmc-vmtester --version --help)
|
||||||
set_tests_properties(vmtester-help PROPERTIES PASS_REGULAR_EXPRESSION "Usage:")
|
set_tests_properties(vmtester/help PROPERTIES PASS_REGULAR_EXPRESSION "Usage:")
|
||||||
|
|
||||||
add_test(NAME vmtester-nonexistingvm COMMAND evmc-vmtester nonexistingvm)
|
add_test(NAME vmtester/nonexistingvm COMMAND evmc-vmtester nonexistingvm)
|
||||||
set_tests_properties(vmtester-nonexistingvm PROPERTIES PASS_REGULAR_EXPRESSION "Cannot open")
|
set_tests_properties(vmtester/nonexistingvm PROPERTIES PASS_REGULAR_EXPRESSION "Cannot open")
|
||||||
|
|
||||||
add_test(NAME vmtester-noarg COMMAND evmc-vmtester)
|
add_test(NAME vmtester/noarg COMMAND evmc-vmtester)
|
||||||
set_tests_properties(vmtester-noarg PROPERTIES PASS_REGULAR_EXPRESSION "is required")
|
set_tests_properties(vmtester/noarg PROPERTIES PASS_REGULAR_EXPRESSION "is required")
|
||||||
|
|
||||||
add_test(NAME vmtester-too-many-args COMMAND evmc-vmtester a b)
|
add_test(NAME vmtester/too-many-args COMMAND evmc-vmtester a b)
|
||||||
set_tests_properties(vmtester-too-many-args PROPERTIES PASS_REGULAR_EXPRESSION "Unexpected")
|
set_tests_properties(vmtester/too-many-args PROPERTIES PASS_REGULAR_EXPRESSION "Unexpected")
|
||||||
|
|
||||||
add_test(NAME vmtester-version COMMAND evmc-vmtester --version)
|
add_test(NAME vmtester/version COMMAND evmc-vmtester --version)
|
||||||
set_tests_properties(vmtester-version PROPERTIES PASS_REGULAR_EXPRESSION ${PROJECT_VERSION})
|
set_tests_properties(vmtester/version PROPERTIES PASS_REGULAR_EXPRESSION ${PROJECT_VERSION})
|
||||||
|
|
||||||
add_test(NAME vmtester-unknown-option COMMAND evmc-vmtester --verbose)
|
add_test(NAME vmtester/unknown-option COMMAND evmc-vmtester --verbose)
|
||||||
set_tests_properties(vmtester-unknown-option PROPERTIES PASS_REGULAR_EXPRESSION "Unknown")
|
set_tests_properties(vmtester/unknown-option PROPERTIES PASS_REGULAR_EXPRESSION "Unknown")
|
||||||
|
|
||||||
add_test(NAME vmtester-option-long-prefix COMMAND evmc-vmtester ---)
|
add_test(NAME vmtester/option-long-prefix COMMAND evmc-vmtester ---)
|
||||||
set_tests_properties(vmtester-option-long-prefix PROPERTIES PASS_REGULAR_EXPRESSION "Unknown")
|
set_tests_properties(vmtester/option-long-prefix PROPERTIES PASS_REGULAR_EXPRESSION "Unknown")
|
||||||
|
|
Loading…
Reference in New Issue