| @@ -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 | |
| | | 43 | test_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 | |
43 | test_case basic basic | | 53 | test_case basic basic |
44 | test_case stress_short stress 1 | | 54 | test_case stress_short stress 1 |
45 | test_case stress_long stress 2 | | 55 | # test_case stress_long stress 2 |
46 | test_case stress_killer stress 5 kill | | 56 | test_case_skip stress_long 50350 |
| | | 57 | # test_case stress_killer stress 5 kill |
| | | 58 | test_case_skip stress_killer 55356 |
47 | test_case fork_simple fork simple | | 59 | test_case fork_simple fork simple |
48 | test_case fork_pipecomm fork pipecomm | | 60 | test_case fork_pipecomm fork pipecomm |
49 | test_case fork_fakeauth fork fakeauth | | 61 | test_case fork_fakeauth fork fakeauth |
50 | test_case sigsafe sigsafe sigsafe | | 62 | test_case sigsafe sigsafe sigsafe |
51 | test_case signal signal | | 63 | test_case signal signal |
52 | test_case reconnect reconnect | | 64 | # test_case reconnect reconnect |
| | | 65 | test_case_skip reconnect 55304 |
53 | | | 66 | |
54 | basic() | | 67 | basic() |
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 | |
61 | stress_short_head() | | 74 | stress_short_head() |
62 | { | | 75 | { |
63 | atf_set "require.memory" "64M" | | 76 | atf_set "require.memory" "64M" |
64 | } | | 77 | } |
65 | | | 78 | |