]>
git.saurik.com Git - apple/xnu.git/blob - tools/tests/MPMMTest/MPMMtest_run.sh
4 MPMMTEST
="${TESTDIR}/MPMMtest"
5 MPMMTEST_64
="${TESTDIR}/MPMMtest_64"
6 KQMPMMTEST
="${TESTDIR}/KQMPMMtest"
7 KQMPMMTEST_64
="${TESTDIR}/KQMPMMtest_64"
11 ARCHOUT
=`file /bin/ls`
12 if [[ $ARCHOUT == *"64-bit"* ]]; then
21 if [ -e $MPMMTEST ] && [ -x $MPMMTEST ]
23 # Tentatively test for 32-bit support
24 $MPMMTEST -count 0 -servers 0 -clients 0 &> /dev
/null
26 if [ $?
== 0 ] || [ $IS_64BIT_BOOTED_OS == 0 ]
28 # If 32-bit support appears to be present OR if this is not
29 # a 64-bit environment, run the test.
30 echo ""; echo " Running $MPMMTEST";
31 $MPMMTEST -perf || { x
=$?
; echo "$MPMMTEST failed $x "; exit $x; }
35 if [ -e $MPMMTEST_64 ] && [ -x $MPMMTEST_64 ] && [ $IS_64BIT_BOOTED_OS == 1 ]
37 echo ""; echo " Running $MPMMTEST_64"
38 $MPMMTEST_64 -perf || { x
=$?
; echo "$MPMMTEST_64 failed $x"; exit $x; }
41 if [ -e $KQMPMMTEST ] && [ -x $KQMPMMTEST ]
43 # Tentatively test for 32-bit support
44 $KQMPMMTEST -count 0 -servers 0 -clients 0 &> /dev
/null
46 if [ $?
== 0 ] || [ $IS_64BIT_BOOTED_OS == 0 ]
48 # If 32-bit support appears to be present OR if this is not
49 # a 64-bit environment, run the test.
50 echo ""; echo " Running $KQMPMMTEST"
51 $KQMPMMTEST -perf || { x
=$?
; echo "$KQMPMMTEST failed $x"; exit $x; }
55 if [ -e $KQMPMMTEST_64 ] && [ -x $KQMPMMTEST_64 ] && [ $IS_64BIT_BOOTED_OS == 1 ]
57 echo ""; echo " Running $KQMPMMTEST_64"
58 $KQMPMMTEST_64 -perf || { x
=$?
; echo "$KQMPMMTEST_64 failed $x"; exit $?
; }
61 echo ""; echo " SUCCESS";