Zipios++
all_tests.cpp
Go to the documentation of this file.
00001 #include <iostream>
00002 
00003 #include <cppunit/TestSuite.h>
00004 #include <cppunit/TextTestResult.h>
00005 #include <cppunit/TestCaller.h>
00006 #include "zipinputstreamtest.h"
00007 #include "zipoutputstreamtest.h"
00008 #include "zipfiletest.h"
00009 
00010 using namespace CppUnit;
00011 
00012 int main(int argc, char* argv[]) {
00013   TextTestResult result;
00014   {
00015     TestSuite suite;
00016     suite.addTest(zipios::ZipOutputStreamTest::suite());
00017     suite.addTest(zipios::ZipInputStreamTest::suite());
00018     suite.addTest(zipios::ZipFileTest::suite());
00019     
00020     suite.run(&result);
00021     std::cout << result << std::endl;
00022   }
00023   return result.failures().size();
00024 }
00025 
00026 
00032 /*
00033   Zipios++ - a small C++ library that provides easy access to .zip files.
00034   Copyright (C) 2000  Thomas Søndergaard
00035   
00036   This library is free software; you can redistribute it and/or
00037   modify it under the terms of the GNU Lesser General Public
00038   License as published by the Free Software Foundation; either
00039   version 2 of the License, or (at your option) any later version.
00040   
00041   This library is distributed in the hope that it will be useful,
00042   but WITHOUT ANY WARRANTY; without even the implied warranty of
00043   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00044   Lesser General Public License for more details.
00045   
00046   You should have received a copy of the GNU Lesser General Public
00047   License along with this library; if not, write to the Free Software
00048   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00049 */