Crossfire Server, Branch 1.12
R12190
|
00001 /* 00002 * static char *rcsid_check_floor_c = 00003 * "$Id: check_floor.c 11578 2009-02-23 22:02:27Z lalo $"; 00004 */ 00005 00006 /* 00007 * CrossFire, A Multiplayer game for X-windows 00008 * 00009 * Copyright (C) 2002 Mark Wedel & Crossfire Development Team 00010 * Copyright (C) 1992 Frank Tore Johansen 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU General Public License as published by 00014 * the Free Software Foundation; either version 2 of the License, or 00015 * (at your option) any later version. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU General Public License 00023 * along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00025 * 00026 * The authors can be reached via e-mail at crossfire-devel@real-time.com 00027 */ 00028 00029 /* 00030 * This is the unit tests file for random_maps/floor.c 00031 */ 00032 00033 #include <stdlib.h> 00034 #include <check.h> 00035 00036 void setup(void) { 00037 /* put any initialisation steps here, they will be run before each testcase */ 00038 } 00039 00040 void teardown(void) { 00041 /* put any cleanup steps here, they will be run after each testcase */ 00042 } 00043 00044 START_TEST(test_empty) { 00045 /*TESTME test not yet developped*/ 00046 } 00047 END_TEST 00048 00049 Suite *floor_suite(void) { 00050 Suite *s = suite_create("floor"); 00051 TCase *tc_core = tcase_create("Core"); 00052 /*setup and teardown will be called before each test in testcase 'tc_core' */ 00053 tcase_add_checked_fixture(tc_core, setup, teardown); 00054 00055 suite_add_tcase(s, tc_core); 00056 tcase_add_test(tc_core, test_empty); 00057 00058 return s; 00059 } 00060 00061 int main(void) { 00062 int nf; 00063 Suite *s = floor_suite(); 00064 SRunner *sr = srunner_create(s); 00065 00066 srunner_set_xml(sr, LOGDIR "/unit/random_maps/floor.xml"); 00067 srunner_set_log(sr, LOGDIR "/unit/random_maps/floor.out"); 00068 srunner_run_all(sr, CK_ENV); /*verbosity from env variable*/ 00069 nf = srunner_ntests_failed(sr); 00070 srunner_free(sr); 00071 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; 00072 }