diff options
author | Everett Hildenbrandt <hildenb2@illinois.edu> | 2018-05-30 00:45:50 +0800 |
---|---|---|
committer | Everett Hildenbrandt <hildenb2@illinois.edu> | 2018-05-31 22:37:30 +0800 |
commit | e5c12114d6417b44137171588043679bfd6550b0 (patch) | |
tree | 567ab561facf91b6fc95ee810410df8d73f9263b /test.py | |
parent | 61d5603b69909282188f6e11616ea7d82f6569e0 (diff) | |
download | dexon-tests-e5c12114d6417b44137171588043679bfd6550b0.tar dexon-tests-e5c12114d6417b44137171588043679bfd6550b0.tar.gz dexon-tests-e5c12114d6417b44137171588043679bfd6550b0.tar.bz2 dexon-tests-e5c12114d6417b44137171588043679bfd6550b0.tar.lz dexon-tests-e5c12114d6417b44137171588043679bfd6550b0.tar.xz dexon-tests-e5c12114d6417b44137171588043679bfd6550b0.tar.zst dexon-tests-e5c12114d6417b44137171588043679bfd6550b0.zip |
test.py, JSONSchema/{vm,vm-filler}-schema: add schemas for vm tests
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -81,8 +81,12 @@ def validateSchema(jsonFile, schemaFile): jsonschema.validate(jsonInput, schema) def validateTestFile(jsonFile): + if jsonFile.startswith("./src/VMTestsFiller/"): + validateSchema(jsonFile, "JSONSchema/vm-filler-schema.json") elif jsonFile.startswith("./src/GeneralStateTestsFiller/"): validateSchema(jsonFile, "JSONSchema/st-filler-schema.json") + elif jsonFile.startswith("./VMTests/"): + validateSchema(jsonFile, "JSONSchema/vm-schema.json") elif jsonFile.startswith("./GeneralStateTests/"): validateSchema(jsonFile, "JSONSchema/st-schema.json") elif jsonFile.startswith("./BlockchainTests/"): |