From: Jeremy Stanley Date: Mon, 7 Mar 2016 12:26:43 +0000 (+0000) Subject: Test that the show log command works X-Git-Tag: 0.0.1~194 X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=commitdiff_plain;h=c55f6d9a9658ccaa0b668612161fe651037ca7af Test that the show log command works Exercise the show log command in functional testing, and confirm that it returns at least some log data. --- diff --git a/bin/test b/bin/test index d37aca5..62a6202 100755 --- a/bin/test +++ b/bin/test @@ -156,6 +156,12 @@ test_admin_help = ( (2, "This will save all active accounts", ""), ) +test_show_log = ( + (2, "> ", "show log"), + (2, "There are [0-9]+ log lines in memory and [0-9]+ at or above level " + "[0-9]+\. The matching lines\r\nfrom [0-9]+ to [0-9]+ are:", ""), +) + dialogue = ( (test_account0_setup, "first account setup"), (test_account1_setup, "second account setup"), @@ -171,6 +177,7 @@ dialogue = ( (test_admin_setup, "admin account setup"), (test_admin_restriction, "restricted admin commands"), (test_admin_help, "admin help"), + (test_show_log, "show log"), ) captures = ["", "", ""]