mirror of
https://github.com/autc04/Retro68.git
synced 2024-09-27 12:57:21 +00:00
21 lines
637 B
CMake
21 lines
637 B
CMake
|
enable_testing()
|
||
|
|
||
|
add_application(ReallyEmpty ReallyEmpty.c)
|
||
|
add_test(NAME ReallyEmpty COMMAND LaunchAPPL -e ReallyEmpty.bin)
|
||
|
|
||
|
add_application(Empty Empty.c)
|
||
|
add_test(NAME Empty COMMAND LaunchAPPL -e Empty.bin)
|
||
|
|
||
|
add_application(File File.c)
|
||
|
add_test(NAME File
|
||
|
COMMAND LaunchAPPL -e File.bin --logfile=out -t5
|
||
|
)
|
||
|
set_tests_properties(File PROPERTIES PASS_REGULAR_EXPRESSION "OK")
|
||
|
|
||
|
add_application(Timeout Timeout.c)
|
||
|
add_test(NAME Timeout
|
||
|
COMMAND sh -c "! LaunchAPPL -e Timeout.bin --logfile=out -t2"
|
||
|
)
|
||
|
set_tests_properties(Timeout PROPERTIES PASS_REGULAR_EXPRESSION "One;Two"
|
||
|
FAIL_REGULAR_EXPRESSION "Three")
|