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 (expand / 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,14 +1,14 @@ @@ -1,14 +1,14 @@
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#
@@ -30,36 +30,49 @@ test_case() @@ -30,36 +30,49 @@ test_case()
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