Changeset 744 for trunk/test/Suite.h


Ignore:
Timestamp:
Jan 8, 2009, 11:37:12 PM (13 years ago)
Author:
Peter Johansson
Message:

fixes #355 - skipping tests. Added some support in test::Suite to handle the test repo. There is a bool in constructor telling if the tests needs the test repo. test::Suite uses a new script svn_update.sh to check out and update the test repo. This script is used in test_repo.sh as well.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        88autom4te.cache
        99INSTALL
        10 COPYING
        1110aclocal.m4
        1211Makefile
  • trunk/test/Suite.h

    r693 r744  
    55
    66/*
    7   Copyright (C) 2008 Peter Johansson
     7  Copyright (C) 2008, 2009 Peter Johansson
    88
    99  This file is part of svndigest, http://dev.thep.lu.se/svndigest
     
    3131namespace test {
    3232
     33  class Suite
     34  {
     35  public:
     36    Suite(int argc, char* argv[], bool need_test_repo=false);
     37    ~Suite(void);
     38
     39    /**
     40       If b is false, set ok to false
     41
     42       \return b
     43    */
     44    bool add(bool b);
     45
     46    /**
     47       \return true if all tests are OK
     48     */
     49    bool ok(void) const;
     50
     51    std::ostream& out(void) const;
     52
     53    /**
     54       \return true if we are running in verbose mode
     55     */
     56    bool verbose(void) const;
     57
     58  private:
     59    std::ofstream* dev_null_;
     60    bool ok_;
     61    bool verbose_;
     62
     63    void checkout_test_wc(void) const;
     64    void update_test_wc(void) const;
     65  };
     66
    3367  /**
    3468     \return absolute path to file
Note: See TracChangeset for help on using the changeset viewer.