systemtap/tests/dejagnu-smoketest/test-smoke.sh
Frank Ch. Eigler c730acbcfd CI try 4
2018-09-14 19:38:35 -04:00

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