CMake: Clean up vmtester tests prefix

This commit is contained in:
Paweł Bylica 2019-04-02 13:32:20 +02:00
parent d3d21e00fc
commit 68ffbc1a2d
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 14 additions and 14 deletions

View File

@ -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")