blob: a525bd60934bb8cfdff94f36074132505de92fd3 [file] [log] [blame]
alaffin802d3e32000-08-23 20:04:23 +00001#!/bin/sh
2
3cd `dirname $0`
plarsefd320c2001-09-05 20:45:14 +00004export LTPROOT=${PWD}
plars89a10bf2001-09-06 13:38:59 +00005export TMP="/tmp/runalltests-$$"
alaffin802d3e32000-08-23 20:04:23 +00006
alaffin879684a2000-09-20 18:41:17 +00007mkdir ${TMP}
8cd ${TMP}
alaffin802d3e32000-08-23 20:04:23 +00009
plars1a4c2022001-09-06 15:04:36 +000010export PATH="${PATH}:${LTPROOT}/testcases/bin"
alaffin802d3e32000-08-23 20:04:23 +000011
robbiew89933212002-06-13 05:30:20 +000012cat ${LTPROOT}/runtest/syscalls ${LTPROOT}/runtest/fs ${LTPROOT}/runtest/dio ${LTPROOT}/runtest/mm ${LTPROOT}/runtest/commands ${LTPROOT}/runtest/ipc ${LTPROOT}/runtest/sched ${LTPROOT}/runtest/float > ${TMP}/alltests
alaffin879684a2000-09-20 18:41:17 +000013
nstraz731655a2002-06-21 20:01:59 +000014# The fsx-linux tests use the SCRATCHDEV environment variable as a location
15# that can be reformatted and run on. Set SCRATCHDEV if you want to run
16# these tests. As a safeguard, this is disabled.
17unset SCRATCHDEV
18if [ -n "$SCRATCHDEV" ]; then
19 cat ${LTPROOT}/runtest/fsx >> ${TMP}/alltests
20fi
robbiew9612ae02001-12-19 17:39:55 +000021
robbiew03cbf732001-10-12 21:06:50 +000022${LTPROOT}/ver_linux
23
alaffin879684a2000-09-20 18:41:17 +000024${LTPROOT}/pan/pan -e -S -a $$ -n $$ -f ${TMP}/alltests
alaffin802d3e32000-08-23 20:04:23 +000025
alaffin802d3e32000-08-23 20:04:23 +000026if [ $? -eq "0" ]; then
alaffin879684a2000-09-20 18:41:17 +000027 echo pan reported PASS
alaffin802d3e32000-08-23 20:04:23 +000028else
alaffin879684a2000-09-20 18:41:17 +000029 echo pan reported FAIL
alaffin802d3e32000-08-23 20:04:23 +000030fi
alaffinad4c5fa2000-08-23 21:09:27 +000031
alaffin879684a2000-09-20 18:41:17 +000032rm -rf ${TMP}