#!/bin/bash export TCID=malloc_free; export TST_TOTAL=2; export TST_COUNT=1 . run_profile.txt . $base_dir/plans/commands/common.fns export PATH=/usr/local/bin:$PATH tst_resm TINFO "BEGIN PACKAGE $TCID" # Check needed vars from run_profile.txt [ ! -d "$run_dir" ] && tst_resm TCONF "ERROR: $run_dir does not exist" && exit -10 SUT=`hostname -s` tst_resm TINFO "Running malloc_free on SUT: $SUT" log_dir="$run_dir/test_output" mkdir -p $log_dir # no filesystem mounting needed other than the build dir. cwd=`/bin/pwd` tst_resm TINFO "cwd: $cwd" cmdtest1="./jakub -t 32 -i 10000 -p 128 -m mmap" cmdtest2="./jakub -t 32 -i 10000 -p 128 -m madvise" tst_resm TINFO "using: $cmdtest1" run_test "malloc_free" "/usr/bin/time $cmdtest1" "$log_dir" "malloc_free1.log" tst_status $? TST_COUNT=2 tst_resm TINFO "using: $cmdtest2" run_test "malloc_free" "/usr/bin/time $cmdtest2" "$log_dir" "malloc_free2.log" tst_status $? tst_resm TINFO fini exit 0