-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
28 lines (22 loc) · 1.12 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.12)
project(pylc3.autograder.examples)
find_package(Python3 COMPONENTS Interpreter REQUIRED)
enable_testing()
function(make_test TEST TEST_FILE)
get_filename_component(PARENT_DIR ${TEST_FILE} DIRECTORY)
add_test(
NAME ${TEST}
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_FILE}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${PARENT_DIR}
)
endfunction(make_test TEST TEST_FILE)
make_test(simple_add_test simple_add/simple_add_test.py)
make_test(simple_sum_test simple_sum/simple_sum_test.py)
make_test(simple_string_test simple_string/simple_string_test.py)
make_test(simple_io_test simple_io/simple_io_test.py)
make_test(student_test simple_data/student_test.py)
make_test(linked_list_test linked_list/linked_list_test.py)
make_test(double_subr_test lc3_calling_convention_basic/double_subr_test.py)
make_test(add_chars_test lc3_calling_convention_extra/add_chars_test.py)
make_test(mccarthy91_test lc3_calling_convention_recursive/mccarthy91_test.py)
make_test(mccarthy91_pbr_test subroutine_pass_by_regs/mccarthy91_test.py)