memkind/tests/memkind-test.sh
Chunyu Hu 5f9cbdaade Initial commit to enable RHEL-9 gating for memkind
Resolves: rhbz#1969379
Signed-off-by: Chunyu Hu <chuhu@redhat.com>
2021-06-09 16:37:06 +08:00

27 lines
695 B
Bash
Executable File

#!/bin/sh
RETCODE=0
TMPTESTSFILE=/tmp/memkind-tests.log
TMPBUILDFILE=/tmp/memkind-build.log
# re-play the build
pushd source
./build.sh &> $TMPBUILDFILE
RETCODE=$?
if [ $RETCODE != 0 ]; then
cat $TMPBUILDFILE
exit $RETCODE
fi
pushd test
# run all tests filtering out those that are not meant
# to pass on a small VM
./all_tests --gtest_filter=-BATest.test_TC_MEMKIND_hbwmalloc_Pref_CheckAvailable:DlopenTest.*:HbwVerifyFunctionTest.*:NegativeTestHuge.test_TC_MEMKIND_hbwmalloc_memalign_psize_Interleave_Policy_PAGE_SIZE_2MB:HBW*.*:BATest.test_TC_MEMKIND_free_ext_MEMKIND_GBTLB_4096_bytes &> $TMPTESTSFILE
RETCODE=$?
if [ $RETCODE != 0 ]; then
cat $TMPTESTSFILE
fi
exit $RETCODE