aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authorEverett Hildenbrandt <hildenb2@illinois.edu>2018-05-30 00:45:50 +0800
committerEverett Hildenbrandt <hildenb2@illinois.edu>2018-05-31 22:37:30 +0800
commite5c12114d6417b44137171588043679bfd6550b0 (patch)
tree567ab561facf91b6fc95ee810410df8d73f9263b /test.py
parent61d5603b69909282188f6e11616ea7d82f6569e0 (diff)
downloaddexon-tests-e5c12114d6417b44137171588043679bfd6550b0.tar.gz
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-xtest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test.py b/test.py
index 146537a5a..79fab1ec0 100755
--- a/test.py
+++ b/test.py
@@ -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/"):