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

test.mk: do not write checked files for output tests #3606

Merged
merged 1 commit into from
Nov 6, 2024
Merged
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
6 changes: 5 additions & 1 deletion mk/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ OUTPUT_DIR ?= _output
CACHE_DIR ?= _cache

FSTAR = $(FSTAR_EXE) $(SIL) \
--cache_checked_modules \
$(if $(NO_WRITE_CHECKED),,--cache_checked_modules) \
--odir $(OUTPUT_DIR) \
--cache_dir $(CACHE_DIR) \
--already_cached Prims,FStar \
Expand Down Expand Up @@ -78,18 +78,22 @@ endif
$(FSTAR) $<
touch -c $@

$(OUTPUT_DIR)/%.fst.output: NO_WRITE_CHECKED=1
$(OUTPUT_DIR)/%.fst.output: %.fst
$(call msg, "OUTPUT", $(basename $(notdir $@)))
$(FSTAR) --message_format human -f --print_expected_failures $< >$@ 2>&1

$(OUTPUT_DIR)/%.fsti.output: NO_WRITE_CHECKED=1
$(OUTPUT_DIR)/%.fsti.output: %.fsti
$(call msg, "OUTPUT", $(basename $(notdir $@)))
$(FSTAR) --message_format human -f --print_expected_failures $< >$@ 2>&1

$(OUTPUT_DIR)/%.fst.json_output: NO_WRITE_CHECKED=1
$(OUTPUT_DIR)/%.fst.json_output: %.fst
$(call msg, "JSONOUT", $(basename $(notdir $@)))
$(FSTAR) --message_format json -f --print_expected_failures $< >$@ 2>&1

$(OUTPUT_DIR)/%.fsti.json_output: NO_WRITE_CHECKED=1
$(OUTPUT_DIR)/%.fsti.json_output: %.fsti
$(call msg, "JSONOUT", $(basename $(notdir $@)))
$(FSTAR) --message_format json -f --print_expected_failures $< >$@ 2>&1
Expand Down
Loading