#!/bin/bash export TCID=scrashme; export TST_TOTAL=8; 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 scrashme workload 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` echo "cwd: $cwd" mkdir tmp; cd tmp latest=`cat $PKGS_DIR/scrashme/LATEST` cmd="/usr/bin/time $SRC_DIR/scrashme-$latest/scrashme" tst_resm TINFO "using: $cmd" run_test "scrashme" "$cmd -r -s13579 -N2000" "$log_dir" "scrashme-r.log" tst_status $? -r TST_COUNT=2 run_test "scrashme" "$cmd -z -s13579 -N2000" "$log_dir" "scrashme-z.log" tst_status $? -z TST_COUNT=3 run_test "scrashme" "$cmd -k -s13579 -N1000" "$log_dir" "scrashme-k.log" tst_status $? -k TST_COUNT=4 run_test "scrashme" "$cmd -x 0x80000000 -s13579 -N1000" "$log_dir" "scrashme-x.log" tst_status $? -x TST_COUNT=5 run_test "scrashme" "$cmd -C -s13579 -N1000" "$log_dir" "scrashme-c.log" tst_status $? -C TST_COUNT=6 run_test "scrashme" "$cmd -Sr -s13579 -N1000" "$log_dir" "scrashme-sr.log" tst_status $? -Sr TST_COUNT=7 run_test "scrashme" "$cmd -S00 -s13579 -N1000" "$log_dir" "scrashme-s00.log" tst_status $? -S00 TST_COUNT=8 run_test "scrashme" "$cmd -Sff -s13579 -N1000" "$log_dir" "scrashme-sff.log" tst_status $? -Sff # $all_pkgs_dir/stress/stress-summary.sh tst_resm TINFO fini exit 0