test: add lake tests
This commit is contained in:
parent
524be36d23
commit
89f9045646
2 changed files with 8 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ rec {
|
|||
ln -sf ${lean-all}/* .
|
||||
'';
|
||||
buildPhase = ''
|
||||
ctest --output-on-failure -E 'leancomptest_(doc_example|foreign)' -j$NIX_BUILD_CORES
|
||||
ctest --output-on-failure -E 'leancomptest_(doc_example|foreign)|laketest' -j$NIX_BUILD_CORES
|
||||
'';
|
||||
installPhase = ''
|
||||
touch $out
|
||||
|
|
|
|||
|
|
@ -202,3 +202,10 @@ add_test(NAME leanpkgtest_user_attr_app
|
|||
export PATH=${LEAN_BIN}:$PATH
|
||||
find . -name '*.olean' -delete
|
||||
leanmake bin LINK_OPTS='${LEAN_DYN_EXE_LINKER_FLAGS}' && build/bin/UserAttr")
|
||||
|
||||
add_test(NAME laketest
|
||||
WORKING_DIRECTORY "${LEAN_SOURCE_DIR}/lake/examples"
|
||||
COMMAND bash -c "
|
||||
set -eu
|
||||
export PATH=${LEAN_BIN}:$PATH
|
||||
make LAKE=lake test")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue