Implement ctest unit test, first test simply testing that envelope works as it used to.

This commit is contained in:
Veikko Sariola
2020-04-12 21:55:28 +03:00
parent e180694d9e
commit 8d984cbc38
5 changed files with 742 additions and 0 deletions

7
tests/CMakeLists.txt Normal file
View File

@ -0,0 +1,7 @@
add_executable(test_env test_env.asm test_renderer.c test_env_expected.raw)
add_custom_command(
TARGET test_env POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/tests/test_env_expected.raw
${CMAKE_CURRENT_BINARY_DIR}/test_env_expected.raw)
add_test(test_env test_env)