# # # add_file "tests/t_reallyquiet.at" # content [68ea6ce0b2a9ff8674542a1fed110ae6e928e29a] # # patch "ChangeLog" # from [4f8e5e3876863fc77430a8f6e21636f2e14faab2] # to [266efcda42a432970195893dd10c4612c4db0af1] # # patch "tests/t_quiet.at" # from [9e4bcadad7f15aa4f5c1cdacf5b3f48b5b397406] # to [f7569b362b41fa09b347e80f6b7d10cf9f46879e] # # patch "testsuite.at" # from [de70ffe966befc2f5c8a0c5be72c499ff7536494] # to [dee883a62b027f45d1b7b0e455394a56688780dd] # ============================================================ --- tests/t_reallyquiet.at 68ea6ce0b2a9ff8674542a1fed110ae6e928e29a +++ tests/t_reallyquiet.at 68ea6ce0b2a9ff8674542a1fed110ae6e928e29a @@ -0,0 +1,23 @@ +# -*- Autoconf -*- + +AT_SETUP([reallyquiet turns off tickers and warnings]) + +MTN_SETUP +NETSYNC_SETUP + +ADD_FILE(input.txt, [version 0 of the file +]) +COMMIT(testbranch) + +# check that tickers are quiet +NETSYNC_SERVE_START(testbranch) + +AT_CHECK(MTN --db=test2.db --keydir=keys2 --rcfile=netsync.lua pull --reallyquiet NETSYNC_ADDRESS testbranch, [], [], []) + +NETSYNC_SERVE_STOP + +# check that warnings are as well... +# (list keys with a pattern that doesn't match anything generates a warning) +AT_CHECK(MTN --reallyquiet list keys foo, [], [], []) + +AT_CLEANUP ============================================================ --- ChangeLog 4f8e5e3876863fc77430a8f6e21636f2e14faab2 +++ ChangeLog 266efcda42a432970195893dd10c4612c4db0af1 @@ -1,5 +1,12 @@ 2006-05-19 Richard Levitte + * tests/t_quiet.at: Test that --quiet doesn't suppress warnings. + * tests/t_reallyquiet.at: New file. Test that --reallyquiet + suppresses progress meters and warnings. + * testsuite.at: Add t_reallyquiet.at. + +2006-05-19 Richard Levitte + * automate.cc (automate_certs): Change a warning disguised as a progress meter into a real warning. ============================================================ --- tests/t_quiet.at 9e4bcadad7f15aa4f5c1cdacf5b3f48b5b397406 +++ tests/t_quiet.at f7569b362b41fa09b347e80f6b7d10cf9f46879e @@ -1,6 +1,6 @@ # -*- Autoconf -*- -AT_SETUP([quiet turns off tickers]) +AT_SETUP([quiet turns off tickers but not warnings]) MTN_SETUP NETSYNC_SETUP @@ -9,10 +9,17 @@ ]) COMMIT(testbranch) +# check that tickers are quiet NETSYNC_SERVE_START(testbranch) -AT_CHECK(MTN --db=test2.db --keydir=keys2 --rcfile=netsync.lua pull --quiet NETSYNC_ADDRESS testbranch, [], [], []) +AT_CHECK(MTN --db=test2.db --keydir=keys2 --rcfile=netsync.lua pull --quiet NETSYNC_ADDRESS testbranch, [], [], [stderr]) +AT_CHECK(grep -v ': warning: ' stderr, [1], [ignore]) NETSYNC_SERVE_STOP +# check that warnings aren't... +# (list keys with a pattern that doesn't match anything generates a warning) +AT_CHECK(MTN --quiet list keys foo, [], [ignore], [stderr]) +AT_CHECK(grep ': warning: ' stderr, [0], [ignore]) + AT_CLEANUP ============================================================ --- testsuite.at de70ffe966befc2f5c8a0c5be72c499ff7536494 +++ testsuite.at dee883a62b027f45d1b7b0e455394a56688780dd @@ -884,6 +884,7 @@ m4_include(tests/t_hook_helpers.at) m4_include(tests/t_no_log_password.at) m4_include(tests/t_quiet.at) +m4_include(tests/t_reallyquiet.at) m4_include(tests/t_escaped_selectors.at) m4_include(tests/t_automate_get_base_revision_id.at) m4_include(tests/t_automate_get_current_revision_id.at)