aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorEverett Hildenbrandt <hildenb2@illinois.edu>2018-06-07 01:12:54 +0800
committerEverett Hildenbrandt <hildenb2@illinois.edu>2018-06-07 01:12:54 +0800
commiteb53b6b4bb11a83bce205f01926766a3beb33075 (patch)
treea2b4928c81add95f64bad0bd4da071ce28d00da3 /README.md
parent9aa63fc9534a82defa9899a5dbd17957323df8e5 (diff)
downloadtangerine-tests-eb53b6b4bb11a83bce205f01926766a3beb33075.tar
tangerine-tests-eb53b6b4bb11a83bce205f01926766a3beb33075.tar.gz
tangerine-tests-eb53b6b4bb11a83bce205f01926766a3beb33075.tar.bz2
tangerine-tests-eb53b6b4bb11a83bce205f01926766a3beb33075.tar.lz
tangerine-tests-eb53b6b4bb11a83bce205f01926766a3beb33075.tar.xz
tangerine-tests-eb53b6b4bb11a83bce205f01926766a3beb33075.tar.zst
tangerine-tests-eb53b6b4bb11a83bce205f01926766a3beb33075.zip
README: document how to use the Makefile
Diffstat (limited to 'README.md')
-rw-r--r--README.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/README.md b/README.md
index d0cdcf868..f8bd75f40 100644
--- a/README.md
+++ b/README.md
@@ -37,6 +37,51 @@ All files should be of the form:
Arrays are allowed, but don't use them for sets of properties - only use them for data that is clearly a continuous contiguous sequence of values.
+Test Set Sanitation
+-------------------
+
+### Checkers
+
+Several basic checks against the test-set are performed to enusre that they have been filled and are formatted correctly.
+Currently, there are three types of checks that we can perform:
+
+- `make TEST_PREFIX.format`: check that the JSON is formatted correctly.
+- `make TEST_PREFIX.valid`: check that the JSON files are valid against the JSON schemas in `./JSONSchema`.
+- `make TEST_PREFIX.filled`: check that the JSON tests are filled with the correct source hashes against the fillers.
+
+The constant `TEST_PREFIX` is a path prefix to the test-set you're interested in performing the checks on.
+For instance:
+
+- `make ./src/VMTestsFiller/vmArithmeticTest.format` will check that all JSON files in `./src/VMTestsFiller/vmArithmeticTest` are formatted correctly.
+- `make ./src.valid` will check that all the JSON files in `./src` are valid against the JSON schemas in `./JSONSchema`.
+- `make ./BlockchainTests.filled` will check that the source hashes in the JSON tests in `./BlockchainTests` are the same as the hashes of the fillers in `./src/BlockchainTestsFiller`.
+
+These checks are all performed by the file `./test.py`, which can be invoked on individual files as well.
+Run `./test.py` with no arguments for help.
+
+### Sanitizers
+
+The above checkers are packaged together into sanitizers for each test-suite, marking which testsuites are passing which testers.
+See the `TODO`s in the `Makefile` to see which checkers are enabled for which test-suites.
+
+- `make sani`: will run all passing sanitizers on all passing testsuites.
+- `make sani-TESTNAME`: will run just the passing sanitizers for the given testsuite.
+ `TESTNAME` can be one of:
+
+ - `vm`: VMTests and VMTestsFiller
+ - `gs`: GeneralStateTests and GeneralStateTestsFiller
+ - `bc`: BlockchainTests and BlockchainTestsFiller
+ - `tx`: TransactionTests and TransactionTestsFiller
+
+### Runners/Fillers
+
+The tests can also be run/filled with the same `Makefile`.
+
+- `make run`: will use `testeth` to all the test-suites.
+- `make fill`: will use `testeth` to fill all the test-suites.
+- `make TEST_PREFIX.run`: runs a single testsuite.
+- `make TEST_PREFIX.fill`: fills and formats a single testsuite.
+
FAQ
---