Skip to content

Commit

Permalink
tests: replace test runner shell script with ucode implementation
Browse files Browse the repository at this point in the history
The ucode interpreter and libraries are mature enough to execute their
own testcases now, so replace the existing shell script with an equivalent
ucode implementation.

Signed-off-by: Jo-Philipp Wich <[email protected]>
  • Loading branch information
jow- committed Jul 29, 2024
1 parent e391ef5 commit fbabec4
Show file tree
Hide file tree
Showing 3 changed files with 256 additions and 242 deletions.
4 changes: 2 additions & 2 deletions tests/custom/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ADD_TEST(
NAME custom
COMMAND run_tests.sh
COMMAND $<TARGET_FILE:ucode> -L $<TARGET_FILE_DIR:fs_lib>/*.so -S run_tests.uc
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)
SET_PROPERTY(TEST custom APPEND PROPERTY ENVIRONMENT
Expand All @@ -11,7 +11,7 @@ SET_PROPERTY(TEST custom APPEND PROPERTY ENVIRONMENT
IF(CMAKE_C_COMPILER_ID STREQUAL "Clang")
ADD_TEST(
NAME custom-san
COMMAND run_tests.sh
COMMAND $<TARGET_FILE:ucode> -L $<TARGET_FILE_DIR:fs_lib>/*.so -S run_tests.uc
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

Expand Down
240 changes: 0 additions & 240 deletions tests/custom/run_tests.sh

This file was deleted.

Loading

0 comments on commit fbabec4

Please sign in to comment.