Skip to content
Snippets Groups Projects
Commit b48c64d4 authored by Rohit Gupta's avatar Rohit Gupta
Browse files

fixes to free memory in test setup

parent 08c688dc
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,8 @@ function test_compile() { ...@@ -111,6 +111,8 @@ function test_compile() {
compile_log_dir=`eval echo \"$OPENAIR_DIR/cmake_targets/log/\"` compile_log_dir=`eval echo \"$OPENAIR_DIR/cmake_targets/log/\"`
echo "Removing compilation log files in $compile_log_dir" echo "Removing compilation log files in $compile_log_dir"
rm -frv $compile_log_dir rm -frv $compile_log_dir
echo "Executing $pre_exec_file $pre_exe_args ...."
eval $pre_exec_file $pre_exec_args
echo "Executing $compile_prog $compile_prog_args ...." echo "Executing $compile_prog $compile_prog_args ...."
eval $compile_prog $compile_prog_args eval $compile_prog $compile_prog_args
echo "Copying compilation log files to test case log directory: $log_dir" echo "Copying compilation log files to test case log directory: $log_dir"
...@@ -280,7 +282,7 @@ function test_compile_and_run() { ...@@ -280,7 +282,7 @@ function test_compile_and_run() {
if [ -n "$pre_exec_file" ]; then if [ -n "$pre_exec_file" ]; then
{ echo " Executing $pre_exec_file $pre_exec_args " { echo " Executing $pre_exec_file $pre_exec_args "
eval " echo '$mypassword' |sudo -S -E $pre_exec_file $pre_exec_args " ; }>> $temp_exec_log 2>&1 eval " $pre_exec_file $pre_exec_args " ; }>> $temp_exec_log 2>&1
fi fi
echo "Executing $main_exec $main_exec_args_array_index " echo "Executing $main_exec $main_exec_args_array_index "
...@@ -503,6 +505,7 @@ for search_expr in "${test_case_array[@]}" ...@@ -503,6 +505,7 @@ for search_expr in "${test_case_array[@]}"
echo "search_expr_false = $search_expr_false" echo "search_expr_false = $search_expr_false"
echo "nruns = $nruns" echo "nruns = $nruns"
#eval $pre_exec #eval $pre_exec
compile_prog_out=`eval echo \"$compile_prog_out\"` compile_prog_out=`eval echo \"$compile_prog_out\"`
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment