FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
test_ContainerInfo.c
Go to the documentation of this file.
1 /*********************************************************************
2 Copyright (C) 2012 Hewlett-Packard Development Company, L.P.
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 version 2 as published by the Free Software Foundation.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 *********************************************************************/
21 #include "run_tests.h"
22 
23 static int Result = 0;
24 static ContainerInfo *CI = NULL;
32 {
33  struct stat Stat = {0};
34  ParentInfo PI = {0, 1287725739, 1287725739, 0, 0};
35  ContainerInfo CITest = {
36  "../testdata/test.zip", "./test-result/", "test.zip",
37  "test.zip.dir", 1, 1, 0, 0, Stat, PI, 0, 0, 0, 9, 0, 0};
38  CI = &CITest;
40  FO_ASSERT_EQUAL(Result, 0);
41 }
42 
43 /* ************************************************************************** */
44 /* **** cunit test cases **************************************************** */
45 /* ************************************************************************** */
46 
47 CU_TestInfo ContainerInfo_testcases[] =
48 {
49  {"DebugContainerInfo:", testDebugContainerInfo},
50  //{"IsNotDebianSourceFile:", testIsNotDebianSourceFile},
51  CU_TEST_INFO_NULL
52 };
static int Result
Result of calls.
Definition: test_CopyFile.c:28
Structure for storing information about a particular file.
Definition: ununpack.h:120
void testDebugContainerInfo()
test function DebugContainerInfo()
CU_TestInfo ContainerInfo_testcases[]
Container info test cases.
void DebugContainerInfo(ContainerInfo *CI)
Print a ContainerInfo structure.
Definition: utils.c:1095