Skip to content

Commit 4f392cc

Browse files
committed
Makefile, tests/foundry/test-foundry.sh: run test-foundry.sh from Makefile
1 parent cdaca16 commit 4f392cc

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ foundry_out := $(foundry_dir)/out
492492
test-foundry: KEVM_OPTS += --pyk --verbose --profile
493493
test-foundry: KEVM = $(PYK_ACTIVATE) && kevm
494494
test-foundry: KOMPILE = $(PYK_ACTIVATE) && kevm kompile
495-
test-foundry: tests/foundry/foundry.k.check tests/foundry/out/kompiled/foundry.k.prove
495+
test-foundry: tests/foundry/foundry.k.check tests/foundry/out/kompiled/foundry.k.prove tests/foundry/interactive.out.check
496496

497497
foundry-forge-build: $(foundry_out)
498498

@@ -503,6 +503,10 @@ $(foundry_out):
503503
rm -rf $@
504504
cd $(dir $@) && forge build
505505

506+
tests/foundry/interactive.out.check: tests/foundry/out/kompiled/timestamp $(KEVM_BIN)/kevm
507+
cd tests/foundry && ./test-foundry.sh > tests/foundry/interactive.out
508+
$(CHECK) tests/foundry/interactive.out tests/foundry/interactive.expected
509+
506510
tests/foundry/foundry.k.check: tests/foundry/out/kompiled/foundry.k
507511
grep --invert-match ' rule ( #binRuntime (' $< > $@.stripped
508512
$(CHECK) $@.stripped $@.expected

tests/foundry/test-foundry.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
set -xueo pipefail
44

5-
forge build
6-
kevm foundry-kompile out
7-
kevm foundry-prove out --test UintTypeTest.test_uint256 --depth 40
5+
forge build >&2
6+
kevm foundry-kompile out >&2
7+
kevm foundry-prove out --test UintTypeTest.test_uint256 --depth 40 >&2
8+
89
kevm foundry-list out
9-
kevm foundry-show out UintTypeTest.test_uint256 &> cfg.out
10-
cp cfg.out cfg.expected
10+
kevm foundry-show out UintTypeTest.test_uint256

0 commit comments

Comments
 (0)