systemtap/tests/dejagnu-smoketest/test-smoke.sh

15 lines
419 B
Bash
Raw Normal View History

#! /bin/sh
cd /usr/share/systemtap/testsuite
2018-09-14 23:38:15 +00:00
rm -f systemtap.sum.results
make installcheck RUNTESTFLAGS=proc_by_pid.exp
cat systemtap.sum | sed -ne '/systemtap.Summary/,$ p' | tee systemtap.sum.results
2018-09-14 23:38:15 +00:00
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
2018-09-14 23:38:15 +00:00
log "RESULT: PASS"
fi