aboutsummaryrefslogtreecommitdiff
path: root/c/test.py
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2020-01-08 23:04:15 -0500
committerJack O'Connor <[email protected]>2020-01-09 09:48:52 -0500
commit10c13c8d1cb3ccf1a19a4516a22e0767d6e1a98b (patch)
tree217ef1854fccb5388b7cb915e4923a5fe77755c2 /c/test.py
parent8be609ba9d82099d2f80c0e2fa3963bbb376a909 (diff)
remove the C code's duplicated copy of the test vectors
Diffstat (limited to 'c/test.py')
-rwxr-xr-xc/test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/c/test.py b/c/test.py
index f046f37..19476a8 100755
--- a/c/test.py
+++ b/c/test.py
@@ -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)