diff --git a/.github/workflows/build_and_unit_test.yml b/.github/workflows/build_and_unit_test.yml index b32c19be..ff641a77 100644 --- a/.github/workflows/build_and_unit_test.yml +++ b/.github/workflows/build_and_unit_test.yml @@ -23,5 +23,6 @@ jobs: ./build/wfb_keygen - name: Unit test run: | - ./build/unit_test + cd build + ./unit_test diff --git a/executables/unit_test.cpp b/executables/unit_test.cpp index 7ffcf73a..e97da788 100644 --- a/executables/unit_test.cpp +++ b/executables/unit_test.cpp @@ -110,8 +110,10 @@ static void test_fec_stream_random_bs_fs_overhead_dropped(){ // Test encryption+packet validation and packet validation only static void test_encrypt_decrypt_validate(const bool useGeneratedFiles,bool message_signing_only) { std::cout << "Using generated keypair (default seed otherwise):" << (useGeneratedFiles ? "y" : "n") << "\n"; - const std::string filename_gs="gs.key"; //"../example_keys/gs.key" - const std::string filename_drone="drone.key"; //"../example_keys/drone.key" + //const std::string filename_gs="gs.key"; + //const std::string filename_drone="drone.key"; + const std::string filename_gs="../example_keys/gs.key"; + const std::string filename_drone="../example_keys/drone.key"; std::optional encKey = useGeneratedFiles ? std::optional(filename_gs) : std::nullopt; std::optional decKey = useGeneratedFiles ? std::optional(filename_drone) : std::nullopt; if(message_signing_only){