blob: 4effa22d79cdeeb07fcce6d956420765d83a9329 (
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
|
# The name of the package under test
PACKAGE_NAME=kernel
# The toplevel namespace within which the test lives.
TOPLEVEL_NAMESPACE=/$(PACKAGE_NAME)
# The version of the test rpm that gets
# created / submitte
export TESTVERSION=1.2
# The path of the test below the package
RELATIVE_PATH=performance/fs_mark
# The relative path name to the test
export TEST=$(TOPLEVEL_NAMESPACE)/$(RELATIVE_PATH)
# Name of the tgz file that will be bundled in the rpm
TARGET=fs_mark-3.2
FILES= $(METADATA) \
$(TARGET).tgz \
plot_1 \
plot_2 \
plot_3 \
plot_4 \
runtest.sh \
Makefile
clean:
$(RM) *~ rm $(METADATA)
rm -rf $(TARGET) rh-tests-kernel-*.rpm
rm -rf fs_mark $(TARGET).tgz
run: build
chmod +x ./runtest.sh
./runtest.sh
build: $(METADATA) $(TARGET)
make -C fs_mark
cp plot_[1234] fs_mark
$(TARGET).tgz:
wget http://download.devel.redhat.com/qa/rhts/lookaside/$(TARGET).tgz
$(TARGET): $(TARGET).tgz
tar -zxvf $(TARGET).tgz
# Include a global make rules file
include /usr/share/rhts/lib/rhts-make.include
showmeta: $(METADATA)
@cat $(METADATA)
@rhts-lint $(METADATA)
$(METADATA):
touch $(METADATA)
@echo "Name: $(TEST)" > $(METADATA)
@echo "Description: Modified 3.2 version of \
Larry McVoy's lmbench program." >> $(METADATA)
@echo "Path: $(TEST_DIR)" >> $(METADATA)
@echo "TestTime: 80m" >> $(METADATA)
@echo "TestVersion: $(TESTVERSION)" >> $(METADATA)
@echo "Releases: RHEL4 RHELServer5 RHEL6 RHEL7 RedHatEnterpriseLinux7" >> $(METADATA)
@echo "#Architectures: All" >> $(METADATA)
@echo "Destructive: no" >> $(METADATA)
@echo "Type: KernelTier1" >> $(METADATA)
@echo "Priority: Normal" >> $(METADATA)
@echo "RunFor: kernel" >> $(METADATA)
@echo "Requires: kernel-devel" >> $(METADATA)
@echo "Requires: gcc" >> $(METADATA)
@echo "Requires: make" >> $(METADATA)
@echo "Requires: glibc-static" >> $(METADATA)
@echo "Requires: gnuplot" >> $(METADATA)
@echo "Owner: Jeff Burke <jburke@redhat.com>" >> $(METADATA)
@echo "License: GPLv2" >> $(METADATA)
|