Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded build paths & modify basic workflow to build in random path #2019

Merged
merged 2 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions tests/test_acvp_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ def test_acvp_vec_sig_keygen(sig_name):
seed = testCase["seed"]
pk = testCase["pk"]
sk = testCase["sk"]


build_dir = helpers.get_current_build_dir_name()
helpers.run_subprocess(
['build/tests/vectors_sig', sig_name, "keyGen", seed, pk, sk]
[f'{build_dir}/tests/vectors_sig', sig_name, "keyGen", seed, pk, sk]
)

assert(variantFound == True)
Expand All @@ -146,8 +147,10 @@ def test_acvp_vec_sig_gen_deterministic(sig_name):
sk = testCase["sk"]
message = testCase["message"]
signature = testCase["signature"]

build_dir = helpers.get_current_build_dir_name()
helpers.run_subprocess(
['build/tests/vectors_sig', sig_name, "sigGen_det", sk, message, signature]
[f'{build_dir}/tests/vectors_sig', sig_name, "sigGen_det", sk, message, signature]
)

assert(variantFound == True)
Expand All @@ -173,8 +176,9 @@ def test_acvp_vec_sig_gen_randomized(sig_name):
signature = testCase["signature"]
rnd = testCase["rnd"]

build_dir = helpers.get_current_build_dir_name()
helpers.run_subprocess(
['build/tests/vectors_sig', sig_name, "sigGen_rnd", sk, message, signature, rnd]
[f'{build_dir}/tests/vectors_sig', sig_name, "sigGen_rnd", sk, message, signature, rnd]
)

assert(variantFound == True)
Expand All @@ -200,8 +204,9 @@ def test_acvp_vec_sig_ver(sig_name):
signature = testCase["signature"]
testPassed = "1" if testCase["testPassed"] else "0"

build_dir = helpers.get_current_build_dir_name()
helpers.run_subprocess(
['build/tests/vectors_sig', sig_name, "sigVer", pk, message, signature, testPassed]
[f'{build_dir}/tests/vectors_sig', sig_name, "sigVer", pk, message, signature, testPassed]
)

assert(variantFound == True)
Expand Down
Loading