diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2018-06-04 11:52:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-04 11:52:58 +0800 |
commit | 20f1c0ae032440630fcfbb2caf3e9a751cec0ced (patch) | |
tree | 14c5ea256b50b315f70bcd72d21f8fff4088c1c3 /Makefile | |
parent | 073035c6ef89ae878c528e78d3b5ce59d1b71df7 (diff) | |
parent | 4687f103dd0168791e076e18a526e1cca0a3646f (diff) | |
download | tangerine-tests-20f1c0ae032440630fcfbb2caf3e9a751cec0ced.tar tangerine-tests-20f1c0ae032440630fcfbb2caf3e9a751cec0ced.tar.gz tangerine-tests-20f1c0ae032440630fcfbb2caf3e9a751cec0ced.tar.bz2 tangerine-tests-20f1c0ae032440630fcfbb2caf3e9a751cec0ced.tar.lz tangerine-tests-20f1c0ae032440630fcfbb2caf3e9a751cec0ced.tar.xz tangerine-tests-20f1c0ae032440630fcfbb2caf3e9a751cec0ced.tar.zst tangerine-tests-20f1c0ae032440630fcfbb2caf3e9a751cec0ced.zip |
Merge pull request #460 from ehildenb/exp-0-0
VMTests/.../exp8Filler: add test of EXP 0 0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 40 |
1 files changed, 33 insertions, 7 deletions
@@ -5,15 +5,41 @@ tx_tests:=$(wildcard TransactionTests/*) gs_tests:=$(wildcard GeneralStateTests/*) bc_tests:=$(wildcard BlockchainTests/*) vm_tests:=$(wildcard VMTests/*) -all_tests:=$(tx_tests) $(gs_tests) $(bc_tests) $(vm_tests) +all_tests:=$(gs_tests) $(bc_tests) $(vm_tests) -fill-tx: $(tx_tests:=.fill) -fill-gs: $(gs_tests:=.fill) -fill-bc: $(bc_tests:=.fill) -fill-vm: $(vm_tests:=.fill) -fill-all: fill-tx fill-gs fill-bc fill-vm +tx_fillers:=$(wildcard src/TransactionTestsFiller/*) +gs_fillers:=$(wildcard src/GeneralStateTestsFiller/*) +bc_fillers:=$(wildcard src/BlockchainTestsFiller/*) +vm_fillers:=$(filter-out %.sol %.md, $(wildcard src/VMTestsFiller/*)) +all_fillers:=$(gs_fillers) $(bc_fillers) $(vm_fillers) -# Actual filling command +all_schemas:=$(wildcard JSONSchema/*.json) + +# Testset sanitation + +sani: $(all_schemas:=.format) $(vm_fillers:=.format) $(vm_tests:=.format) + +%.format: + python3 test.py format ./$* + git diff --quiet --exit-code &>/dev/null + +%.sani: + python3 test.py validate ./$* + python3 test.py checkFilled ./$* + +# Test running command + +run-tests:=$(all-tests:=.test) +run: $(run-tests) + +%.run: + testeth -t $* -- --verbosity 2 + +# Test filling command + +fill-tests:=$(all-tests:=.fill) +fill: $(fill-tests) %.fill: testeth -t $* -- --filltests --verbosity 2 + python3 test.py format ./$* |