#!/bin/bash . run_profile.txt . $base_dir/plans/commands/common.fns # Check needed vars from run_profile.txt [ ! -d "$run_dir" ] && echo "ERROR: $run_dir does not exist" && exit -10 SUT=`hostname -s` log_dir="$run_dir/test_output" mkdir -p $log_dir echo "Running malloc_free on SUT: $SUT" # no filesystem mounting needed other than the build dir. cwd=`/bin/pwd` echo "cwd: $cwd" cmdtest1="./jakub -t 32 -i 10000 -p 128 -m mmap" cmdtest2="./jakub -t 32 -i 10000 -p 128 -m madvise" run_test "malloc_free" "/usr/bin/time $cmdtest1" "$log_dir" "malloc_free1.log" run_test "malloc_free" "/usr/bin/time $cmdtest2" "$log_dir" "malloc_free2.log" exit 0