FOSSology  4.4.0
Open Source License Compliance by Open Source Software
testRecordMetadataRPM.c File Reference

unit test for RecordMetadataRPM function More...

#include "pkgagent.h"
#include <stdio.h>
#include "CUnit/CUnit.h"
Include dependency graph for testRecordMetadataRPM.c:

Go to the source code of this file.

Macros

#define MAXSQL   4096
 

Functions

void test_RecordMetadataRPM ()
 Test pkgagent.c function RecordMetadataRPM() More...
 

Variables

char * DBConfFile
 DB conf file location.
 
CU_TestInfo testcases_RecordMetadataRPM []
 testcases for function RecordMetadataRPM More...
 

Detailed Description

unit test for RecordMetadataRPM function

Definition in file testRecordMetadataRPM.c.

Function Documentation

◆ test_RecordMetadataRPM()

void test_RecordMetadataRPM ( )

Test pkgagent.c function RecordMetadataRPM()

Test:
  1. Create a test upload in pfile table
  2. Create rpmpkginfo object and populate it
  3. Call RecordMetadataRPM()
  4. Check if meta data got inserted in DB

Definition at line 27 of file testRecordMetadataRPM.c.

Variable Documentation

◆ testcases_RecordMetadataRPM

CU_TestInfo testcases_RecordMetadataRPM[]
Initial value:
= {
{"Testing the function RecordMetadataRPM", test_RecordMetadataRPM},
CU_TEST_INFO_NULL
}
void test_RecordMetadataRPM()
Test pkgagent.c function RecordMetadataRPM()

testcases for function RecordMetadataRPM

Definition at line 167 of file testRecordMetadataRPM.c.