#!/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 linus-mm-stress workload on SUT: $SUT" # no filesystem mounting needed other than the build dir. latest=`cat $PKGS_DIR/linus-mm-stress/LATEST` cmd="/usr/bin/time $SRC_DIR/linus-mm-stress-$latest/linus-mm-stress -q" echo "using: $cmd" run_test "linus-mm-stress" "$cmd" "$log_dir" "linus-mm-stress.log" # Check the log file for "corrupt" error messages: cd $log_dir echo -n "Corruptions found: " tr "\r" "\n" < linus-mm-stress.log | grep -ic corrupt exit 0