File indexing completed on 2024-05-26 04:24:17
0001 /** 0002 * SPDX-FileCopyrightText: 2001-2015 Klaralvdalens Datakonsult AB. All rights reserved. 0003 * 0004 * This file is part of the KGantt library. 0005 * 0006 * SPDX-License-Identifier: GPL-2.0-or-later 0007 */ 0008 0009 #include "unittest/testregistry.h" 0010 0011 #include <QApplication> 0012 #include <iostream> 0013 0014 int main( int argc , char ** argv ) { 0015 0016 QApplication app( argc, argv ); 0017 0018 KDAB::UnitTest::Runner r; 0019 unsigned int failed = 0; 0020 if ( argc == 1 ) 0021 failed = r.run(); 0022 else { 0023 for ( int i = 1 ; i < argc ; ++i ) 0024 if ( argv[i] && *argv[i] ) 0025 failed += r.run( argv[i] ); 0026 else { 0027 std::cerr << argv[0] << ": skipping empty group name" << std::endl; 0028 } 0029 } 0030 std::cout << failed << " tests failed." << std::endl; 0031 return failed; 0032 }