forked from stepcode/stepcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
75 lines (62 loc) · 2.49 KB
/
CMakeLists.txt
File metadata and controls
75 lines (62 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
cmake_minimum_required(VERSION 3.12)
project(test_exppp)
set(breakLongStr_SRCS
test_breakLongStr.c
../exppp.c
)
add_test(NAME build_exppp
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} --build .
--target exppp
--config $<CONFIGURATION>
)
# this executable doesn't really check the results, just ensures no segfaults. ought to improve it...
SC_ADDEXEC(tst_breakLongStr SOURCES ${breakLongStr_SRCS} LINK_LIBRARIES express TESTABLE)
add_test(NAME build_tst_breakLongStr
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} --build .
--target tst_breakLongStr
--config $<CONFIGURATION>
)
add_test(test_breakLongStr ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tst_breakLongStr)
set_tests_properties(test_breakLongStr PROPERTIES DEPENDS build_tst_breakLongStr)
#could run test schemas through exppp, then check line length...
# ---- syntax tests ----
set(unitary_dir ${SC_SOURCE_DIR}/test/unitary_schemas)
add_test(NAME test_exppp_unique_qualifiers
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -DEXPPP=$<TARGET_FILE:exppp>
-DINFILE=${unitary_dir}/unique_qualifiers.exp
-P ${CMAKE_CURRENT_SOURCE_DIR}/unique_qualifiers.cmake
)
add_test(NAME test_exppp_lost_var
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -DEXPPP=$<TARGET_FILE:exppp>
-DINFILE=${CMAKE_CURRENT_SOURCE_DIR}/exppp_lost_var.exp
-P ${CMAKE_CURRENT_SOURCE_DIR}/exppp_lost_var.cmake
)
add_test(NAME test_exppp_inverse_qualifiers
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -DEXPPP=$<TARGET_FILE:exppp>
-DINFILE=${unitary_dir}/inverse_qualifiers.exp
-P ${CMAKE_CURRENT_SOURCE_DIR}/inverse_qualifiers.cmake
)
add_test(NAME test_exppp_div_slash
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -DEXPPP=$<TARGET_FILE:exppp>
-DINFILE=${CMAKE_CURRENT_SOURCE_DIR}/exppp_div_slash.exp
-P ${CMAKE_CURRENT_SOURCE_DIR}/exppp_div_slash.cmake
)
add_test(NAME test_exppp_supertype_andor
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMAND ${CMAKE_COMMAND} -DEXPPP=$<TARGET_FILE:exppp>
-DINFILE=${CMAKE_CURRENT_SOURCE_DIR}/exppp_supertype_andor.exp
-P ${CMAKE_CURRENT_SOURCE_DIR}/exppp_supertype_andor.cmake
)
set_tests_properties(test_exppp_unique_qualifiers test_exppp_inverse_qualifiers test_exppp_lost_var test_exppp_div_slash test_exppp_supertype_andor PROPERTIES DEPENDS build_exppp)
# Local Variables:
# tab-width: 8
# mode: cmake
# indent-tabs-mode: t
# End:
# ex: shiftwidth=2 tabstop=8