Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

TestLib.pm

Blame
    • Heikki Linnakangas's avatar
      1ea06203
      Improve logging of TAP tests. · 1ea06203
      Heikki Linnakangas authored
      Create a log file for each test run. Stdout and stderr of the test script,
      as well as any subprocesses run as part of the test, are redirected to
      the log file. This makes it a lot easier to debug test failures. Also print
      the test output (ok 12 - ... messages) to the log file, and the command
      line of any external programs executed with the system_or_bail and run_log
      functions. This makes it a lot easier to debug failing tests.
      
      Modify some of the pg_ctl and other command invocations to not use 'silent'
      or 'quiet' options, and don't redirect output to /dev/null, so that you get
      all the information in the log instead.
      
      In the passing, construct some command lines in a way that works if $tempdir
      contains quote-characters. I haven't systematically gone through all of
      them or tested that, so I don't know if this is enough to make that work.
      
      pg_rewind tests had a custom mechanism for creating a similar log file. Use
      the new generic facility instead.
      
      Michael Paquier and me.
      1ea06203
      History
      Improve logging of TAP tests.
      Heikki Linnakangas authored
      Create a log file for each test run. Stdout and stderr of the test script,
      as well as any subprocesses run as part of the test, are redirected to
      the log file. This makes it a lot easier to debug test failures. Also print
      the test output (ok 12 - ... messages) to the log file, and the command
      line of any external programs executed with the system_or_bail and run_log
      functions. This makes it a lot easier to debug failing tests.
      
      Modify some of the pg_ctl and other command invocations to not use 'silent'
      or 'quiet' options, and don't redirect output to /dev/null, so that you get
      all the information in the log instead.
      
      In the passing, construct some command lines in a way that works if $tempdir
      contains quote-characters. I haven't systematically gone through all of
      them or tested that, so I don't know if this is enough to make that work.
      
      pg_rewind tests had a custom mechanism for creating a similar log file. Use
      the new generic facility instead.
      
      Michael Paquier and me.