gimme-alpha 0.1

tests.c

Go to the documentation of this file.
00001 /*
00002 ** tests.c
00003 ** 
00004 ** Made by (Johnny Q. Hacker)
00005 ** Login   <solarion@borkborkbork>
00006 ** 
00007 
00008     Copyright (C) 2009 Joseph Pingenot
00009 
00010     This program is free software: you can redistribute it and/or modify
00011     it under the terms of the GNU Affero General Public License as published by
00012     the Free Software Foundation, either version 3 of the License, or
00013     (at your option) any later version.
00014 
00015     This program is distributed in the hope that it will be useful,
00016     but WITHOUT ANY WARRANTY; without even the implied warranty of
00017     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018     GNU Affero General Public License for more details.
00019 
00020     You should have received a copy of the GNU Affero General Public License
00021     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00022 
00023 ** Started on  Thu Mar 19 12:49:41 2009 Johnny Q. Hacker
00024 ** Last update Sun May 12 01:17:25 2002 Speed Blue
00025 */
00026 
00027 #include <stdio.h>
00028 #include <CUnit/CUnit.h>
00029 #include <CUnit/TestDB.h>
00030 #include <CUnit/Automated.h>
00031 #include <CUnit/Basic.h>
00032 #include <CUnit/TestRun.h>
00033 #include "tests/matdb-suite.h"
00034 #include "tests/alpha_calc-suite.h"
00035 
00036 int main(int argc, char **argv) {
00037   CU_pSuite suite;
00038   CU_initialize_registry();
00039 
00040   suite = CU_add_suite("matdb", NULL, NULL);
00041   matdb_suite_add_tests(suite);
00042 
00043   suite = CU_add_suite("alpa_calc", NULL, NULL);
00044   alpha_calc_suite_add_tests(suite);
00045 
00046   CU_automated_run_tests();
00047   CU_basic_set_mode(CU_BRM_VERBOSE);
00048   CU_basic_run_tests();
00049 
00050   CU_cleanup_registry();
00051   printf("Failed: %d\n", CU_get_number_of_tests_failed());
00052   return CU_get_number_of_tests_failed();
00053 }
 All Classes Files Functions Variables Enumerations Enumerator Defines