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