summaryrefslogtreecommitdiffhomepage
path: root/tests/custom/CMakeLists.txt
blob: d56cb99cf5f54a961c284fbee908bd73015b005d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ADD_TEST(
	NAME custom
	COMMAND run_tests.sh
	WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
SET_PROPERTY(TEST custom APPEND PROPERTY ENVIRONMENT "UCODE_BIN=valgrind --quiet --leak-check=full $<TARGET_FILE:ucode>")

IF(CMAKE_C_COMPILER_ID STREQUAL "Clang")
	ADD_TEST(
		NAME custom-san
		COMMAND run_tests.sh
		WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
	)

	SET_PROPERTY(TEST custom-san APPEND PROPERTY ENVIRONMENT "UCODE_BIN=$<TARGET_FILE:ucode-san>")
ENDIF()