test: add lake tests

This commit is contained in:
Sebastian Ullrich 2021-09-21 13:28:44 +02:00 committed by Leonardo de Moura
parent 524be36d23
commit 89f9045646
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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")