-// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2025 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
// emit unparsed header if wanted
if ((config_counter == 0) && generate_action) {
- std::cerr << "///put this after const char* UNPARSED_CONFIGS[] = {\n";
+ std::cerr << "/// put this after const char* UNPARSED_CONFIGS[] = {\n";
}
// get the extracted configuration
#!/bin/sh
-# shellcheck disable=SC2162
-# shellcheck disable=SC3045
-
set -eu
pwd=$(pwd -P)
if test "$pwd" != "$npwd"; then
echo "This script should be run from the build directory (@builddir@)"
-
- read -p "Press ENTER to continue anyway"
+ printf "Press ENTER to continue anyway"
+ read -r _
fi
# Initialize.
cp -f "@skeleton@" get_config_unittest_rebuild.cc
rm -f kea-dhcp4-tests-extract
echo "Please recompile kea-dhcp4-tests-extract"
-read -p "Press ENTER when ready"
+printf "Press ENTER when ready"
+read -r _
# Extract step.
./kea-dhcp4-tests-extract --gtest_filter="Dhcp4Parser*" > /dev/null 2> x
rm -f kea-dhcp4-tests-generate
echo "Please copy content of x file into EXTRACTED_CONFIGS in get_config_unittest_rebuild.cc and recompile kea-dhcp4-tests-generate"
-read -p "Press ENTER when ready"
+printf "Press ENTER when ready"
+read -r _
# Generate step
./kea-dhcp4-tests-generate --gtest_filter="Dhcp4GetConfig*" > /dev/null 2> u
echo "Please copy content of u file into UNPARSED_CONFIGS in get_config_unittest_rebuild.cc"
-read -p "Press ENTER when ready"
+printf "Press ENTER when ready"
+read -r _
mv get_config_unittest_rebuild.cc get_config_unittest.cc
cp -f get_config_unittest.cc "@source@"
echo "Please recompile the kea_dhcp4_tests target"
/// @brief unparsed configurations
const char* UNPARSED_CONFIGS[] = {
-///put this after const char* UNPARSED_CONFIGS[] = {
+/// put this after const char* UNPARSED_CONFIGS[] = {
// CONFIGURATION 0
"{\n"
" \"allocator\": \"iterative\",\n"
-// Copyright (C) 2017-2024 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2017-2025 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
// emit unparsed header if wanted
if ((config_counter == 0) && generate_action) {
- std::cerr << "///put this after const char* UNPARSED_CONFIGS[] = {\n";
+ std::cerr << "/// put this after const char* UNPARSED_CONFIGS[] = {\n";
}
// get the extracted configuration
#!/bin/sh
-# shellcheck disable=SC2162
-# shellcheck disable=SC3045
-
set -eu
pwd=$(pwd -P)
if test "$pwd" != "$npwd"; then
echo "This script should be run from the build directory (@builddir@)"
- read -p "Press ENTER to continue anyway"
+ printf "Press ENTER to continue anyway"
+ read -r _
fi
# Initialize.
cp -f "@skeleton@" get_config_unittest_rebuild.cc
rm -f kea-dhcp6-tests-extract
echo "Please recompile kea-dhcp6-tests-extract"
-read -p "Press ENTER when ready"
+printf "Press ENTER when ready"
+read -r _
# Extract step.
./kea-dhcp6-tests-extract --gtest_filter="Dhcp6Parser*" > /dev/null 2> x
rm -f kea-dhcp6-tests-generate
echo "Please copy content of x file into EXTRACTED_CONFIGS in get_config_unittest_rebuild.cc and recompile kea-dhcp6-tests-generate"
-read -p "Press ENTER when ready"
+printf "Press ENTER when ready"
+read -r _
# Generate step
./kea-dhcp6-tests-generate --gtest_filter="Dhcp6GetConfig*" > /dev/null 2> u
echo "Please copy content of u file into UNPARSED_CONFIGS in get_config_unittest_rebuild.cc"
-read -p "Press ENTER when ready"
+printf "Press ENTER when ready"
+read -r _
mv get_config_unittest_rebuild.cc get_config_unittest.cc
cp -f get_config_unittest.cc "@source@"
echo "Please recompile the kea_dhcp6_tests target"
lexical_cast<string>(opt.maxver));
properties.setProperty("ImmediateFlush", opt.flush ? "true" : "false");
properties.setProperty("UseLockFile", "true");
+ properties.setProperty("ReopenDelay", "0");
fileapp = log4cplus::SharedAppenderPtr(
new log4cplus::RollingFileAppender(properties));
}
OutputOption option;
option.destination = OutputOption::DEST_FILE;
option.filename = string(LogContentTest::LOG_FILE);
+ option.maxsize = 2000000000UL;
spec.addOutputOption(option);
LoggerManager manager;
manager.process(spec);