Crossfire Server, Branch 1.12
R12190
|
00001 /* 00002 * static char *rcsid_check_room_gen_spiral_c = 00003 * "$Id: check_room_gen_spiral.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/room_gen_spiral.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 *room_gen_spiral_suite(void) { 00050 Suite *s = suite_create("room_gen_spiral"); 00051 TCase *tc_core = tcase_create("Core"); 00052 00053 /*setup and teardown will be called before each test in testcase 'tc_core' */ 00054 tcase_add_checked_fixture(tc_core, setup, teardown); 00055 00056 suite_add_tcase(s, tc_core); 00057 tcase_add_test(tc_core, test_empty); 00058 00059 return s; 00060 } 00061 00062 int main(void) { 00063 int nf; 00064 Suite *s = room_gen_spiral_suite(); 00065 SRunner *sr = srunner_create(s); 00066 00067 srunner_set_xml(sr, LOGDIR "/unit/random_maps/room_gen_spiral.xml"); 00068 srunner_set_log(sr, LOGDIR "/unit/random_maps/room_gen_spiral.out"); 00069 srunner_run_all(sr, CK_ENV); /*verbosity from env variable*/ 00070 nf = srunner_ntests_failed(sr); 00071 srunner_free(sr); 00072 return (nf == 0) ? EXIT_SUCCESS : EXIT_FAILURE; 00073 }