-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ jobs: | |
- name: Run tests | ||
run: | | ||
cd test | ||
./lexer_test | ||
./A_Language_tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
add_executable(lexer_test lexer_test.cpp) | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
target_link_libraries(lexer_test gtest gtest_main) | ||
set(test A_Language_tests) | ||
|
||
add_test(NAME lexer_test COMMAND lexer_test) | ||
set(test_sources | ||
lexer_test.cpp | ||
) | ||
|
||
unset(TESTING CACHE) | ||
add_executable(${test} ${test_sources}) | ||
|
||
target_link_libraries(${test} PUBLIC | ||
gtest_main | ||
A_Language_lib | ||
) | ||
|
||
add_test(NAME ${test} COMMAND ${test}) | ||
|
||
# set the output directory for the test binary | ||
set_target_properties(lexer_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${MAINFOLDER}/test") | ||
set_target_properties(${test} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${MAINFOLDER}/test") |