]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3417] shell scripts updated (B10_ => KEA_)
authorTomek Mrugalski <tomasz@isc.org>
Wed, 6 Aug 2014 10:46:00 +0000 (12:46 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Wed, 6 Aug 2014 10:46:00 +0000 (12:46 +0200)
src/lib/log/tests/init_logger_test.sh.in
src/lib/log/tests/logger_lock_test.sh.in
src/lib/testutils/dhcp_test_lib.sh.in
src/lib/util/unittests/run_all.cc
tests/lettuce/setup_intree_bind10.sh.in

index eef521dda30d4b04c4d5dcbc22fa440dec86a918..673f82312a6790cfbf6fd056b84e6c71d5d2da29 100755 (executable)
@@ -33,7 +33,7 @@ passfail() {
     fi
 }
 
-echo "1. Checking that B10_LOGGER_SEVERITY/B10_LOGGER_DBGLEVEL work"
+echo "1. Checking that KEA_LOGGER_SEVERITY/KEA_LOGGER_DBGLEVEL work"
 
 echo -n  "   - severity=DEBUG, dbglevel=99: "
 cat > $tempfile << .
@@ -45,7 +45,7 @@ WARN  [kea.log] LOG_BAD_STREAM bad log console output stream: warn
 ERROR [kea.log] LOG_DUPLICATE_MESSAGE_ID duplicate message ID (error) in compiled code
 FATAL [kea.log] LOG_NO_MESSAGE_ID line fatal: message definition line found without a message ID
 .
-B10_LOGGER_DESTINATION=stdout B10_LOGGER_SEVERITY=DEBUG B10_LOGGER_DBGLEVEL=99 ./init_logger_test | \
+KEA_LOGGER_DESTINATION=stdout KEA_LOGGER_SEVERITY=DEBUG KEA_LOGGER_DBGLEVEL=99 ./init_logger_test | \
     sed -e 's/\[\([a-z0-9\.]\{1,\}\)\/\([0-9]\{1,\}\)\]/[\1]/' | \
     cut -d' ' -f3- | diff $tempfile -
 passfail $?
@@ -59,7 +59,7 @@ WARN  [kea.log] LOG_BAD_STREAM bad log console output stream: warn
 ERROR [kea.log] LOG_DUPLICATE_MESSAGE_ID duplicate message ID (error) in compiled code
 FATAL [kea.log] LOG_NO_MESSAGE_ID line fatal: message definition line found without a message ID
 .
-B10_LOGGER_DESTINATION=stdout B10_LOGGER_SEVERITY=DEBUG B10_LOGGER_DBGLEVEL=50 ./init_logger_test | \
+KEA_LOGGER_DESTINATION=stdout KEA_LOGGER_SEVERITY=DEBUG KEA_LOGGER_DBGLEVEL=50 ./init_logger_test | \
     sed -e 's/\[\([a-z0-9\.]\{1,\}\)\/\([0-9]\{1,\}\)\]/[\1]/' | \
     cut -d' ' -f3- | diff $tempfile -
 passfail $?
@@ -70,33 +70,33 @@ WARN  [kea.log] LOG_BAD_STREAM bad log console output stream: warn
 ERROR [kea.log] LOG_DUPLICATE_MESSAGE_ID duplicate message ID (error) in compiled code
 FATAL [kea.log] LOG_NO_MESSAGE_ID line fatal: message definition line found without a message ID
 .
-B10_LOGGER_DESTINATION=stdout B10_LOGGER_SEVERITY=WARN ./init_logger_test | \
+KEA_LOGGER_DESTINATION=stdout KEA_LOGGER_SEVERITY=WARN ./init_logger_test | \
     sed -e 's/\[\([a-z0-9\.]\{1,\}\)\/\([0-9]\{1,\}\)\]/[\1]/' | \
     cut -d' ' -f3- | diff $tempfile -
 passfail $?
 
-echo "2. Checking that B10_LOGGER_DESTINATION works"
+echo "2. Checking that KEA_LOGGER_DESTINATION works"
 
 echo -n  "   - stdout: "
 cat > $tempfile << .
 FATAL [kea.log] LOG_NO_MESSAGE_ID line fatal: message definition line found without a message ID
 .
 rm -f $destfile_tmp $destfile
-B10_LOGGER_SEVERITY=FATAL B10_LOGGER_DESTINATION=stdout ./init_logger_test 1> $destfile_tmp
+KEA_LOGGER_SEVERITY=FATAL KEA_LOGGER_DESTINATION=stdout ./init_logger_test 1> $destfile_tmp
 sed -e 's/\[\([a-z0-9\.]\{1,\}\)\/\([0-9]\{1,\}\)\]/[\1]/' < $destfile_tmp > $destfile
 cut -d' ' -f3- $destfile | diff $tempfile -
 passfail $?
 
 echo -n  "   - stderr: "
 rm -f $destfile_tmp $destfile
-B10_LOGGER_SEVERITY=FATAL B10_LOGGER_DESTINATION=stderr ./init_logger_test 2> $destfile_tmp
+KEA_LOGGER_SEVERITY=FATAL KEA_LOGGER_DESTINATION=stderr ./init_logger_test 2> $destfile_tmp
 sed -e 's/\[\([a-z0-9\.]\{1,\}\)\/\([0-9]\{1,\}\)\]/[\1]/' < $destfile_tmp > $destfile
 cut -d' ' -f3- $destfile | diff $tempfile -
 passfail $?
 
 echo -n  "   - file: "
 rm -f $destfile_tmp $destfile
-B10_LOGGER_SEVERITY=FATAL B10_LOGGER_DESTINATION=$destfile_tmp ./init_logger_test
+KEA_LOGGER_SEVERITY=FATAL KEA_LOGGER_DESTINATION=$destfile_tmp ./init_logger_test
 sed -e 's/\[\([a-z0-9\.]\{1,\}\)\/\([0-9]\{1,\}\)\]/[\1]/' < $destfile_tmp > $destfile
 cut -d' ' -f3- $destfile | diff $tempfile -
 passfail $?
index 19a6a4fd526702319dd2c6529a51e3ca859f15b2..50649b91ac77807980c4a239cb33c4dd0f484f64 100755 (executable)
@@ -37,7 +37,7 @@ INFO  [kea.log] LOG_LOCK_TEST_MESSAGE this is a test message.
 LOGGER_LOCK_TEST: UNLOCK
 .
 rm -f $destfile
-B10_LOGGER_SEVERITY=INFO B10_LOGGER_DESTINATION=stdout ./logger_lock_test | \
+KEA_LOGGER_SEVERITY=INFO KEA_LOGGER_DESTINATION=stdout ./logger_lock_test | \
     sed -e 's/\[\([a-z0-9\.]\{1,\}\)\/\([0-9]\{1,\}\)\]/[\1]/' > $destfile
 cut -d' ' -f3- $destfile | diff $tempfile -
 passfail $?
index 5d0631e09a298b80219a4b98efc5a8fcc9d8150d..f8f3bb98441cc2f2765f81e05f1e239381bc2ea5 100644 (file)
@@ -149,7 +149,7 @@ set_logger() {
         clean_exit 1
     fi
     printf "Kea log will be stored in %s.\n" ${LOG_FILE}
-    export B10_LOGGER_DESTINATION=${LOG_FILE}
+    export KEA_LOGGER_DESTINATION=${LOG_FILE}
 }
 
 # Returns the number of running process pids and the list of pids.
index 80555ba7981951cd470248f14c1ba849e18c8774..9ac9d564613feee16fec02cb63b76793b695a4ed 100644 (file)
@@ -45,7 +45,7 @@ run_all() {
     if (keatest_catch_exception != NULL) {
         if (strcmp(keatest_catch_exception, "1") == 0) {
             catch_exception = true;
-        } else if (strcmp(b10test_catch_exception, "0") == 0) {
+        } else if (strcmp(keatest_catch_exception, "0") == 0) {
             catch_exception = false;
         } else {
             std::cerr << "***ERROR: KEATEST_CATCH_EXCEPTION is '"
index d23c13ae5569e47bfc605c6f0938d961fe3aedaf..970021b107e3632062ae315693435919e8cfd4bc 100755 (executable)
@@ -39,13 +39,13 @@ if test $WANT_EXPERIMENTAL_RESOLVER = yes; then
     cp -f @srcdir@/features/resolver_basic.feature.disabled @srcdir@/features/resolver_basic.feature
 fi
 
-B10_FROM_SOURCE=@abs_top_srcdir@
-export B10_FROM_SOURCE
+KEA_FROM_SOURCE=@abs_top_srcdir@
+export KEA_FROM_SOURCE
 # TODO: We need to do this feature based (ie. no general from_source)
 # But right now we need a second one because some spec files are
 # generated and hence end up under builddir
-B10_FROM_BUILD=@abs_top_builddir@
-export B10_FROM_BUILD
+KEA_FROM_BUILD=@abs_top_builddir@
+export KEA_FROM_BUILD
 
 BIND10_MSGQ_SOCKET_FILE=@abs_top_builddir@/msgq_socket
 export BIND10_MSGQ_SOCKET_FILE