#!/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 scrashme workload on SUT: $SUT" # 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" echo "using: $cmd" run_test "scrashme" "$cmd -r -s13579 -N2000" "$log_dir" "scrashme-r.log" run_test "scrashme" "$cmd -z -s13579 -N2000" "$log_dir" "scrashme-z.log" run_test "scrashme" "$cmd -k -s13579 -N1000" "$log_dir" "scrashme-k.log" run_test "scrashme" "$cmd -x 0x80000000 -s13579 -N1000" "$log_dir" "scrashme-x.log" run_test "scrashme" "$cmd -C -s13579 -N1000" "$log_dir" "scrashme-c.log" run_test "scrashme" "$cmd -Sr -s13579 -N1000" "$log_dir" "scrashme-sr.log" run_test "scrashme" "$cmd -S00 -s13579 -N1000" "$log_dir" "scrashme-s00.log" run_test "scrashme" "$cmd -Sff -s13579 -N1000" "$log_dir" "scrashme-sff.log" # $all_pkgs_dir/stress/stress-summary.sh exit 0