blob: 31bd03aab5d5b5682d60c8a4a4dadf78ca0f0562 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# The toplevel namespace within which the test lives.
TOPLEVEL_NAMESPACE=/restraint
# The path of the test below the package:
RELATIVE_PATH=time_shift
# The test version:
export TESTVERSION=1.1
# The test namespace as it will appear:
export TEST=$(TOPLEVEL_NAMESPACE)/$(RELATIVE_PATH)
# Built executables should be added here:
BUILT_FILES=$(METADATA)
# the list of files that will be added to the test rpm:
FILES=$(BUILT_FILES) runtest.sh Makefile
TEST_DIR=/mnt/tests$(TEST)
build: $(BUILT_FILES)
clean:
rm -f *~ $(BUILT_FILES)
run: build
chmod a+x ./runtest.sh
./runtest.sh
# Include global Makefile targets
include /usr/share/rhts/lib/rhts-make.include
# Generate the testinfo.desc here:
$(METADATA):
@touch $(METADATA)
@echo "Owner: Bill Peck <bpeck@redhat.com>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Description: move the date time around" >> $(METADATA)
@echo "TestTime: 30m" >> $(METADATA)
@echo "Priority: Manual" >> $(METADATA)
@echo "License: GPL" >> $(METADATA)
|