Fri Aug 28 19:14:17 2020 UTC ()
Skip a few tests with reference to already existing PRs as after "recent"
scheduler changes these tests now leave rump_server processes around that
eat CPU and disturb later tests.


(martin)
diff -r1.14 -r1.15 src/tests/rump/rumpkern/t_sp.sh

cvs diff -r1.14 -r1.15 src/tests/rump/rumpkern/t_sp.sh (switch to unified diff)

--- src/tests/rump/rumpkern/t_sp.sh 2019/05/13 17:55:09 1.14
+++ src/tests/rump/rumpkern/t_sp.sh 2020/08/28 19:14:17 1.15
@@ -1,129 +1,142 @@ @@ -1,129 +1,142 @@
1# $NetBSD: t_sp.sh,v 1.14 2019/05/13 17:55:09 bad Exp $ 1# $NetBSD: t_sp.sh,v 1.15 2020/08/28 19:14:17 martin Exp $
2# 2#
3# Copyright (c) 2010 The NetBSD Foundation, Inc. 3# Copyright (c) 2010 The NetBSD Foundation, Inc.
4# All rights reserved. 4# All rights reserved.
5# 5#
6# Redistribution and use in source and binary forms, with or without 6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions 7# modification, are permitted provided that the following conditions
8# are met: 8# are met:
9# 1. Redistributions of source code must retain the above copyright 9# 1. Redistributions of source code must retain the above copyright
10# notice, this list of conditions and the following disclaimer. 10# notice, this list of conditions and the following disclaimer.
11# 2. Redistributions in binary form must reproduce the above copyright 11# 2. Redistributions in binary form must reproduce the above copyright
12# notice, this list of conditions and the following disclaimer in the 12# notice, this list of conditions and the following disclaimer in the
13# documentation and/or other materials provided with the distribution. 13# documentation and/or other materials provided with the distribution.
14# 14#
15# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 15# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
16# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 16# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
17# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 17# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 18# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 19# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 20# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 22# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 23# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 24# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25# POSSIBILITY OF SUCH DAMAGE. 25# POSSIBILITY OF SUCH DAMAGE.
26# 26#
27 27
28test_case() 28test_case()
29{ 29{
30 local name="${1}"; shift 30 local name="${1}"; shift
31 local check_function="${1}"; shift 31 local check_function="${1}"; shift
32 32
33 atf_test_case "${name}" cleanup 33 atf_test_case "${name}" cleanup
34 eval "${name}_head() { }" 34 eval "${name}_head() { }"
35 eval "${name}_body() { \ 35 eval "${name}_body() { \
36 ${check_function} " "${@}" "; \ 36 ${check_function} " "${@}" "; \
37 }" 37 }"
38 eval "${name}_cleanup() { \ 38 eval "${name}_cleanup() { \
39 RUMP_SERVER=unix://commsock rump.halt 39 RUMP_SERVER=unix://commsock rump.halt
40 }" 40 }"
41} 41}
42 42
 43test_case_skip()
 44{
 45 local name="${1}"; shift
 46 local pr="${1}"; shift
 47
 48 atf_test_case "${name}"
 49 eval "${name}_head() { }"
 50 eval "${name}_body() { atf_skip "'"'"PR ${pr}: leftover rump_server"'"'"; }"
 51}
 52
43test_case basic basic 53test_case basic basic
44test_case stress_short stress 1 54test_case stress_short stress 1
45test_case stress_long stress 2 55# test_case stress_long stress 2
46test_case stress_killer stress 5 kill 56test_case_skip stress_long 50350
 57# test_case stress_killer stress 5 kill
 58test_case_skip stress_killer 55356
47test_case fork_simple fork simple 59test_case fork_simple fork simple
48test_case fork_pipecomm fork pipecomm 60test_case fork_pipecomm fork pipecomm
49test_case fork_fakeauth fork fakeauth 61test_case fork_fakeauth fork fakeauth
50test_case sigsafe sigsafe sigsafe 62test_case sigsafe sigsafe sigsafe
51test_case signal signal 63test_case signal signal
52test_case reconnect reconnect 64# test_case reconnect reconnect
 65test_case_skip reconnect 55304
53 66
54basic() 67basic()
55{ 68{
56 export RUMP_SERVER=unix://commsock 69 export RUMP_SERVER=unix://commsock
57 atf_check -s exit:0 rump_server ${RUMP_SERVER} 70 atf_check -s exit:0 rump_server ${RUMP_SERVER}
58 atf_check -s exit:0 $(atf_get_srcdir)/h_client/h_simplecli 71 atf_check -s exit:0 $(atf_get_srcdir)/h_client/h_simplecli
59} 72}
60 73
61stress_short_head() 74stress_short_head()
62{ 75{
63 atf_set "require.memory" "64M" 76 atf_set "require.memory" "64M"
64} 77}
65 78
66stress_long_head() 79stress_long_head()
67{ 80{
68 atf_set "require.memory" "64M" 81 atf_set "require.memory" "64M"
69} 82}
70 83
71stress() 84stress()
72{ 85{
73 86
74 export RUMP_SERVER=unix://commsock 87 export RUMP_SERVER=unix://commsock
75 atf_check -s exit:0 rump_server \ 88 atf_check -s exit:0 rump_server \
76 -lrumpvfs -lrumpnet -lrumpnet_net -lrumpnet_netinet \ 89 -lrumpvfs -lrumpnet -lrumpnet_net -lrumpnet_netinet \
77 ${RUMP_SERVER} 90 ${RUMP_SERVER}
78 atf_check -s exit:0 -e ignore $(atf_get_srcdir)/h_client/h_stresscli $@ 91 atf_check -s exit:0 -e ignore $(atf_get_srcdir)/h_client/h_stresscli $@
79} 92}
80 93
81fork() 94fork()
82{ 95{
83 96
84 export RUMP_SERVER=unix://commsock 97 export RUMP_SERVER=unix://commsock
85 atf_check -s exit:0 rump_server -lrumpvfs ${RUMP_SERVER} 98 atf_check -s exit:0 rump_server -lrumpvfs ${RUMP_SERVER}
86 atf_check -s exit:0 $(atf_get_srcdir)/h_client/h_forkcli ${1} 99 atf_check -s exit:0 $(atf_get_srcdir)/h_client/h_forkcli ${1}
87} 100}
88 101
89sigsafe() 102sigsafe()
90{ 103{
91 104
92 export RUMP_SERVER=unix://commsock 105 export RUMP_SERVER=unix://commsock
93 atf_check -s exit:0 rump_server ${RUMP_SERVER} 106 atf_check -s exit:0 rump_server ${RUMP_SERVER}
94 atf_check -s exit:0 $(atf_get_srcdir)/h_client/h_sigcli 107 atf_check -s exit:0 $(atf_get_srcdir)/h_client/h_sigcli
95 108
96} 109}
97 110
98signal() 111signal()
99{ 112{
100 113
101 export RUMP_SERVER=unix://commsock 114 export RUMP_SERVER=unix://commsock
102 atf_check -s exit:0 $(atf_get_srcdir)/h_server/h_simpleserver \ 115 atf_check -s exit:0 $(atf_get_srcdir)/h_server/h_simpleserver \
103 ${RUMP_SERVER} sendsig 27 116 ${RUMP_SERVER} sendsig 27
104 atf_check -s signal:27 $(atf_get_srcdir)/h_client/h_simplecli block 117 atf_check -s signal:27 $(atf_get_srcdir)/h_client/h_simplecli block
105} 118}
106 119
107reconnect() 120reconnect()
108{ 121{
109 122
110 123
111 export RUMP_SERVER=unix://commsock 124 export RUMP_SERVER=unix://commsock
112 atf_check -s exit:0 rump_server ${RUMP_SERVER} 125 atf_check -s exit:0 rump_server ${RUMP_SERVER}
113 atf_check -s exit:0 -e ignore $(atf_get_srcdir)/h_client/h_reconcli 2 126 atf_check -s exit:0 -e ignore $(atf_get_srcdir)/h_client/h_reconcli 2
114} 127}
115 128
116atf_init_test_cases() 129atf_init_test_cases()
117{ 130{
118 131
119 atf_add_test_case basic 132 atf_add_test_case basic
120 atf_add_test_case stress_short 133 atf_add_test_case stress_short
121 atf_add_test_case stress_long 134 atf_add_test_case stress_long
122 atf_add_test_case stress_killer 135 atf_add_test_case stress_killer
123 atf_add_test_case fork_simple 136 atf_add_test_case fork_simple
124 atf_add_test_case fork_pipecomm 137 atf_add_test_case fork_pipecomm
125 atf_add_test_case fork_fakeauth 138 atf_add_test_case fork_fakeauth
126 atf_add_test_case sigsafe 139 atf_add_test_case sigsafe
127 atf_add_test_case signal 140 atf_add_test_case signal
128 atf_add_test_case reconnect 141 atf_add_test_case reconnect
129} 142}