CI take 5, k.i.s.s.
This commit is contained in:
parent
645ca44195
commit
19d1385d28
@ -6,13 +6,13 @@ export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)
|
||||
|
||||
.PHONY: all install download clean
|
||||
BUILT_FILES=
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE test-smoke.sh
|
||||
FILES=$(METADATA) runtest.sh Makefile PURPOSE
|
||||
|
||||
run: $(FILES) build
|
||||
./runtest.sh
|
||||
|
||||
build: $(BUILT_FILES)
|
||||
chmod a+x ./runtest.sh ./test-smoke.sh
|
||||
chmod a+x ./runtest.sh
|
||||
|
||||
clean:
|
||||
rm -f *~ *.rpm $(BUILT_FILES)
|
||||
|
@ -1,6 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
dnf debuginfo-install -y kernel libstdc++-devel
|
||||
set -x
|
||||
|
||||
rhts-run-simple-test $TEST ./test-smoke.sh
|
||||
dnf debuginfo-install -y kernel
|
||||
|
||||
stap -L 'process("stap").mark("*")' | grep -q pass
|
||||
stap -L 'kernel.trace("*")' | grep -q sys_
|
||||
stap -v --example helloworld.stp
|
||||
stap -v -T 1 -e 'probe kernel.function("do_exit") {println($$vars)}'
|
||||
stap -v -T 1 -e 'probe syscall.* ? {println(argstr)}'
|
||||
|
@ -1,14 +0,0 @@
|
||||
#! /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
|
Loading…
Reference in New Issue
Block a user