mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
add module search path to test runs
This commit is contained in:
parent
d06d56154e
commit
1b960f949f
1 changed files with 3 additions and 2 deletions
|
@ -370,7 +370,7 @@ set(chibi-scheme-tests
|
||||||
|
|
||||||
foreach(e ${chibi-scheme-tests})
|
foreach(e ${chibi-scheme-tests})
|
||||||
add_test(NAME "${e}"
|
add_test(NAME "${e}"
|
||||||
COMMAND chibi-scheme tests/${e}.scm
|
COMMAND chibi-scheme -I ${CMAKE_CURRENT_BINARY_DIR}/lib tests/${e}.scm
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
@ -409,7 +409,8 @@ foreach(e ${testlibs})
|
||||||
string(REGEX REPLACE "/" "_" testname ${e})
|
string(REGEX REPLACE "/" "_" testname ${e})
|
||||||
string(REGEX REPLACE "/" " " form ${e})
|
string(REGEX REPLACE "/" " " form ${e})
|
||||||
add_test(NAME "lib_${testname}"
|
add_test(NAME "lib_${testname}"
|
||||||
COMMAND chibi-scheme -e "(import (${form}))"
|
COMMAND chibi-scheme -I ${CMAKE_CURRENT_BINARY_DIR}/lib
|
||||||
|
-e "(import (${form}))"
|
||||||
-e "(run-tests)"
|
-e "(run-tests)"
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Add table
Reference in a new issue