#!/bin/bash export TCID=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 stress 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` tst_resm TINFO "cwd: $cwd" cpus=`cpus_online.sh` ram_mb=`memsize.sh` ram_testsize=$((ram_mb / 2)) cmd="./src/stress --cpu $cpus --io $cpus --vm 1 --vm-bytes ${ram_testsize}M --hdd 1 --timeout 300s" # --verbose tst_resm TINFO "using: $cmd" run_test "stress" "/usr/bin/time $cmd" "$log_dir" "stress.log" tst_status $? # $all_pkgs_dir/stress/stress-summary.sh tst_resm TINFO fini exit 0