From 01c7f522b53cff28770d94f774c2202a66b8d9de Mon Sep 17 00:00:00 2001 From: 0xalivecow Date: Sat, 26 Oct 2024 22:07:16 +0200 Subject: [PATCH] chore: move testing files --- .github/workflows/kauma.yaml | 2 +- src/utils/poly.rs | 4 +++- {src/test_json => test_json}/b2p_p2b_example.json | 0 {src/test_json => test_json}/block2poly_example.json | 0 {src/test_json => test_json}/gfmul_test.json | 0 {src/test_json => test_json}/kauma_tests.json | 0 {src/test_json => test_json}/parse_example.json | 0 {src/test_json => test_json}/poly2block_example.json | 0 {src/test_json => test_json}/sea128.json | 0 9 files changed, 4 insertions(+), 2 deletions(-) rename {src/test_json => test_json}/b2p_p2b_example.json (100%) rename {src/test_json => test_json}/block2poly_example.json (100%) rename {src/test_json => test_json}/gfmul_test.json (100%) rename {src/test_json => test_json}/kauma_tests.json (100%) rename {src/test_json => test_json}/parse_example.json (100%) rename {src/test_json => test_json}/poly2block_example.json (100%) rename {src/test_json => test_json}/sea128.json (100%) diff --git a/.github/workflows/kauma.yaml b/.github/workflows/kauma.yaml index 9d1baed..73205af 100644 --- a/.github/workflows/kauma.yaml +++ b/.github/workflows/kauma.yaml @@ -66,4 +66,4 @@ jobs: docker tag ghcr.io/johndoe31415/labwork-docker:master labwork - name: Run labwork container run: | - docker run -v $PWD:/dut/ labwork /bin/bash -c '/dut/build && /dut/kauma ./src/test_json/kauma_tests.json' + docker run -v $PWD:/dut/ labwork /bin/bash -c '/dut/build && /dut/kauma ./test_json/kauma_tests.json' diff --git a/src/utils/poly.rs b/src/utils/poly.rs index bd173e7..3c14e76 100644 --- a/src/utils/poly.rs +++ b/src/utils/poly.rs @@ -80,6 +80,8 @@ mod tests { // Note this useful idiom: importing names from outer (for mod tests) scope. use super::*; + /* + * TODO: Consider removing #[test] fn coefficients_to_byte_arr_xex_test1() { let coefficients: Vec = vec![0]; @@ -97,7 +99,7 @@ mod tests { ]; assert_eq!(coefficients_to_byte_arr_xex(coefficients), byte_array) } - + */ #[test] fn byte_indices_0x01() { let byte: u8 = 0x01; diff --git a/src/test_json/b2p_p2b_example.json b/test_json/b2p_p2b_example.json similarity index 100% rename from src/test_json/b2p_p2b_example.json rename to test_json/b2p_p2b_example.json diff --git a/src/test_json/block2poly_example.json b/test_json/block2poly_example.json similarity index 100% rename from src/test_json/block2poly_example.json rename to test_json/block2poly_example.json diff --git a/src/test_json/gfmul_test.json b/test_json/gfmul_test.json similarity index 100% rename from src/test_json/gfmul_test.json rename to test_json/gfmul_test.json diff --git a/src/test_json/kauma_tests.json b/test_json/kauma_tests.json similarity index 100% rename from src/test_json/kauma_tests.json rename to test_json/kauma_tests.json diff --git a/src/test_json/parse_example.json b/test_json/parse_example.json similarity index 100% rename from src/test_json/parse_example.json rename to test_json/parse_example.json diff --git a/src/test_json/poly2block_example.json b/test_json/poly2block_example.json similarity index 100% rename from src/test_json/poly2block_example.json rename to test_json/poly2block_example.json diff --git a/src/test_json/sea128.json b/test_json/sea128.json similarity index 100% rename from src/test_json/sea128.json rename to test_json/sea128.json