2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[705-wipe_data-sh-and-other-upgrade_-scripts-do-not-set-prefix] Protected dhcp_test_lib.sh against unset ${prefix} and fixed includers

This commit is contained in:
Francis Dupont
2019-06-28 13:28:38 +02:00
parent 2187d76041
commit 5b33ae7dd2
12 changed files with 28 additions and 7 deletions

View File

@@ -6,6 +6,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Include common test library.
. @abs_top_builddir@/src/lib/testutils/dhcp_test_lib.sh

View File

@@ -1,11 +1,12 @@
#!/bin/sh
# Copyright (C) 2014-2018 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2014-2019 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Include common test library.
. @abs_top_builddir@/src/lib/testutils/dhcp_test_lib.sh

View File

@@ -6,6 +6,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Include common test library.
. @abs_top_builddir@/src/lib/testutils/dhcp_test_lib.sh

View File

@@ -1,11 +1,12 @@
#!/bin/sh
# Copyright (C) 2015-2018 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2015-2019 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Include common test library.
. @abs_top_builddir@/src/lib/testutils/dhcp_test_lib.sh

View File

@@ -1,9 +1,10 @@
# Copyright (C) 2016-2017 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2016-2019 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Path to the temporary configuration file.
CFG_FILE=@abs_top_builddir@/src/bin/agent/tests/test_config.json
# Path to the Control Agent log file.

View File

@@ -1,9 +1,10 @@
# Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2014-2019 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Path to the temporary configuration file.
CFG_FILE=@abs_top_builddir@/src/bin/d2/tests/test_config.json
# Path to the D2 log file.

View File

@@ -1,9 +1,10 @@
# Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2014-2019 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Path to the temporary configuration file.
CFG_FILE=@abs_top_builddir@/src/bin/dhcp4/tests/test_config.json
# Path to the Kea log file.

View File

@@ -1,9 +1,12 @@
# Copyright (C) 2014-2017 Internet Systems Consortium, Inc. ("ISC")
#!/bin/sh
# Copyright (C) 2014-2019 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Path to the temporary configuration file.
CFG_FILE=@abs_top_builddir@/src/bin/dhcp6/tests/test_config.json
# Path to the Kea log file.

View File

@@ -6,6 +6,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Include common test library.
. @abs_top_builddir@/src/lib/testutils/dhcp_test_lib.sh

View File

@@ -1,9 +1,12 @@
# Copyright (C) 2018 Internet Systems Consortium, Inc. ("ISC")
#!/bin/sh
# Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Path to the temporary configuration file.
CFG_FILE=@abs_top_builddir@/src/bin/netconf/tests/shtests/test_config.json
# Path to the Kea log file.

View File

@@ -4,6 +4,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
prefix=@prefix@
# Path to the temporary configuration file.
CFG_FILE=@abs_top_builddir@/src/bin/shell/tests/test_config.json
# Path to the Control Agent log file.

View File

@@ -803,3 +803,9 @@ server_pid_file_test() {
# All ok. Shut down the server and exit.
test_finish 0
}
# Verify that prefix was set by the includer.
if [ -z ${prefix+x} ]; then
printf "internal error: \${prefix} must be set\n"
clean_exit 1
fi