Skip to content

Commit

Permalink
test.mk: Make sure to be silent on error output tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Feb 7, 2025
1 parent fb57af6 commit 3706dce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 4 additions & 4 deletions mk/test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,22 @@ endif
$(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
$(FSTAR) --message_format human --silent -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
$(FSTAR) --message_format human --silent -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
$(FSTAR) --message_format json --silent -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
$(FSTAR) --message_format json --silent -f --print_expected_failures $< >$@ 2>&1

$(OUTPUT_DIR)/$(subst .,_,%).ml:
$(call msg, "EXTRACT", $(basename $(notdir $@)))
Expand Down
3 changes: 0 additions & 3 deletions tests/error-messages/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ OTHERFLAGS := $(filter-out --query_stats, $(OTHERFLAGS))
OTHERFLAGS := $(filter-out --hint_info, $(OTHERFLAGS))
OTHERFLAGS += --ext fstar:no_absolute_paths

# Make sure we are silent
OTHERFLAGS += --silent

# For these tests, we check that the resugared output
# matches the expected file. We have to repeat the lines for
# json_output, sadly.
Expand Down
2 changes: 0 additions & 2 deletions tests/vale/DeltaAttr.fst.output.expected
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,3 @@ let test_5 x = x + 1 - 1 + (x + 1 - 1) <: Prims.int
"Calc.fst".
- Rename "Calc.fst" to avoid conflicts.

Verified module: DeltaAttr
All verification conditions discharged successfully

0 comments on commit 3706dce

Please sign in to comment.