#!/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