Skip to content
This repository was archived by the owner on Aug 13, 2025. It is now read-only.

Commit b39b65b

Browse files
committed
Add pytest functions for shell system tests
In order to run the shell system tests, the pytest runner has to pick them up somehow. Adding an extra python file with a single function for the shell tests for each system test proved to be the most compatible way of running the shell tests across older pytest/xdist versions. Modify the legacy run.sh script to ignore these pytest-runner specific glue files when executing tests written in pytest.
1 parent 8b20cdb commit b39b65b

File tree

108 files changed

+1494
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+1494
-1
lines changed

bin/tests/system/acl/tests_sh_acl.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_acl(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_additional(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_addzone(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_allowquery(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_auth(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_autosign(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_builtin(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_cacheclean(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_case(run_tests_sh):
14+
run_tests_sh()
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2+
#
3+
# SPDX-License-Identifier: MPL-2.0
4+
#
5+
# This Source Code Form is subject to the terms of the Mozilla Public
6+
# License, v. 2.0. If a copy of the MPL was not distributed with this
7+
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
8+
#
9+
# See the COPYRIGHT file distributed with this work for additional
10+
# information regarding copyright ownership.
11+
12+
13+
def test_catz(run_tests_sh):
14+
run_tests_sh()

0 commit comments

Comments
 (0)