#!/bin/bash export TCID=unixbench; export TST_TOTAL=1; 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 unixbench workload on SUT: $SUT" log_dir="$run_dir/test_output" mkdir -p $log_dir # no filesystem mounting needed other than the build dir. cmd="/usr/bin/time ./Run -1" tst_resm TINFO "using: $cmd" run_test "unixbench" "$cmd" "$log_dir" "unixbench.log" sts=$? tst_resm TINFO "Unixbench results:" # print lines from "INDEX VALUES" thru "FINAL SCORE" to main log file: awk '$0 ~ "INDEX VALUES", $0 ~ "FINAL SCORE"' $log_dir/unixbench.log tst_status $sts tst_resm TINFO fini exit 0