Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy-up testing examples with the F* binary package #3156

Merged
merged 5 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scripts/test_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ diag "-- Verify all examples --"
if [[ -z "$CI_THREADS" ]] ; then
CI_THREADS=1
fi
make -j "$CI_THREADS" -C /tmp/fstar_examples && make -j "$CI_THREADS" -C /tmp/fstar_doc/tutorial regressions
make -j "$CI_THREADS" -C /tmp/fstar_examples HAS_OCAML= && make -j "$CI_THREADS" -C /tmp/fstar_doc/tutorial HAS_OCAMLFIND= regressions
if [ $? -ne 0 ]; then
echo -e "* ${RED}FAIL!${NC} for all examples - make returned $?"
exit 1
Expand Down
20 changes: 15 additions & 5 deletions examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,25 @@ all: prep verify special_cases

EXCLUDE_DIRS=old/ hello/ native_tactics/ kv_parsing/ miniparse/

# F* contrib directory needed by crypto/ . Since this Makefile
# supersedes crypto/Makefile, we need to determine the location of the
# F* contrib directory here.
ifdef FSTAR_HOME
FSTAR_UCONTRIB = $(shell if test -d $(FSTAR_HOME)/ucontrib ; then echo $(FSTAR_HOME)/ucontrib ; else echo $(FSTAR_HOME)/share/fstar/contrib ; fi)
else
# FSTAR_HOME not defined, assume fstar.exe installed through opam
# or binary package, and reachable from PATH
FSTAR_UCONTRIB=$(dir $(shell which fstar.exe))/../share/fstar/contrib
endif

INCLUDE_PATHS?= \
$(filter-out $(EXCLUDE_DIRS),$(shell ls -d */)) \
../ucontrib/CoreCrypto/fst \
../ucontrib/Platform/fst \
$(FSTAR_UCONTRIB)/CoreCrypto/fst \
$(FSTAR_UCONTRIB)/Platform/fst \
$(shell ls -d dsls/*/) \
$(shell ls -d verifythis/*/) \
$(shell ls -d demos/*/) \
tactics/eci19

include Makefile.common

verify: prep $(filter-out $(CACHE_DIR)/Launch.fst.checked, $(ALL_CHECKED_FILES))
Expand All @@ -41,12 +51,12 @@ SPECIAL_CASES += native_tactics
endif

ifdef KRML_HOME
SPECIAL_CASES += demos
SPECIAL_CASES += kv_parsing
SPECIAL_CASES += miniparse
endif

special_cases: $(addsuffix .all, $(SPECIAL_CASES))
$(MAKE) -C semiring CanonCommSemiring.native

%.all: %
+$(MAKE) -C $^ all
Expand Down
1 change: 1 addition & 0 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ALL_TEST_DIRS += incl
ALL_TEST_DIRS += machine_integers
ALL_TEST_DIRS += micro-benchmarks
ALL_TEST_DIRS += prettyprinting
ALL_TEST_DIRS += semiring
ALL_TEST_DIRS += struct
ALL_TEST_DIRS += tactics
ALL_TEST_DIRS += typeclasses
Expand Down
File renamed without changes.