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

Unit test cases for FindCmd() More...

#include "run_tests.h"
Include dependency graph for test_FindCmd.c:

Go to the source code of this file.

Functions

void testFindCmdNormal ()
 find xx.7z More...
 
void testFindCmd4DscFile ()
 find xx.dsc More...
 
void testFindCmd4CabFile ()
 find xx.cab More...
 
void testFindCmd4MsiFile ()
 find xx.msi More...
 
void testFindCmd4RpmFile ()
 find xx.rpm More...
 
void testFindCmd4IsoFile ()
 find xx.iso More...
 
void testFindCmd4ZipFile ()
 find xx.zip More...
 
void testFindCmd4RarFile ()
 find xx.rar More...
 
void testFindCmd4CpioFile ()
 find xx.cpio More...
 
void testFindCmd4DebFile ()
 find xx.deb More...
 
void testFindCmd4ArchiveLibFile ()
 find xx.ar More...
 
void testFindCmd4TarFile ()
 find xx.tar More...
 
void testFindCmd4ZFile ()
 find xx.z More...
 
void testFindCmd4ExeFile ()
 find xx.exe More...
 
void testFindCmd4Bz2File ()
 find xx.bz2 More...
 
void testFindCmd4Ext3File ()
 find ext3 fs More...
 
void testFindCmd4Ext2File ()
 find ext2 fs More...
 
void testFindCmd4FatFile ()
 find fat fs More...
 
void testFindCmd4NtfsFile ()
 find ntfs fs More...
 
void testFindCmd4PartitionFile ()
 find partition file More...
 

Variables

CU_TestInfo FindCmd_testcases []
 FindCmd() test cases. More...
 

Detailed Description

Unit test cases for FindCmd()

Definition in file test_FindCmd.c.

Function Documentation

◆ testFindCmd4ArchiveLibFile()

void testFindCmd4ArchiveLibFile ( )

find xx.ar

Test:
  1. Call FindCmd() on ar file
  2. Check if function returns correct index

Definition at line 170 of file test_FindCmd.c.

◆ testFindCmd4Bz2File()

void testFindCmd4Bz2File ( )

find xx.bz2

Test:
  1. Call FindCmd() on bz2 file
  2. Check if function returns correct index

Definition at line 228 of file test_FindCmd.c.

◆ testFindCmd4CabFile()

void testFindCmd4CabFile ( )

find xx.cab

Test:
  1. Call FindCmd() on cab file
  2. Check if function returns correct index

Definition at line 54 of file test_FindCmd.c.

◆ testFindCmd4CpioFile()

void testFindCmd4CpioFile ( )

find xx.cpio

Test:
  1. Call FindCmd() on cpio file
  2. Check if function returns correct index

Definition at line 141 of file test_FindCmd.c.

◆ testFindCmd4DebFile()

void testFindCmd4DebFile ( )

find xx.deb

Test:
  1. Call FindCmd() on deb file
  2. Check if function returns correct index

Definition at line 156 of file test_FindCmd.c.

◆ testFindCmd4DscFile()

void testFindCmd4DscFile ( )

find xx.dsc

Test:
  1. Call FindCmd() on dsc file
  2. Check if function returns correct index

Definition at line 40 of file test_FindCmd.c.

◆ testFindCmd4ExeFile()

void testFindCmd4ExeFile ( )

find xx.exe

Test:
  1. Call FindCmd() on exe file
  2. Check if function returns correct index

Definition at line 214 of file test_FindCmd.c.

◆ testFindCmd4Ext2File()

void testFindCmd4Ext2File ( )

find ext2 fs

Test:
  1. Call FindCmd() on ext2 file
  2. Check if function returns correct index

Definition at line 256 of file test_FindCmd.c.

◆ testFindCmd4Ext3File()

void testFindCmd4Ext3File ( )

find ext3 fs

Test:
  1. Call FindCmd() on ext3 file
  2. Check if function returns correct index

Definition at line 242 of file test_FindCmd.c.

◆ testFindCmd4FatFile()

void testFindCmd4FatFile ( )

find fat fs

Test:
  1. Call FindCmd() on fat file
  2. Check if function returns correct index

Definition at line 270 of file test_FindCmd.c.

◆ testFindCmd4IsoFile()

void testFindCmd4IsoFile ( )

find xx.iso

Test:
  1. Call FindCmd() on iso file
  2. Check if function returns correct index

Definition at line 99 of file test_FindCmd.c.

◆ testFindCmd4MsiFile()

void testFindCmd4MsiFile ( )

find xx.msi

Test:
  1. Call FindCmd() on msi file
  2. Check if function returns correct index

Definition at line 68 of file test_FindCmd.c.

◆ testFindCmd4NtfsFile()

void testFindCmd4NtfsFile ( )

find ntfs fs

Test:
  1. Call FindCmd() on fs file
  2. Check if function returns correct index

Definition at line 291 of file test_FindCmd.c.

◆ testFindCmd4PartitionFile()

void testFindCmd4PartitionFile ( )

find partition file

Test:
  1. Call FindCmd() on partition file
  2. Check if function returns correct index
Todo:
Test file does not exists

Definition at line 306 of file test_FindCmd.c.

◆ testFindCmd4RarFile()

void testFindCmd4RarFile ( )

find xx.rar

Test:
  1. Call FindCmd() on rar file
  2. Check if function returns correct index

Definition at line 127 of file test_FindCmd.c.

◆ testFindCmd4RpmFile()

void testFindCmd4RpmFile ( )

find xx.rpm

Test:
  1. Call FindCmd() on rpm file
  2. Check if function returns correct index

Definition at line 82 of file test_FindCmd.c.

◆ testFindCmd4TarFile()

void testFindCmd4TarFile ( )

find xx.tar

Test:
  1. Call FindCmd() on tar file
  2. Check if function returns correct index

Definition at line 185 of file test_FindCmd.c.

◆ testFindCmd4ZFile()

void testFindCmd4ZFile ( )

find xx.z

Test:
  1. Call FindCmd() on z file
  2. Check if function returns correct index

Definition at line 200 of file test_FindCmd.c.

◆ testFindCmd4ZipFile()

void testFindCmd4ZipFile ( )

find xx.zip

Test:
  1. Call FindCmd() on zip file
  2. Check if function returns correct index

Definition at line 113 of file test_FindCmd.c.

◆ testFindCmdNormal()

void testFindCmdNormal ( )

find xx.7z

Test:
  1. Call FindCmd() on 7z file
  2. Check if function returns correct index

Definition at line 18 of file test_FindCmd.c.

Variable Documentation

◆ FindCmd_testcases

CU_TestInfo FindCmd_testcases[]
Initial value:
=
{
{"FindCmd: normal:", testFindCmdNormal},
{"FindCmd: dsc", testFindCmd4DscFile},
{"FindCmd: cab", testFindCmd4CabFile},
{"FindCmd: msi", testFindCmd4MsiFile},
{"FindCmd: rpm", testFindCmd4RpmFile},
{"FindCmd: iso", testFindCmd4IsoFile},
{"FindCmd: zip", testFindCmd4ZipFile},
{"FindCmd: rar", testFindCmd4RarFile},
{"FindCmd: cpio", testFindCmd4CpioFile},
{"FindCmd: deb", testFindCmd4DebFile},
{"FindCmd: archive lib", testFindCmd4ArchiveLibFile},
{"FindCmd: tar", testFindCmd4TarFile},
{"FindCmd: Z", testFindCmd4ZFile},
{"FindCmd: exe", testFindCmd4ExeFile},
{"FindCmd: bz2", testFindCmd4Bz2File},
{"FindCmd: ext2 file system", testFindCmd4Ext2File},
{"FindCmd: ext3 file system", testFindCmd4Ext3File},
{"FindCmd: fat file system", testFindCmd4FatFile},
{"FindCmd: ntfs file system", testFindCmd4NtfsFile},
CU_TEST_INFO_NULL
}
void testFindCmd4ZipFile()
find xx.zip
Definition: test_FindCmd.c:113
void testFindCmd4FatFile()
find fat fs
Definition: test_FindCmd.c:270
void testFindCmd4ExeFile()
find xx.exe
Definition: test_FindCmd.c:214
void testFindCmd4MsiFile()
find xx.msi
Definition: test_FindCmd.c:68
void testFindCmdNormal()
find xx.7z
Definition: test_FindCmd.c:18
void testFindCmd4Ext3File()
find ext3 fs
Definition: test_FindCmd.c:242
void testFindCmd4NtfsFile()
find ntfs fs
Definition: test_FindCmd.c:291
void testFindCmd4Bz2File()
find xx.bz2
Definition: test_FindCmd.c:228
void testFindCmd4DscFile()
find xx.dsc
Definition: test_FindCmd.c:40
void testFindCmd4RpmFile()
find xx.rpm
Definition: test_FindCmd.c:82
void testFindCmd4IsoFile()
find xx.iso
Definition: test_FindCmd.c:99
void testFindCmd4Ext2File()
find ext2 fs
Definition: test_FindCmd.c:256
void testFindCmd4ArchiveLibFile()
find xx.ar
Definition: test_FindCmd.c:170
void testFindCmd4DebFile()
find xx.deb
Definition: test_FindCmd.c:156
void testFindCmd4RarFile()
find xx.rar
Definition: test_FindCmd.c:127
void testFindCmd4CabFile()
find xx.cab
Definition: test_FindCmd.c:54
void testFindCmd4CpioFile()
find xx.cpio
Definition: test_FindCmd.c:141
void testFindCmd4ZFile()
find xx.z
Definition: test_FindCmd.c:200
void testFindCmd4TarFile()
find xx.tar
Definition: test_FindCmd.c:185

FindCmd() test cases.

Definition at line 319 of file test_FindCmd.c.