test_campaign.c

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 
00024 */
00025 
00026 #include "CUnit/Basic.h"
00027 #include "test_shared.h"
00028 #include "test_campaign.h"
00029 
00034 static int UFO_InitSuiteCampaign (void)
00035 {
00036     TEST_Init();
00037     return 0;
00038 }
00039 
00044 static int UFO_CleanSuiteCampaign (void)
00045 {
00046     TEST_Shutdown();
00047     return 0;
00048 }
00049 
00050 static void testCampaign (void)
00051 {
00052 }
00053 
00054 int UFO_AddCampaignTests (void)
00055 {
00056     /* add a suite to the registry */
00057     CU_pSuite campaignSuite = CU_add_suite("CampaignTests", UFO_InitSuiteCampaign, UFO_CleanSuiteCampaign);
00058 
00059     if (campaignSuite == NULL)
00060         return CU_get_error();
00061 
00062     /* add the tests to the suite */
00063     if (CU_ADD_TEST(campaignSuite, testCampaign) == NULL)
00064         return CU_get_error();
00065 
00066     return CUE_SUCCESS;
00067 }

Generated by  doxygen 1.6.2