generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathMakefile
97 lines (73 loc) · 2.45 KB
/
Makefile
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
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
#
# Copyright (c) 2023, Oracle and/or its affiliates.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public
# License v2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 021110-1307, USA.
#
PERF_TESTS = stress_ng_test iperf3_test qperf_test
TUNER_TESTS = support_test log_test service_test inotify_test cap_test \
sample_test sample_legacy_test \
strategy_test strategy_legacy_test \
rollback_test rollback_legacy_test \
query_test rate_test \
pcp_pmda_test \
many_netns_test many_netns_legacy_test \
podman_globalonly_test podman_globalonly_legacy_test \
sysctl_test sysctl_legacy_test sysctl_netns_test \
netns_test netns_legacy_test \
file_download_test file_download_legacy_test \
udp_rmem_test udp_rmem_legacy_test \
udp_rmem_locked_test udp_mem_exhaust_test \
budget_test \
backlog_test backlog_legacy_test \
frag_test frag_legacy_test \
neigh_table_test neigh_table_v4only_test \
neigh_table_legacy_test \
mem_pressure_test mem_pressure_legacy_test \
mem_exhaust_test mem_exhaust_legacy_test \
good_syn_flood_test syn_flood_test \
wmem_test wmem_legacy_test \
rmem_test rmem_legacy_test \
cong_test cong_legacy_test
DEFAULT_TESTS = $(TUNER_TESTS) $(PERF_TESTS)
TESTS = $(DEFAULT_TESTS)
LIBS = test_lib.sh
PROGS = conn_bomb
CFLAGS += -lpthread
OBJS = conn_bomb.o
INSTALLFILES = $(DEFAULT_TESTS:%=%.sh) $(LIBS)
DESTDIR ?=
prefix ?= /usr
installprefix ?= $(DESTDIR)/$(prefix)
INSTALLPATH = $(installprefix)/lib/tcptune_test/
install_sh_PROGRAM = install
install_sh_DIR = install -dv
all: strategydir $(PROGS)
strategydir:
cd strategy; make
PHONY: clean
clean: strategyclean
rm -f $(PROGS)
strategyclean:
cd strategy; make clean
test: all $(TESTS)
test_perf: $(PERF_TESTS)
test_tuner: $(TUNER_TESTS)
install: $(INSTALLFILES)
$(install_sh_DIR) -d $(INSTALLPATH) ; \
$(install_sh_PROGRAM) $^ -t $(INSTALLPATH) ; \
$(TESTS): %:%.sh
TEST_ID=$$PPID bash $<
PHONY: clean