blob: d5f2a2bc4942eef9ab32b741cefe34ef844cc795 [file] [log] [blame]
#!/bin/bash
pushd `dirname $0` > /dev/null
. ./helpers.sh
load_hwpoison_inject
# make sure we have no hwpoisoned hugepage before starting this test.
free_resources > /dev/null
cat <<-EOF
***************************************************************************
Pay attention:
This test is soft mode of HWPoison functional test.
***************************************************************************
EOF
echo "------------------------------------------------------------------------"
echo "Running tsoft (simple soft offline test)"
run_test ./tsoft success
echo "------------------------------------------------------------------------"
echo "Running tsoftinj (soft offline test on various types of pages)"
mount_hugetlbfs
run_test ./tsoftinj success
unmount_hugetlbfs
echo "------------------------------------------------------------------------"
echo "Running random_offline (random soft offline test for 60 seconds)"
run_test "./random_offline -t 60" success
free_resources
show_summary
popd > /dev/null
exit $failed_testcase