File tree Expand file tree Collapse file tree 8 files changed +22
-2
lines changed Expand file tree Collapse file tree 8 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ project(crypto C)
24
24
set (SA_CUSTOM_PATH_DEFAULT "../../sa/custom" )
25
25
set (KEY_CUSTOM_PATH_DEFAULT "../../key/custom" )
26
26
set (MC_CUSTOM_PATH_DEFAULT "../../mc/custom" )
27
+ set (MC_LOG_PATH_DEFAULT "log.txt" )
27
28
set (CRYPTO_CUSTOM_PATH_DEFAULT "../../crypto/custom" )
28
29
29
30
@@ -120,6 +121,13 @@ if(DEBUG)
120
121
add_compile_options (-ggdb )
121
122
endif ()
122
123
124
+ if (DEFINED MC_LOG_CUSTOM_PATH )
125
+ message (STATUS "MC_LOG_CUSTOM_PATH set to: ${MC_LOG_CUSTOM_PATH} " )
126
+ add_compile_definitions (MC_LOG_PATH= "${MC_LOG_CUSTOM_PATH} " )
127
+ else ()
128
+ add_compile_definitions (MC_LOG_PATH= "${MC_LOG_PATH_DEFAULT} " )
129
+ endif ()
130
+
123
131
IF (KMC_MDB_RH )
124
132
ADD_DEFINITIONS (-DKMC_MDB_RH )
125
133
ADD_DEFINITIONS (-DKMC_CFFI_EXCLUDE )
Original file line number Diff line number Diff line change @@ -53,11 +53,11 @@ static int32_t mc_initialize(void)
53
53
int32_t status = CRYPTO_LIB_SUCCESS ;
54
54
55
55
/* Open log */
56
- mc_file_ptr = fopen ("log.txt" , "a" );
56
+ mc_file_ptr = fopen (MC_LOG_PATH , "a" );
57
57
if (mc_file_ptr == NULL )
58
58
{
59
59
status = CRYPTO_LIB_ERR_MC_INIT ;
60
- printf (KRED "ERROR: Monitoring andcontrol initialization - internal failed\n" RESET );
60
+ printf (KRED "ERROR: Monitoring and control initialization - internal failed\n" RESET );
61
61
}
62
62
63
63
return status ;
Original file line number Diff line number Diff line change 9
9
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
10
10
source $SCRIPT_DIR /env.sh
11
11
12
+ rm $BASE_DIR /CMakeCache.txt
13
+
12
14
cmake $BASE_DIR -DCODECOV=1 -DDEBUG=1 -DMC_INTERNAL=1 -DTEST=1 -DTEST_ENC=1 -DSA_FILE=1 -DKEY_VALIDATION=0 && make && make test
Original file line number Diff line number Diff line change 9
9
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
10
10
source $SCRIPT_DIR /env.sh
11
11
12
+ rm $BASE_DIR /CMakeCache.txt
13
+
12
14
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
Original file line number Diff line number Diff line change 9
9
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
10
10
source $SCRIPT_DIR /env.sh
11
11
12
+ rm $BASE_DIR /CMakeCache.txt
13
+
12
14
cmake $BASE_DIR && make && make test
Original file line number Diff line number Diff line change 9
9
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
10
10
source $SCRIPT_DIR /env.sh
11
11
12
+ rm $BASE_DIR /CMakeCache.txt
13
+
12
14
cmake $BASE_DIR -DCODECOV=1 -DDEBUG=1 -DMC_INTERNAL=1 -DTEST=1 -DTEST_ENC=1 -DSA_FILE=1 && make && make test
Original file line number Diff line number Diff line change 9
9
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
10
10
source $SCRIPT_DIR /env.sh
11
11
12
+ rm $BASE_DIR /CMakeCache.txt
13
+
12
14
cmake $BASE_DIR -DCODECOV=1 -DDEBUG=1 -DSUPPORT=1 -DTEST=1 -DTEST_ENC=1 && make && make test
Original file line number Diff line number Diff line change 9
9
SCRIPT_DIR=$( cd -- " $( dirname -- " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd )
10
10
source $SCRIPT_DIR /env.sh
11
11
12
+ rm $BASE_DIR /CMakeCache.txt
13
+
12
14
cmake $BASE_DIR -DCODECOV=1 -DDEBUG=1 -DCRYPTO_LIBGCRYPT=0 -DCRYPTO_WOLFSSL=1 -DTEST=1 -DTEST_ENC=1 -DSA_FILE=1 && make && make test
You can’t perform that action at this time.
0 commit comments