FOSSology  4.4.0
Open Source License Compliance by Open Source Software
test_ununpack-ar.c File Reference

Unit test cases for ExtractAR() More...

#include "run_tests.h"
Include dependency graph for test_ununpack-ar.c:

Go to the source code of this file.

Functions

void testExtractAR4ArchiveLibraryFile ()
 unpack archive library file More...
 
void testExtractAR4DebFile ()
 unpack deb file More...
 
void testExtractAR4EmptyParameters ()
 abnormal parameters More...
 
void testExtractAR4ErrorParameters ()
 abnormal parameters More...
 

Variables

static int Result = 0
 
CU_TestInfo ExtractAR_testcases []
 AR test cases. More...
 

Detailed Description

Unit test cases for ExtractAR()

Definition in file test_ununpack-ar.c.

Function Documentation

◆ testExtractAR4ArchiveLibraryFile()

void testExtractAR4ArchiveLibraryFile ( )

unpack archive library file

Test:
  1. Try to extract .ar library file using ExtractAR()
  2. Check if the files are unpacked

Definition at line 21 of file test_ununpack-ar.c.

◆ testExtractAR4DebFile()

void testExtractAR4DebFile ( )

unpack deb file

Test:
  1. Try to extract .deb archives using ExtractAR()
  2. Check if the files are unpacked

Definition at line 40 of file test_ununpack-ar.c.

◆ testExtractAR4EmptyParameters()

void testExtractAR4EmptyParameters ( )

abnormal parameters

Test:
  1. Call ExtractAR() with empty parameters
  2. Check if the function return NOT OK

Definition at line 59 of file test_ununpack-ar.c.

◆ testExtractAR4ErrorParameters()

void testExtractAR4ErrorParameters ( )

abnormal parameters

Test:
  1. Try to extract .rpm archives using ExtractAR()
  2. Check if the function return NOT OK

Definition at line 74 of file test_ununpack-ar.c.

Variable Documentation

◆ ExtractAR_testcases

CU_TestInfo ExtractAR_testcases[]
Initial value:
=
{
{"Testing function testExtractAR for archive library file:", testExtractAR4ArchiveLibraryFile},
{"Testing function testExtractAR for deb file:", testExtractAR4DebFile},
{"Testing function testExtractAR for abnormal parameters:", testExtractAR4EmptyParameters},
{"Testing function testExtractAR for error parameters:", testExtractAR4ErrorParameters},
CU_TEST_INFO_NULL
}
void testExtractAR4DebFile()
unpack deb file
void testExtractAR4EmptyParameters()
abnormal parameters
void testExtractAR4ArchiveLibraryFile()
unpack archive library file
void testExtractAR4ErrorParameters()
abnormal parameters

AR test cases.

Definition at line 89 of file test_ununpack-ar.c.