|
@@ -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 $?
|