Zipios++
all_tests.cpp
Go to the documentation of this file.
1 #include <iostream>
2 
3 #include <cppunit/TestSuite.h>
4 #include <cppunit/TextTestResult.h>
5 #include <cppunit/TestCaller.h>
6 #include "zipinputstreamtest.h"
7 #include "zipoutputstreamtest.h"
8 #include "zipfiletest.h"
9 
10 using namespace CppUnit;
11 
12 int main(int argc, char* argv[]) {
13  TextTestResult result;
14  {
15  TestSuite suite;
16  suite.addTest(zipios::ZipOutputStreamTest::suite());
17  suite.addTest(zipios::ZipInputStreamTest::suite());
18  suite.addTest(zipios::ZipFileTest::suite());
19 
20  suite.run(&result);
21  std::cout << result << std::endl;
22  }
23  return result.failures().size();
24 }
25 
26 
32 /*
33  Zipios++ - a small C++ library that provides easy access to .zip files.
34  Copyright (C) 2000 Thomas Søndergaard
35 
36  This library is free software; you can redistribute it and/or
37  modify it under the terms of the GNU Lesser General Public
38  License as published by the Free Software Foundation; either
39  version 2 of the License, or (at your option) any later version.
40 
41  This library is distributed in the hope that it will be useful,
42  but WITHOUT ANY WARRANTY; without even the implied warranty of
43  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
44  Lesser General Public License for more details.
45 
46  You should have received a copy of the GNU Lesser General Public
47  License along with this library; if not, write to the Free Software
48  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
49 */