quiet second.cc and third.cc when running as regression tests

This commit is contained in:
Craig Dowell
2009-02-18 22:32:09 -08:00
parent be94ad4fed
commit 9c653b5afa
4 changed files with 25 additions and 6 deletions

View File

@@ -36,16 +36,23 @@ NS_LOG_COMPONENT_DEFINE ("SecondScriptExample");
int
main (int argc, char *argv[])
{
LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
bool verbose = true;
RandomVariable::UseGlobalSeed (1, 1, 2, 3, 5, 8);
uint32_t nCsma = 3;
CommandLine cmd;
cmd.AddValue ("nCsma", "Number of \"extra\" CSMA nodes/devices", nCsma);
cmd.AddValue ("verbose", "Tell echo applications to log if true", verbose);
cmd.Parse (argc,argv);
if (verbose)
{
LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
}
NodeContainer p2pNodes;
p2pNodes.Create (2);

View File

@@ -40,8 +40,8 @@ NS_LOG_COMPONENT_DEFINE ("ThirdScriptExample");
int
main (int argc, char *argv[])
{
LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
bool verbose = true;
RandomVariable::UseGlobalSeed (1, 1, 2, 3, 5, 8);
@@ -50,8 +50,16 @@ main (int argc, char *argv[])
CommandLine cmd;
cmd.AddValue ("nCsma", "Number of \"extra\" CSMA nodes/devices", nCsma);
cmd.AddValue ("nWifi", "Number of wifi STA devices", nWifi);
cmd.AddValue ("verbose", "Tell echo applications to log if true", verbose);
cmd.Parse (argc,argv);
if (verbose)
{
LogComponentEnable("UdpEchoClientApplication", LOG_LEVEL_INFO);
LogComponentEnable("UdpEchoServerApplication", LOG_LEVEL_INFO);
}
NodeContainer p2pNodes;
p2pNodes.Create (2);

View File

@@ -1,4 +1,6 @@
#! /usr/bin/env python
"""Generic trace-comparison-type regression test."""
"""Compare that Second generates correct traces."""
arguments = ["--verbose=0"]

View File

@@ -1,4 +1,6 @@
#! /usr/bin/env python
"""Generic trace-comparison-type regression test."""
"""Compare that Third generates correct traces."""
arguments = ["--verbose=0"]