#!/bin/bash export TCID=linus-mm-stress; 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 linus-mm-stress workload on SUT: $SUT" log_dir="$run_dir/test_output" mkdir -p $log_dir # 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" tst_resm TINFO "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 corruptions=`grep -ic corrupt linus-mm-stress.log` tst_resm TINFO "Corruptions found: $corruptions" if [ "$corruptions" = "0" ]; then tst_resm TPASS $TCID else tst_resm TFAIL $TCID: $corruptions corruptions fi tst_resm TINFO fini exit 0