Skip to content

Commit

Permalink
[#77] Update CMake Flags, Debug Prints
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrown2 committed Apr 29, 2024
1 parent 050c677 commit c44ddd9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/sa/internal/sa_interface_inmemory.template.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,16 +187,16 @@ int32_t sa_perform_save(SecurityAssociation_t* sa_ptr)
{
status = CRYPTO_LIB_SUCCESS;

//#ifdef DEBUG
#ifdef SA_DEBUG
printf("SA Written Successfull to file!\n");
//#endif
#endif
}
else
{
status = CRYPTO_LIB_ERR_FAIL_SA_SAVE;
//#ifdef DEBUG
#ifdef SA_DEBUG
printf("ERROR: SA Write FAILED!\n");
//#endif
#endif
}
}
fclose(sa_save_file);
Expand Down
2 changes: 1 addition & 1 deletion support/scripts/build_kmc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
source $SCRIPT_DIR/env.sh

cmake $BASE_DIR -DCODECOV=1 -DDEBUG=1 -DCRYPTO_KMC=1 -DKEY_KMC=1 -DMC_DISABLED=1 -DSA_MARIADB=1 -DTEST=1 -DTEST_ENC=1 -DKMC_CFFI_EXCLUDE=1 && make && make test
cmake $BASE_DIR -DCODECOV=1 -DDEBUG=1 -DCRYPTO_KMC=1 -DKEY_KMC=1 -DMC_DISABLED=1 -DSA_MARIADB=1 -DTEST=1 -DTEST_ENC=1 -DKMC_CFFI_EXCLUDE=1 -DSA_FILE=1 && make && make test
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ add_test(NAME UT_TM_PROCESS
COMMAND ${PROJECT_BINARY_DIR}/bin/ut_tm_process
WORKING_DIRECTORY ${PROJECT_TEST_DIR})

if(${SA_SAVE})
if(${SA_FILE})
add_test(NAME UT_SA_SAVE
COMMAND ${PROJECT_BINARY_DIR}/bin/ut_sa_save
WORKING_DIRECTORY ${PROJECT_TEST_DIR})
Expand Down

0 comments on commit c44ddd9

Please sign in to comment.