* Package: dev-libs/log4sh-1.4.2 * Repository: gentoo * Maintainer: pinkbyte@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox test userpriv usersandbox >>> Unpacking source... >>> Unpacking log4sh-1.4.2.tgz to /var/tmp/portage/dev-libs/log4sh-1.4.2/work >>> Source unpacked in /var/tmp/portage/dev-libs/log4sh-1.4.2/work >>> Preparing source in /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2 ... make -j4 build cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/shell/log4sh /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/build >>> Source compiled. >>> Test phase: dev-libs/log4sh-1.4.2 cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/shell/log4sh /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/build rm -fr /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/examples/hello_world /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/test* /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/run-test-suite /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/*.data /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/*.properties /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/lib/sh/shunit2 /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test cp -p /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/build/log4sh /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test ------------------------------------------------------------------------------- testing log4sh from an initial properties configuration ( cd /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test; /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/test-prop-config ) INFO - We are the Simpsons! INFO - Mmmmmm .... Chocolate. INFO - Homer likes chocolate INFO - Doh! INFO - We are the Simpsons! WARN - Bart: I am through with working! Working is for chumps! Homer: Son, I'm proud of you. I was twice your age before I figured that out. WARN - Mmm...forbidden donut. WARN - D'oh! A deer! A female deer! WARN - Truly, yours is a butt that won't quit. - Bart, writing as Woodrow to Ms. Krabappel. FATAL - Eep. FATAL - Mmm...forbidden donut. FATAL - D'oh! A deer! A female deer! FATAL - Mmmmmm .... Chocolate. 2020-05-14 15:24:27 INFO - test of the default pattern layout 2020-05-14 15:24:27 [test-prop-config] INFO - test of setting a pattern layout 2020-05-14 15:24:27 INFO - test of setting a pattern layout again 2020-05-14 15:24:27 INFO - setting a pattern for a simple layout logger. should not change the pattern of the simple logger as it is still set to a simple layout. 2020-05-14 15:24:27 INFO - setting a new pattern for a patterned layout file logger 2020-05-14 15:24:27 INFO - setting a pattern for a patterned layout file logger, using an invalid character conversion. 2020-05-14 15:24:27 INFO - setting the pattern for the patterned layout file logger back to a reasonable value. 2020-05-14 15:24:27 INFO - closing the myFilename appender log4sh:ERROR unrecognized appender type (junk) INFO [myFilename:main]: setting a pattern layout for STDERR that uses the thread name conversion character. the thread name isn't set yet, so it should be the default value ('main' as of this writing)... INFO [myFilename:myThread]: the thread name is now set to the name of this script, so it should show up in output now INFO [myFilename:myThread]: will now 'push' a new thread 'myNewThread' on the thread name stack... INFO [myFilename:myNewThread]: checking to see if the thread name changed. did it? INFO [myFilename:myNewThread]: just 'got' the thread name of 'myNewThread'. does it match what is shown over on the left? INFO [myFilename:myThirdNewThread]: just pushed two threads named 'mySecondNewThread' and 'myThirdNewThread'. verify that the later is visible on the left, and that they pop off correctly. INFO [myFilename:mySecondNewThread]: popped the thread named 'myThirdNewThread' INFO [myFilename:myNewThread]: popped the thread named 'mySecondNewThread' INFO [myFilename:myThread]: I just popped the topmost thread name. the first thread name should be shown again. is it? log4sh:WARN no more thread names available on thread name stack. INFO [myFilename:myThread]: I just tried popping again. the thread name should not have changed as we were already at the topmost thread name. there should have been a log4sh warning as well. INFO [myFilename:myThread]: this message *should not* generate an email. FATAL [myFilename:myThread]: this message *should* generate an email to 'postmaster@localhost'. /var/tmp/portage/dev-libs/log4sh-1.4.2/temp/log4sh.XVOOD2/mySMTP.inc: line 8: mail: command not found /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/test-common: line 122: appender_syslog_getFacilityByName: command not found INFO [myFilename:myThread]: just requested the syslog facility for the mySyslog appender. I expected 'local4' and got ''. do they match? INFO [myFilename:myThread]: closing the mySyslog appender INFO [myFilename:myThread]: this is a test message without quotes to verify that a logging function can be called without wrapping the message in quotes. INFO [myFilename:myThread]: the next test tests the %X and %% conversion characters 2020-05-14 15:24:28 INFO [30%] - got some work done 2020-05-14 15:24:29 INFO [75%] - got some work more done 2020-05-14 15:24:29 INFO [100%] - our work is done 2020-05-14|15:24:29|MDC test including the date/time 2020-05-14 15:24:29 INFO - this message should have a backslash character hier >\< 2020-05-14 15:24:29 INFO - this message should have an andpersand character hier >&< 2020-05-14 15:24:29 INFO - this system's uname: Linux localhost 5.4.0-1009-aws #9-Ubuntu SMP Sun Apr 12 19:46:01 UTC 2020 x86_64 AMD EPYC 7571 AuthenticAMD GNU/Linux 2020-05-14 15:24:29 INFO - output of 'ls -l': total 284 -rwxr-xr-x 1 portage portage 385 Aug 20 2006 hello_world -rw-r--r-- 1 portage portage 113381 Jun 2 2007 log4sh -rw-r--r-- 1 portage portage 4489 May 14 15:24 log4sh-pattern.log -rw-r--r-- 1 portage portage 3356 May 14 15:24 log4sh-simple.log -rw-r--r-- 1 portage portage 1097 Aug 10 2006 log4sh.properties -rw-r--r-- 1 portage portage 501 Dec 31 2006 priorityMatrix.data -rwxr-xr-x 1 portage portage 2231 Jan 5 2007 run-test-suite -rw-r--r-- 1 portage portage 22848 Jun 2 2007 shunit2 -rw-r--r-- 1 portage portage 6687 Aug 15 2006 test-common -rw-r--r-- 1 portage portage 1862 Jan 4 2007 test-functions.inc -rwxr-xr-x 1 portage portage 1373 Mar 25 2006 test-prop-config -rwxr-xr-x 1 portage portage 2562 Sep 16 2006 test-runtime-config -rwxr-xr-x 1 portage portage 1209 May 22 2007 testAsciiCharset -rw-r--r-- 1 portage portage 308 Aug 18 2006 testAsciiCharset.data -rw-r--r-- 1 portage portage 250 Sep 7 2006 testAsciiCharset.log4sh -rwxr-xr-x 1 portage portage 3542 May 22 2007 testCustomMDCPatterns -rwxr-xr-x 1 portage portage 4910 May 22 2007 testFileAppender -rw-r--r-- 1 portage portage 293 Jan 4 2007 testFileAppender-accessors.log4sh -rw-r--r-- 1 portage portage 191 Sep 7 2006 testFileAppender-mySTDERR.log4sh -rw-r--r-- 1 portage portage 246 Sep 7 2006 testFileAppender-mySimple.log4sh -rwxr-xr-x 1 portage portage 1819 Jun 1 2007 testLog4jCompatibility -rwxr-xr-x 1 portage portage 1878 May 22 2007 testMultipleAppenders -rwxr-xr-x 1 portage portage 7381 May 22 2007 testPatternLayout -rwxr-xr-x 1 portage portage 2348 May 22 2007 testPriority -rwxr-xr-x 1 portage portage 1963 Jun 1 2007 testPropertyConfig -rwxr-xr-x 1 portage portage 13815 May 22 2007 testRollingFileAppender -rw-r--r-- 1 portage portage 486 Dec 28 2006 testRollingFileAppender.log4sh -rwxr-xr-x 1 portage portage 3663 May 22 2007 testSMTPAppender -rw-r--r-- 1 portage portage 428 Jan 4 2007 testSMTPAppender.log4sh -rwxr-xr-x 1 portage portage 7979 Jun 2 2007 testSyslogAppender -rw-r--r-- 1 portage portage 211 Jan 4 2007 testSyslogAppender.data 2020-05-14 15:24:29 INFO - if this message is seen, then the sending of a message via a pipe works 2020-05-14 15:24:29 INFO - output of 'ls -l' [again] via pipe in next logging statement... 2020-05-14 15:24:29 INFO - total 288 -rwxr-xr-x 1 portage portage 385 Aug 20 2006 hello_world -rw-r--r-- 1 portage portage 113381 Jun 2 2007 log4sh -rw-r--r-- 1 portage portage 6875 May 14 15:24 log4sh-pattern.log -rw-r--r-- 1 portage portage 5682 May 14 15:24 log4sh-simple.log -rw-r--r-- 1 portage portage 1097 Aug 10 2006 log4sh.properties -rw-r--r-- 1 portage portage 501 Dec 31 2006 priorityMatrix.data -rwxr-xr-x 1 portage portage 2231 Jan 5 2007 run-test-suite -rw-r--r-- 1 portage portage 22848 Jun 2 2007 shunit2 -rw-r--r-- 1 portage portage 6687 Aug 15 2006 test-common -rw-r--r-- 1 portage portage 1862 Jan 4 2007 test-functions.inc -rwxr-xr-x 1 portage portage 1373 Mar 25 2006 test-prop-config -rwxr-xr-x 1 portage portage 2562 Sep 16 2006 test-runtime-config -rwxr-xr-x 1 portage portage 1209 May 22 2007 testAsciiCharset -rw-r--r-- 1 portage portage 308 Aug 18 2006 testAsciiCharset.data -rw-r--r-- 1 portage portage 250 Sep 7 2006 testAsciiCharset.log4sh -rwxr-xr-x 1 portage portage 3542 May 22 2007 testCustomMDCPatterns -rwxr-xr-x 1 portage portage 4910 May 22 2007 testFileAppender -rw-r--r-- 1 portage portage 293 Jan 4 2007 testFileAppender-accessors.log4sh -rw-r--r-- 1 portage portage 191 Sep 7 2006 testFileAppender-mySTDERR.log4sh -rw-r--r-- 1 portage portage 246 Sep 7 2006 testFileAppender-mySimple.log4sh -rwxr-xr-x 1 portage portage 1819 Jun 1 2007 testLog4jCompatibility -rwxr-xr-x 1 portage portage 1878 May 22 2007 testMultipleAppenders -rwxr-xr-x 1 portage portage 7381 May 22 2007 testPatternLayout -rwxr-xr-x 1 portage portage 2348 May 22 2007 testPriority -rwxr-xr-x 1 portage portage 1963 Jun 1 2007 testPropertyConfig -rwxr-xr-x 1 portage portage 13815 May 22 2007 testRollingFileAppender -rw-r--r-- 1 portage portage 486 Dec 28 2006 testRollingFileAppender.log4sh -rwxr-xr-x 1 portage portage 3663 May 22 2007 testSMTPAppender -rw-r--r-- 1 portage portage 428 Jan 4 2007 testSMTPAppender.log4sh -rwxr-xr-x 1 portage portage 7979 Jun 2 2007 testSyslogAppender -rw-r--r-- 1 portage portage 211 Jan 4 2007 testSyslogAppender.data 2020-05-14 15:24:29 INFO - after this message, you should see a non-log4sh message that a cleanup function was called. if you do, than you know that the trap handler of this test script was called, and that log4sh was able to properly call that handler upon exit. ### test script cleanup function called### ------------------------------------------------------------------------------- testing log4sh via runtime configuration ( cd /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test; /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/test-runtime-config ) INFO - We are the Simpsons! INFO - Mmmmmm .... Chocolate. INFO - Homer likes chocolate INFO - Doh! INFO - We are the Simpsons! WARN - Bart: I am through with working! Working is for chumps! Homer: Son, I'm proud of you. I was twice your age before I figured that out. WARN - Mmm...forbidden donut. WARN - D'oh! A deer! A female deer! WARN - Truly, yours is a butt that won't quit. - Bart, writing as Woodrow to Ms. Krabappel. FATAL - Eep. FATAL - Mmm...forbidden donut. FATAL - D'oh! A deer! A female deer! FATAL - Mmmmmm .... Chocolate. 2020-05-14 15:24:31 INFO - test of the default pattern layout 2020-05-14 15:24:31 [test-runtime-config] INFO - test of setting a pattern layout 2020-05-14 15:24:31 INFO - test of setting a pattern layout again 2020-05-14 15:24:31 INFO - setting a pattern for a simple layout logger. should not change the pattern of the simple logger as it is still set to a simple layout. 2020-05-14 15:24:31 INFO - setting a new pattern for a patterned layout file logger 2020-05-14 15:24:31 INFO - setting a pattern for a patterned layout file logger, using an invalid character conversion. 2020-05-14 15:24:31 INFO - setting the pattern for the patterned layout file logger back to a reasonable value. 2020-05-14 15:24:31 INFO - closing the myFilename appender log4sh:ERROR unrecognized appender type (junk) INFO [myFilename:main]: setting a pattern layout for STDERR that uses the thread name conversion character. the thread name isn't set yet, so it should be the default value ('main' as of this writing)... INFO [myFilename:myThread]: the thread name is now set to the name of this script, so it should show up in output now INFO [myFilename:myThread]: will now 'push' a new thread 'myNewThread' on the thread name stack... INFO [myFilename:myNewThread]: checking to see if the thread name changed. did it? INFO [myFilename:myNewThread]: just 'got' the thread name of 'myNewThread'. does it match what is shown over on the left? INFO [myFilename:myThirdNewThread]: just pushed two threads named 'mySecondNewThread' and 'myThirdNewThread'. verify that the later is visible on the left, and that they pop off correctly. INFO [myFilename:mySecondNewThread]: popped the thread named 'myThirdNewThread' INFO [myFilename:myNewThread]: popped the thread named 'mySecondNewThread' INFO [myFilename:myThread]: I just popped the topmost thread name. the first thread name should be shown again. is it? log4sh:WARN no more thread names available on thread name stack. INFO [myFilename:myThread]: I just tried popping again. the thread name should not have changed as we were already at the topmost thread name. there should have been a log4sh warning as well. INFO [myFilename:myThread]: this message *should not* generate an email. FATAL [myFilename:myThread]: this message *should* generate an email to 'postmaster@localhost'. /var/tmp/portage/dev-libs/log4sh-1.4.2/temp/log4sh.AoHd3v/mySMTP.inc: line 8: mail: command not found /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/test-common: line 122: appender_syslog_getFacilityByName: command not found INFO [myFilename:myThread]: just requested the syslog facility for the mySyslog appender. I expected 'local4' and got ''. do they match? INFO [myFilename:myThread]: closing the mySyslog appender INFO [myFilename:myThread]: this is a test message without quotes to verify that a logging function can be called without wrapping the message in quotes. INFO [myFilename:myThread]: the next test tests the %X and %% conversion characters 2020-05-14 15:24:32 INFO [30%] - got some work done 2020-05-14 15:24:32 INFO [75%] - got some work more done 2020-05-14 15:24:32 INFO [100%] - our work is done 2020-05-14|15:24:33|MDC test including the date/time 2020-05-14 15:24:33 INFO - this message should have a backslash character hier >\< 2020-05-14 15:24:33 INFO - this message should have an andpersand character hier >&< 2020-05-14 15:24:33 INFO - this system's uname: Linux localhost 5.4.0-1009-aws #9-Ubuntu SMP Sun Apr 12 19:46:01 UTC 2020 x86_64 AMD EPYC 7571 AuthenticAMD GNU/Linux 2020-05-14 15:24:33 INFO - output of 'ls -l': total 300 -rwxr-xr-x 1 portage portage 385 Aug 20 2006 hello_world -rw-r--r-- 1 portage portage 113381 Jun 2 2007 log4sh -rw-r--r-- 1 portage portage 13863 May 14 15:24 log4sh-pattern.log -rw-r--r-- 1 portage portage 11440 May 14 15:24 log4sh-simple.log -rw-r--r-- 1 portage portage 1097 Aug 10 2006 log4sh.properties -rw-r--r-- 1 portage portage 501 Dec 31 2006 priorityMatrix.data -rwxr-xr-x 1 portage portage 2231 Jan 5 2007 run-test-suite -rw-r--r-- 1 portage portage 22848 Jun 2 2007 shunit2 -rw-r--r-- 1 portage portage 6687 Aug 15 2006 test-common -rw-r--r-- 1 portage portage 1862 Jan 4 2007 test-functions.inc -rwxr-xr-x 1 portage portage 1373 Mar 25 2006 test-prop-config -rwxr-xr-x 1 portage portage 2562 Sep 16 2006 test-runtime-config -rwxr-xr-x 1 portage portage 1209 May 22 2007 testAsciiCharset -rw-r--r-- 1 portage portage 308 Aug 18 2006 testAsciiCharset.data -rw-r--r-- 1 portage portage 250 Sep 7 2006 testAsciiCharset.log4sh -rwxr-xr-x 1 portage portage 3542 May 22 2007 testCustomMDCPatterns -rwxr-xr-x 1 portage portage 4910 May 22 2007 testFileAppender -rw-r--r-- 1 portage portage 293 Jan 4 2007 testFileAppender-accessors.log4sh -rw-r--r-- 1 portage portage 191 Sep 7 2006 testFileAppender-mySTDERR.log4sh -rw-r--r-- 1 portage portage 246 Sep 7 2006 testFileAppender-mySimple.log4sh -rwxr-xr-x 1 portage portage 1819 Jun 1 2007 testLog4jCompatibility -rwxr-xr-x 1 portage portage 1878 May 22 2007 testMultipleAppenders -rwxr-xr-x 1 portage portage 7381 May 22 2007 testPatternLayout -rwxr-xr-x 1 portage portage 2348 May 22 2007 testPriority -rwxr-xr-x 1 portage portage 1963 Jun 1 2007 testPropertyConfig -rwxr-xr-x 1 portage portage 13815 May 22 2007 testRollingFileAppender -rw-r--r-- 1 portage portage 486 Dec 28 2006 testRollingFileAppender.log4sh -rwxr-xr-x 1 portage portage 3663 May 22 2007 testSMTPAppender -rw-r--r-- 1 portage portage 428 Jan 4 2007 testSMTPAppender.log4sh -rwxr-xr-x 1 portage portage 7979 Jun 2 2007 testSyslogAppender -rw-r--r-- 1 portage portage 211 Jan 4 2007 testSyslogAppender.data 2020-05-14 15:24:33 INFO - if this message is seen, then the sending of a message via a pipe works 2020-05-14 15:24:33 INFO - output of 'ls -l' [again] via pipe in next logging statement... 2020-05-14 15:24:33 INFO - total 304 -rwxr-xr-x 1 portage portage 385 Aug 20 2006 hello_world -rw-r--r-- 1 portage portage 113381 Jun 2 2007 log4sh -rw-r--r-- 1 portage portage 16249 May 14 15:24 log4sh-pattern.log -rw-r--r-- 1 portage portage 13766 May 14 15:24 log4sh-simple.log -rw-r--r-- 1 portage portage 1097 Aug 10 2006 log4sh.properties -rw-r--r-- 1 portage portage 501 Dec 31 2006 priorityMatrix.data -rwxr-xr-x 1 portage portage 2231 Jan 5 2007 run-test-suite -rw-r--r-- 1 portage portage 22848 Jun 2 2007 shunit2 -rw-r--r-- 1 portage portage 6687 Aug 15 2006 test-common -rw-r--r-- 1 portage portage 1862 Jan 4 2007 test-functions.inc -rwxr-xr-x 1 portage portage 1373 Mar 25 2006 test-prop-config -rwxr-xr-x 1 portage portage 2562 Sep 16 2006 test-runtime-config -rwxr-xr-x 1 portage portage 1209 May 22 2007 testAsciiCharset -rw-r--r-- 1 portage portage 308 Aug 18 2006 testAsciiCharset.data -rw-r--r-- 1 portage portage 250 Sep 7 2006 testAsciiCharset.log4sh -rwxr-xr-x 1 portage portage 3542 May 22 2007 testCustomMDCPatterns -rwxr-xr-x 1 portage portage 4910 May 22 2007 testFileAppender -rw-r--r-- 1 portage portage 293 Jan 4 2007 testFileAppender-accessors.log4sh -rw-r--r-- 1 portage portage 191 Sep 7 2006 testFileAppender-mySTDERR.log4sh -rw-r--r-- 1 portage portage 246 Sep 7 2006 testFileAppender-mySimple.log4sh -rwxr-xr-x 1 portage portage 1819 Jun 1 2007 testLog4jCompatibility -rwxr-xr-x 1 portage portage 1878 May 22 2007 testMultipleAppenders -rwxr-xr-x 1 portage portage 7381 May 22 2007 testPatternLayout -rwxr-xr-x 1 portage portage 2348 May 22 2007 testPriority -rwxr-xr-x 1 portage portage 1963 Jun 1 2007 testPropertyConfig -rwxr-xr-x 1 portage portage 13815 May 22 2007 testRollingFileAppender -rw-r--r-- 1 portage portage 486 Dec 28 2006 testRollingFileAppender.log4sh -rwxr-xr-x 1 portage portage 3663 May 22 2007 testSMTPAppender -rw-r--r-- 1 portage portage 428 Jan 4 2007 testSMTPAppender.log4sh -rwxr-xr-x 1 portage portage 7979 Jun 2 2007 testSyslogAppender -rw-r--r-- 1 portage portage 211 Jan 4 2007 testSyslogAppender.data 2020-05-14 15:24:33 INFO - after this message, you should see a non-log4sh message that a cleanup function was called. if you do, than you know that the trap handler of this test script was called, and that log4sh was able to properly call that handler upon exit. ### test script cleanup function called### ------------------------------------------------------------------------------- executing log4sh unit tests ( cd /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/test; /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/run-test-suite ) #------------------------------------------------------------------------------ # System data # # test run info shells="/bin/sh /bin/bash /bin/dash /bin/ksh /bin/pdksh" tests="testAsciiCharset testCustomMDCPatterns testFileAppender testLog4jCompatibility testMultipleAppenders testPatternLayout testPriority testPropertyConfig testRollingFileAppender testSMTPAppender testSyslogAppender" # system info $ date Thu May 14 15:24:33 CEST 2020 $ uname -mprsv Linux 5.4.0-1009-aws #9-Ubuntu SMP Sun Apr 12 19:46:01 UTC 2020 x86_64 AMD EPYC 7571 #------------------------------------------------------------------------------ # Running the test suite with /bin/sh # --- Executing the 'AsciiCharset' test suite --- # # Performing tests # testAsciiCharset # # Test report # tests passed: 6 100% tests failed: 0 0% tests skipped: 0 0% tests total: 6 100% --- Executing the 'CustomMDCPatterns' test suite --- # # Performing tests # testCustomDateMDC testCustomTimeMDC testCustomUserHostMDC # # Test report # tests passed: 6 100% tests failed: 0 0% tests skipped: 0 0% tests total: 6 100% --- Executing the 'FileAppender' test suite --- # # Performing tests # testSTDERR_runtime testSTDERR_config testSimple_runtime testSimple_config testAccessors_getFilename testAccessors_setgetFilename # # Test report # tests passed: 10 100% tests failed: 0 0% tests skipped: 0 0% tests total: 10 100% --- Executing the 'Log4jCompatibility' test suite --- # # Performing tests # testAppenders testLayouts # # Test report # tests passed: 9 100% tests failed: 0 0% tests skipped: 0 0% tests total: 9 100% --- Executing the 'MultipleAppenders' test suite --- # # Performing tests # testTwoSimilarFileAppenders # # Test report # tests passed: 2 100% tests failed: 0 0% tests skipped: 0 0% tests total: 2 100% --- Executing the 'PatternLayout' test suite --- # # Performing tests # testCategoryPattern testDatePattern testFileNamePattern testLineNumberPattern testLineSeparatorPattern testMessagePattern testPriorityPattern testRunningTimePattern testThreadNamePattern testNDCPattern testMDCPattern testPercentPattern # # Test report # tests passed: 24 100% tests failed: 0 0% tests skipped: 0 0% tests total: 24 100% --- Executing the 'Priority' test suite --- # # Performing tests # testPriorityMatrix testInvalidPriority log4sh:ERROR invalid logging level requested (INVALID) # # Test report # tests passed: 43 100% tests failed: 0 0% tests skipped: 0 0% tests total: 43 100% --- Executing the 'PropertyConfig' test suite --- # # Performing tests # testAppenders - expecting one error log4sh:ERROR appender type (InvalidAppender) unrecognized testLayouts - expecting one error log4sh:ERROR unknown layout: InvalidLayout testLayoutTypes - expecting one error log4sh:ERROR layout value/method (InvalidType) unrecognized # # Test report # tests passed: 3 100% tests failed: 0 0% tests skipped: 0 0% tests total: 3 100% --- Executing the 'RollingFileAppender' test suite --- # # Performing tests # testEmptyFile_runtime testOneByteUnderSize_runtime testExactlyRightSize_runtime testOneByteOverSize_runtime testOrderOfMagnitudeLarger_runtime testEmptyFile_config testOneByteUnderSize_config testExactlyRightSize_config testOneByteOverSize_config testOrderOfMagnitudeLarger_config testMaxBackupIndexOf2 testMaxBackupIndexOf1 testMaxBackupIndexOf0 testMaxFileSizeGetterSetter - expecting one warning log4sh:WARN missing file size unit; assuming bytes - expecting one error log4sh:ERROR unrecognized file size unit 'foo' # # Test report # tests passed: 44 100% tests failed: 0 0% tests skipped: 0 0% tests total: 44 100% --- Executing the 'SMTPAppender' test suite --- # # Performing tests # testSubjectGetterSetter testToGetterSetter testAppenderSetupFromConfig # # Test report # tests passed: 7 100% tests failed: 0 0% tests skipped: 0 0% tests total: 7 100% --- Executing the 'SyslogAppender' test suite --- # # Performing tests # testFacilityGetterSetter log4sh:ERROR [invalid] is an unknown syslog facility. Defaulting to [user]. testHostGetterSetter log4sh:WARN the nc (netcat) command alternative is required for remote syslog logging. see log4sh_setAlternative(). testPriorityMatrix testing appender priority 'TRACE' testing appender priority 'DEBUG' testing appender priority 'INFO' testing appender priority 'WARN' testing appender priority 'ERROR' testing appender priority 'FATAL' testing appender priority 'OFF' testRemoteLogging log4sh:ERROR log4sh_setAlternative(): nc: command not found log4sh:WARN the nc (netcat) command alternative is required for remote syslog logging. see log4sh_setAlternative(). # # Test report # tests passed: 24 36% tests failed: 0 0% tests skipped: 43 64% tests total: 67 100% #------------------------------------------------------------------------------ # Running the test suite with /bin/bash # GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu) Copyright (C) 2019 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. --- Executing the 'AsciiCharset' test suite --- # # Performing tests # testAsciiCharset # # Test report # tests passed: 6 100% tests failed: 0 0% tests skipped: 0 0% tests total: 6 100% --- Executing the 'CustomMDCPatterns' test suite --- # # Performing tests # testCustomDateMDC testCustomTimeMDC testCustomUserHostMDC # # Test report # tests passed: 6 100% tests failed: 0 0% tests skipped: 0 0% tests total: 6 100% --- Executing the 'FileAppender' test suite --- # # Performing tests # testSTDERR_runtime testSTDERR_config testSimple_runtime testSimple_config testAccessors_getFilename testAccessors_setgetFilename # # Test report # tests passed: 10 100% tests failed: 0 0% tests skipped: 0 0% tests total: 10 100% --- Executing the 'Log4jCompatibility' test suite --- # # Performing tests # testAppenders testLayouts # # Test report # tests passed: 9 100% tests failed: 0 0% tests skipped: 0 0% tests total: 9 100% --- Executing the 'MultipleAppenders' test suite --- # # Performing tests # testTwoSimilarFileAppenders # # Test report # tests passed: 2 100% tests failed: 0 0% tests skipped: 0 0% tests total: 2 100% --- Executing the 'PatternLayout' test suite --- # # Performing tests # testCategoryPattern testDatePattern testFileNamePattern testLineNumberPattern testLineSeparatorPattern testMessagePattern testPriorityPattern testRunningTimePattern testThreadNamePattern testNDCPattern testMDCPattern testPercentPattern # # Test report # tests passed: 24 100% tests failed: 0 0% tests skipped: 0 0% tests total: 24 100% --- Executing the 'Priority' test suite --- # # Performing tests # testPriorityMatrix testInvalidPriority log4sh:ERROR invalid logging level requested (INVALID) # # Test report # tests passed: 43 100% tests failed: 0 0% tests skipped: 0 0% tests total: 43 100% --- Executing the 'PropertyConfig' test suite --- # # Performing tests # testAppenders - expecting one error log4sh:ERROR appender type (InvalidAppender) unrecognized testLayouts - expecting one error log4sh:ERROR unknown layout: InvalidLayout testLayoutTypes - expecting one error log4sh:ERROR layout value/method (InvalidType) unrecognized # # Test report # tests passed: 3 100% tests failed: 0 0% tests skipped: 0 0% tests total: 3 100% --- Executing the 'RollingFileAppender' test suite --- # # Performing tests # testEmptyFile_runtime testOneByteUnderSize_runtime testExactlyRightSize_runtime testOneByteOverSize_runtime testOrderOfMagnitudeLarger_runtime testEmptyFile_config testOneByteUnderSize_config testExactlyRightSize_config testOneByteOverSize_config testOrderOfMagnitudeLarger_config testMaxBackupIndexOf2 testMaxBackupIndexOf1 testMaxBackupIndexOf0 testMaxFileSizeGetterSetter - expecting one warning log4sh:WARN missing file size unit; assuming bytes - expecting one error log4sh:ERROR unrecognized file size unit 'foo' # # Test report # tests passed: 44 100% tests failed: 0 0% tests skipped: 0 0% tests total: 44 100% --- Executing the 'SMTPAppender' test suite --- # # Performing tests # testSubjectGetterSetter testToGetterSetter testAppenderSetupFromConfig # # Test report # tests passed: 7 100% tests failed: 0 0% tests skipped: 0 0% tests total: 7 100% --- Executing the 'SyslogAppender' test suite --- # # Performing tests # testFacilityGetterSetter log4sh:ERROR [invalid] is an unknown syslog facility. Defaulting to [user]. testHostGetterSetter log4sh:WARN the nc (netcat) command alternative is required for remote syslog logging. see log4sh_setAlternative(). testPriorityMatrix testing appender priority 'TRACE' testing appender priority 'DEBUG' testing appender priority 'INFO' testing appender priority 'WARN' testing appender priority 'ERROR' testing appender priority 'FATAL' testing appender priority 'OFF' testRemoteLogging log4sh:ERROR log4sh_setAlternative(): nc: command not found log4sh:WARN the nc (netcat) command alternative is required for remote syslog logging. see log4sh_setAlternative(). # # Test report # tests passed: 24 36% tests failed: 0 0% tests skipped: 43 64% tests total: 67 100% run-test-suite:WARN unable to run tests with the /bin/dash shell run-test-suite:WARN unable to run tests with the /bin/ksh shell run-test-suite:WARN unable to run tests with the /bin/pdksh shell >>> Completed testing dev-libs/log4sh-1.4.2 >>> Install dev-libs/log4sh-1.4.2 into /var/tmp/portage/dev-libs/log4sh-1.4.2/image/ >>> Completed installing dev-libs/log4sh-1.4.2 into /var/tmp/portage/dev-libs/log4sh-1.4.2/image/ * Final size of build directory: 1096 KiB (1.0 MiB) * Final size of installed tree: 328 KiB * QA Notice: command not found: * * /var/tmp/portage/dev-libs/log4sh-1.4.2/temp/log4sh.XVOOD2/mySMTP.inc: line 8: mail: command not found * /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/test-common: line 122: appender_syslog_getFacilityByName: command not found * /var/tmp/portage/dev-libs/log4sh-1.4.2/temp/log4sh.AoHd3v/mySMTP.inc: line 8: mail: command not found * /var/tmp/portage/dev-libs/log4sh-1.4.2/work/log4sh-1.4.2/src/test/test-common: line 122: appender_syslog_getFacilityByName: command not found >>> Done. * To use log4sh, have your script source /usr/lib/log4sh/log4sh * If you want to use remote logging, you should install package, * that provides netcat binary (for example - net-analyzer/netcat) emerge --info: Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r3, 5.4.0-1009-aws x86_64) ================================================================= System uname: Linux-5.4.0-1009-aws-x86_64-AMD_EPYC_7571-with-gentoo-2.7 KiB Mem: 16011344 total, 4716424 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Thu, 14 May 2020 14:36:09 +0000 sh bash 5.0_p17 ld GNU ld (Gentoo 2.34 p4) 2.34.0 app-shells/bash: 5.0_p17::gentoo dev-lang/perl: 5.30.2::gentoo dev-lang/python: 2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.3::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.18::gentoo sys-devel/autoconf: 2.69-r5::gentoo sys-devel/automake: 1.16.2::gentoo sys-devel/binutils: 2.34-r1::gentoo sys-devel/gcc: 10.1.0::gentoo sys-devel/gcc-config: 2.2.1::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers) sys-libs/glibc: 2.31-r3::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CC="x86_64-pc-linux-gnu-gcc" CFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXX="x86_64-pc-linux-gnu-g++" CXXFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --binpkg-respect-use=y -1 -b -k" ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -frecord-gcc-switches" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="C.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0" MAKEOPTS="-j4" PKGDIR="/root/.packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="acl amd64 berkdb bzip2 cli crypt dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl tcpd unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS