20 #include "CUnit/CUnit.h" 37 char *repFile =
"../testdata/fossology_1.4.1.dsc";
51 CU_ASSERT_STRING_EQUAL(pi->
pkgName,
"fossology");
52 CU_ASSERT_STRING_EQUAL(pi->
pkgArch,
"any");
53 CU_ASSERT_STRING_EQUAL(pi->
version,
"1.4.1");
54 CU_ASSERT_STRING_EQUAL(pi->
maintainer,
"Matt Taggart <taggart@debian.org>");
55 CU_ASSERT_STRING_EQUAL(pi->
homepage,
"http://fossology.org");
65 CU_ASSERT_EQUAL(Result, predictValue);
78 char *repFile =
"../testdata/fossology-1.2.0-1.el5.i386.rpm";
96 CU_ASSERT_EQUAL(Result, predictValue);
char ** depends
Package dependency list.
char maintainer[MAXCMD]
Package maintainer.
static int Result
Result of calls.
char version[MAXCMD]
Package version.
char homepage[MAXCMD]
Package link.
int dep_size
Package dependency list size.
char pkgArch[MAXCMD]
Package architecture.
Holds meta info of Debian packages.
char pkgName[MAXCMD]
Package name.
int GetMetadataDebSource(char *repFile, struct debpkginfo *pi)
Get debian source package info from .dsc file.
PGconn * db_conn
The connection to Database.
PGconn * fo_dbconnect(char *DBConfFile, char **ErrorBuf)
Connect to a database. The default is Db.conf.