Changeset 1044 for trunk


Ignore:
Timestamp:
Mar 27, 2010, 9:56:29 PM (14 years ago)
Author:
Peter Johansson
Message:

using parallel-tests driver and making c++ tests verbose by default.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r1043 r1044  
    6868
    6969AC_CONFIG_HEADERS([config.h])
    70 AM_INIT_AUTOMAKE([1.11 color-tests std-options])
     70AM_INIT_AUTOMAKE([1.11 color-tests std-options parallel-tests])
    7171
    7272dnl create bin/svndigest-copy-cache.in at autoconf time and let
  • trunk/test/Suite.cc

    r978 r1044  
    33/*
    44  Copyright (C) 2008 Jari Häkkinen, Peter Johansson
    5   Copyright (C) 2009 Peter Johansson
     5  Copyright (C) 2009, 2010 Peter Johansson
    66
    77  This file is part of the yat library, http://dev.thep.lu.se/yat
     
    4242
    4343  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  {
    5546    if (need_test_repo) {
    5647      bool have_test_repo=false;
     
    7061  Suite::~Suite(void)
    7162  {
    72     delete dev_null_;
    7363  }
    7464
     
    8979  std::ostream& Suite::out(void) const
    9080  {
    91     if (verbose())
    92       return std::cout;
    93     return *dev_null_;
     81    return std::cout;
    9482  }
    9583
     
    275263  bool Suite::verbose(void) const
    276264  {
    277     return verbose_;
     265    // we are always verbose nowadays
     266    return true;
    278267  }
    279268
  • trunk/test/Suite.h

    r978 r1044  
    6161
    6262  private:
    63     std::ofstream* dev_null_;
    6463    bool ok_;
    65     bool verbose_;
    6664
    6765    void checkout_test_wc(void) const;
Note: See TracChangeset for help on using the changeset viewer.