blob: 568db1ee744fbd7a2995d9c3bc6a4dad136c50f2 (
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
44
45
46
47
48
49
50
51
52
53
54
55
|
# Include global Makefile targets
include /usr/share/rhts/lib/rhts-make.include
# The toplevel namespace within which the test lives.
TOPLEVEL_NAMESPACE=/distribution
# The path of the test below the package:
RELATIVE_PATH=reservesys
# Preserve the RPM name from the old repo location:
export RHTS_RPM_NAME=beaker-distribution-reservesys
export TESTVERSION=3.4
export TEST=$(TOPLEVEL_NAMESPACE)/$(RELATIVE_PATH)
METADATA=testinfo.desc
# built executables should be added here
BUILT_FILES=$(METADATA)
FILES=$(BUILT_FILES) \
metadata \
reservesys.sh \
runtest.sh \
recipe_status \
Makefile
build: $(BUILT_FILES)
chmod a+x ./runtest.sh ./recipe_status
clean:
rm -rf ./mnt
rm -f *~ $(BUILT_FILES)
rm -f rhts-rh-tests-distribution-install*.noarch.rpm
run: build
./runtest.sh
# Generate the testinfo.desc here:
$(METADATA): Makefile
@touch $(METADATA)
@echo "Owner: Beaker Developers <beaker-devel@lists.fedorahosted.org>" > $(METADATA)
@echo "Name: $(TEST)" >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Description: Reserves system for specific time frame" >> $(METADATA)
@echo "TestTime: 24h" >> $(METADATA)
@echo "Priority: Manual" >> $(METADATA)
@echo "Requires: emacs" >> $(METADATA)
@echo "Requires: vim-enhanced" >> $(METADATA)
@echo "Requires: sendmail" >> $(METADATA)
@echo "Requires: psmisc" >> $(METADATA)
@echo "License: GPLv2+" >> $(METADATA)
@echo "RhtsOptions: -Compatible -CompatService" >> $(METADATA)
|