- Timestamp:
- Mar 27, 2010, 9:56:29 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r1043 r1044 68 68 69 69 AC_CONFIG_HEADERS([config.h]) 70 AM_INIT_AUTOMAKE([1.11 color-tests std-options ])70 AM_INIT_AUTOMAKE([1.11 color-tests std-options parallel-tests]) 71 71 72 72 dnl create bin/svndigest-copy-cache.in at autoconf time and let -
trunk/test/Suite.cc
r978 r1044 3 3 /* 4 4 Copyright (C) 2008 Jari Häkkinen, Peter Johansson 5 Copyright (C) 2009 Peter Johansson5 Copyright (C) 2009, 2010 Peter Johansson 6 6 7 7 This file is part of the yat library, http://dev.thep.lu.se/yat … … 42 42 43 43 Suite::Suite(int argc, char* argv[], bool need_test_repo) 44 : dev_null_(NULL), ok_(true), verbose_(false) 45 { 46 char* buffer=std::getenv("VERBOSE"); 47 if ( (argc>1 && (argv[1]==std::string("-v") 48 || argv[1]==std::string("--verbose")) 49 || (buffer && buffer == std::string("1"))) ) { 50 verbose_=true; 51 } 52 else 53 dev_null_ = new std::ofstream("/dev/null"); 54 44 : ok_(true) 45 { 55 46 if (need_test_repo) { 56 47 bool have_test_repo=false; … … 70 61 Suite::~Suite(void) 71 62 { 72 delete dev_null_;73 63 } 74 64 … … 89 79 std::ostream& Suite::out(void) const 90 80 { 91 if (verbose()) 92 return std::cout; 93 return *dev_null_; 81 return std::cout; 94 82 } 95 83 … … 275 263 bool Suite::verbose(void) const 276 264 { 277 return verbose_; 265 // we are always verbose nowadays 266 return true; 278 267 } 279 268 -
trunk/test/Suite.h
r978 r1044 61 61 62 62 private: 63 std::ofstream* dev_null_;64 63 bool ok_; 65 bool verbose_;66 64 67 65 void checkout_test_wc(void) const;
Note: See TracChangeset
for help on using the changeset viewer.