Skip to content

Commit

Permalink
Print Z3 version just before running tests
Browse files Browse the repository at this point in the history
This commit updates makefiles to print Z3 version (as reported by
MachineArithmetic via `Z3 getVersion`) before tests are run. This
is to record the exact Z3 version used when testing in CI logs.
  • Loading branch information
janvrany authored and shingarov committed Oct 28, 2024
1 parent 339b34b commit f8e329b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions pharo/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ check-deps: $(PROJECT).image $(PHARO_VM)
$(PHARO_VM_HEADLESS) $< check-deps.st

test: $(PROJECT).image $(PHARO_VM)
$(PHARO_VM_HEADLESS) $< eval "'Current Z3 version: ', Z3 getVersion storeString"
$(PHARO_VM_HEADLESS) $< test --fail-on-failure \
'PreSmalltalks-Tests' \
'Z3-Tests' \
Expand Down
5 changes: 4 additions & 1 deletion stx/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ run: $(STX)
$(STX) --package-path ../src --load BaselineOf$(PROJECT)

test: $(STX)
$(STX) --package-path ../src --load BaselineOf$(PROJECT) --run Builder::ReportRunner -r Builder::TestReport --fail-on-failure -p Z3-Tests
$(STX) --package-path ../src --load BaselineOf$(PROJECT) --run Builder::ReportRunner \
-S "Stdout nextPutLine:'Current Z3 version: ', Z3 getVersion storeString" \
-r Builder::TestReport --fail-on-failure \
-p Z3-Tests

ifndef Z3_SOURCE_DIR
Z3_SOURCE_DIR=error-Z3-SOURCE-not-defined
Expand Down

0 comments on commit f8e329b

Please sign in to comment.