Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Corry committed Dec 8, 2023
1 parent 5408d10 commit 8bebbf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*_test.toit" "*_test_slow.toit")
file(GLOB VISUALIZED RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*_visualized.toit" "*_visualized_slow.toit")

set(TOITRUN "toit.run" CACHE STRING "The executable used to run the tests")
set(TOITPKG "toit.pkg" CACHE STRING "The executable used to install the packages")
set(TOITRUN "toit.run" CACHE FILEPATH "The executable used to run the tests")
set(TOITPKG "toit.pkg" CACHE FILEPATH "The executable used to install the packages")
set(TEST_TIMEOUT 40 CACHE STRING "The maximal amount of time each test is allowed to run")
set(SLOW_TEST_TIMEOUT 200 CACHE STRING "The maximal amount of time each slow test is allowed to run")

Expand Down Expand Up @@ -40,7 +40,7 @@ foreach(file ${TESTS})

add_test(
NAME "${test_name}"
COMMAND "${TOITRUN}" "tests/${file}"
COMMAND toit.run "tests/${file}"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..
)

Expand Down

0 comments on commit 8bebbf8

Please sign in to comment.