chore: add doc/examples to the test suite
This commit is contained in:
parent
53faa9c8ca
commit
52a52fbed7
2 changed files with 15 additions and 0 deletions
4
doc/examples/test_single.sh
Executable file
4
doc/examples/test_single.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
source ../../tests/common.sh
|
||||
|
||||
exec_check lean -j 0 "$f"
|
||||
|
|
@ -71,6 +71,17 @@ FOREACH(T ${LEANRUNTESTS})
|
|||
endif()
|
||||
ENDFOREACH(T)
|
||||
|
||||
# LEAN RUN doc/examples
|
||||
file(GLOB LEANDOCEXS "${LEAN_SOURCE_DIR}/../doc/examples/*.lean")
|
||||
FOREACH(T ${LEANDOCEXS})
|
||||
if(NOT T MATCHES "\\.#")
|
||||
GET_FILENAME_COMPONENT(T_NAME ${T} NAME)
|
||||
add_test(NAME "leandocex_${T_NAME}"
|
||||
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/../doc/examples"
|
||||
COMMAND bash -c "${TEST_VARS} ./test_single.sh ${T_NAME}")
|
||||
endif()
|
||||
ENDFOREACH(T)
|
||||
|
||||
# LEAN COMPILER TESTS
|
||||
file(GLOB LEANCOMPTESTS "${LEAN_SOURCE_DIR}/../tests/compiler/*.lean")
|
||||
FOREACH(T ${LEANCOMPTESTS})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue