15 lines
419 B
Bash
Executable File
15 lines
419 B
Bash
Executable File
#! /bin/sh
|
|
|
|
cd /usr/share/systemtap/testsuite
|
|
rm -f systemtap.sum.results
|
|
make installcheck RUNTESTFLAGS=proc_by_pid.exp
|
|
cat systemtap.sum | sed -ne '/systemtap.Summary/,$ p' | tee systemtap.sum.results
|
|
log "Results: `cat systemtap.sum.results`"
|
|
if [ ! -f systemtap.sum.results ]; then
|
|
log "RESULT: FAIL"
|
|
elif grep -q unexpected systemtap.sum.results ; then
|
|
log "RESULT: FAIL"
|
|
else
|
|
log "RESULT: PASS"
|
|
fi
|