blob: 91a7e7fc76da01ba980630eb3cc3f570736bc328 (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# The toplevel namespace within which the test lives.
TOPLEVEL_NAMESPACE=/distribution
# The name of the package under test:
PACKAGE_NAME=virt
# The path of the test below the package:
RELATIVE_PATH=import
# Preserve the RPM name from the old repo location:
export RHTS_RPM_NAME=distribution-distribution-virt-import
# Version of the Test. Used with make tag.
export TESTVERSION=4.0
# The compiled namespace of the test.
export TEST=$(TOPLEVEL_NAMESPACE)/$(PACKAGE_NAME)/$(RELATIVE_PATH)
# Define to copy files
define cpfile
echo "Chmod a+x $(1)" ; \
chmod a+x ./$(1) ; \
echo "Copying $(1)" ; \
cp ./$(1) /usr/local/bin/. ; \
echo "Restore SELinux context $(1)" ; \
restorecon -vv /usr/local/bin/$(1) ;
endef
BINFILES= guestcheck4down \
guestcheck4up \
guestgethostname \
startguest \
stopguest \
virshstartguest \
virshstopguest \
wait4shutdown \
wait4login \
wait4guest \
xmstopguest \
xmstartguest \
getguestnames.sh \
isparavirt \
ishvm \
isxen \
iskvm \
isptyconsole \
isfileconsole \
filetopty.sh \
ptytofile.sh \
getconsolefile \
get_guest_info.py \
get_guest_fqdn.py \
rhts_submit_virt_logs \
rhts_virt_funcs.sh \
guest1cmd \
scp.exp \
zrhel5_write_consolelogs.py \
lxml_guestname_resolution.py \
minidom_guestname_resolution.py \
wait4guesttasks
FILES= $(METADATA) \
$(BINFILES) \
runtest.sh \
Makefile \
get_guest_info.py \
get_guest_fqdn.py \
logguestconsoles.c \
logguestconsoles.initd \
zrhel5_write_consolelogs.initd \
iptables_after_libvirtd.initd
binsetup:
$(foreach f,$(BINFILES),$(call cpfile,$(f)))
run: binsetup
chmod a+x ./runtest.sh ./*.exp ./*.py
./runtest.sh
# Include Common Makefile
include /usr/share/rhts/lib/rhts-make.include
# Generate the testinfo.desc here:
$(METADATA):
@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: Test to install xen/kvm guests. Uses libvirt userspace tools." >> $(METADATA)
@echo "TestTime: 43200" >> $(METADATA)
@echo "Requires: $(PACKAGE_NAME)" >> $(METADATA)
@echo "Architectures: i386 x86_64 ia64" >> $(METADATA)
@echo "Priority: Manual" >> $(METADATA)
@echo "Requires: autofs" >> $(METADATA)
@echo "Requires: bridge-utils" >> $(METADATA)
@echo "Requires: expect" >> $(METADATA)
@echo "Requires: genisoimage" >> $(METADATA)
@echo "Requires: kernel-xen" >> $(METADATA)
@echo "Requires: kvm" >> $(METADATA)
@echo "Requires: libvirt" >> $(METADATA)
@echo "Requires: mkisofs" >> $(METADATA)
@echo "Requires: openssh-server" >> $(METADATA)
@echo "Requires: python-virtinst" >> $(METADATA)
@echo "Requires: virt-manager" >> $(METADATA)
@echo "Requires: virt-viewer" >> $(METADATA)
@echo "Requires: vnc" >> $(METADATA)
@echo "Requires: vnc-server" >> $(METADATA)
@echo "Requires: xen" >> $(METADATA)
@echo "Requires: xorg-x11-server-Xvfb" >> $(METADATA)
@echo "Requires: xmlrpc-c-devel" >> $(METADATA)
@echo "Requires: openssl-devel" >> $(METADATA)
@echo "Requires: libcurl-devel" >> $(METADATA)
@echo "Requires: libxml2-devel" >> $(METADATA)
@echo "Requires: @virtualization" >> $(METADATA)
@echo "Requires: @virtualization-platform" >> $(METADATA)
@echo "Requires: @virtualization-tools" >> $(METADATA)
@echo "Requires: @virtualization-client" >> $(METADATA)
@echo "Requires: @x11" >> $(METADATA)
@echo "Requires: @fonts" >> $(METADATA)
@echo "RunFor: xen-libs" >> $(METADATA)
@echo "RhtsOptions: -Compatible -CompatService" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
|