more rhts boilerplate imported from acl/
This commit is contained in:
parent
48bf308579
commit
40630c72c2
38
tests/dejagnu-smoketest/Makefile
Normal file
38
tests/dejagnu-smoketest/Makefile
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
TOPLEVEL_NAMESPACE=fedora
|
||||||
|
PACKAGE_NAME=systemtap
|
||||||
|
RELATIVE_PATH=Sanity/dejagnu-smoketest
|
||||||
|
export TESTVERSION=1.0
|
||||||
|
export TEST=/$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)
|
||||||
|
|
||||||
|
.PHONY: all install download clean
|
||||||
|
BUILT_FILES=
|
||||||
|
FILES=$(METADATA) runtest.sh Makefile PURPOSE test-smoke.sh
|
||||||
|
|
||||||
|
run: $(FILES) build
|
||||||
|
./runtest.sh
|
||||||
|
|
||||||
|
build: $(BUILT_FILES)
|
||||||
|
chmod a+x ./runtest.sh ./test-smoke.sh
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f *~ *.rpm $(BUILT_FILES)
|
||||||
|
|
||||||
|
include /usr/share/rhts/lib/rhts-make.include
|
||||||
|
|
||||||
|
# Generate the testinfo.desc here:
|
||||||
|
$(METADATA): Makefile
|
||||||
|
@touch $(METADATA)
|
||||||
|
# Change to the test owner's name
|
||||||
|
@echo "Owner: Frank Ch. Eigler <fche@redhat.com>" > $(METADATA)
|
||||||
|
@echo "Name: $(TEST)" >> $(METADATA)
|
||||||
|
@echo "Path: $(TEST_DIR)" >> $(METADATA)
|
||||||
|
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
|
||||||
|
@echo "Type: Sanity" >> $(METADATA)
|
||||||
|
@echo "Description: smoke test" >> $(METADATA)
|
||||||
|
@echo "TestTime: 10m" >> $(METADATA)
|
||||||
|
@echo "RunFor: $(PACKAGE_NAME)" >> $(METADATA)
|
||||||
|
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
|
||||||
|
@echo "License: GPLv2" >> $(METADATA)
|
||||||
|
|
||||||
|
# You may need other fields here; see the documentation
|
||||||
|
rhts-lint $(METADATA)
|
@ -1,11 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
rhts-run-simple-test $TEST ./test-smoke.sh
|
||||||
cd /usr/share/systemtap/testsuite
|
|
||||||
make installcheck RUNTESTFLAGS=proc_by_pid.exp
|
|
||||||
cat systemtap.sum | sed -ne '/systemtap.Summary/,$ p' | tee systemtap.sum.results
|
|
||||||
if grep -q unexpected systemtap.sum.results ; then
|
|
||||||
exit 0
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
12
tests/dejagnu-smoketest/test-smoke.sh
Executable file
12
tests/dejagnu-smoketest/test-smoke.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
cd /usr/share/systemtap/testsuite
|
||||||
|
make installcheck RUNTESTFLAGS=proc_by_pid.exp
|
||||||
|
cat systemtap.sum | sed -ne '/systemtap.Summary/,$ p' | tee systemtap.sum.results
|
||||||
|
if grep -q unexpected systemtap.sum.results ; then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user