FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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;
31
void
testDebugContainerInfo
()
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;
39
DebugContainerInfo
(CI);
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
};
Result
static int Result
Result of calls.
Definition:
test_CopyFile.c:28
ContainerInfo
Structure for storing information about a particular file.
Definition:
ununpack.h:120
testDebugContainerInfo
void testDebugContainerInfo()
test function DebugContainerInfo()
Definition:
test_ContainerInfo.c:31
ContainerInfo_testcases
CU_TestInfo ContainerInfo_testcases[]
Container info test cases.
Definition:
test_ContainerInfo.c:47
ParentInfo
Definition:
ununpack.h:80
DebugContainerInfo
void DebugContainerInfo(ContainerInfo *CI)
Print a ContainerInfo structure.
Definition:
utils.c:1095
src
ununpack
agent_tests
Unit
test_ContainerInfo.c
Generated on Mon Jun 29 2020 12:03:44 for FOSSology by
1.8.11