diff options
| author | Jack O'Connor <[email protected]> | 2020-01-08 23:04:15 -0500 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2020-01-09 09:48:52 -0500 |
| commit | 10c13c8d1cb3ccf1a19a4516a22e0767d6e1a98b (patch) | |
| tree | 217ef1854fccb5388b7cb915e4923a5fe77755c2 /c/test.py | |
| parent | 8be609ba9d82099d2f80c0e2fa3963bbb376a909 (diff) | |
remove the C code's duplicated copy of the test vectors
Diffstat (limited to 'c/test.py')
| -rwxr-xr-x | c/test.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -5,13 +5,14 @@ import json from os import path import subprocess -PROJECT_DIR = path.dirname(__file__) -TEST_VECTORS = json.load(open(path.join(PROJECT_DIR, "test_vectors.json"))) +HERE = path.dirname(__file__) +TEST_VECTORS_PATH = path.join(HERE, "..", "test_vectors", "test_vectors.json") +TEST_VECTORS = json.load(open(TEST_VECTORS_PATH)) TEST_CONTEXT = "BLAKE3 2019-12-27 16:29:52 test vectors context" def run_blake3(args, input): - output = subprocess.run([path.join(PROJECT_DIR, "blake3")] + args, + output = subprocess.run([path.join(HERE, "blake3")] + args, input=input, stdout=subprocess.PIPE, check=True) |
