Changeset 1515 for trunk


Ignore:
Timestamp:
Sep 19, 2008, 10:53:22 PM (13 years ago)
Author:
Peter
Message:

adding support for YAT_TEST_VERBOSE

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/README

    r1487 r1515  
    55Copyright (C) 2006 Jari Häkkinen
    66Copyright (C) 2007 Jari Häkkinen, Peter Johansson
     7Copyright (C) 2008 Peter Johansson
    78
    89This file is part of yat library, http://dev.thep.lu.se/yat
     
    3233verbose mode for printing extra information.
    3334 
     35Verbose mode can also be achived by setting environment variable
     36YAT_TEST_VERBOSE=1, which also works when running make:
     37
     38       YAT_TEST_VERBOSE=1 make check
     39
  • trunk/test/Suite.cc

    r1509 r1515  
    3838  {
    3939    dev_null_ = new std::ofstream("/dev/null");
    40     if (argc>1 && argv[1]==std::string("-v"))
     40    char* buffer=std::getenv("YAT_TEST_VERBOSE");
     41
     42    if ( (argc>1 && argv[1]==std::string("-v")) || buffer == std::string("1"))
    4143      verbose_ = true;
    4244    else {
Note: See TracChangeset for help on using the changeset viewer.