17 #include "run_tests.h" 31 char *
Filename =
"../testdata/test.7z";
35 if (result == 16 || result == 17)
53 char *
Filename =
"../testdata/test_1-1.dsc";
56 FO_ASSERT_EQUAL(result, 28);
67 char *
Filename =
"../testdata/test.cab";
70 FO_ASSERT_EQUAL(result, 17);
81 char *
Filename =
"../testdata/test.msi";
84 FO_ASSERT_EQUAL(result, 17);
95 char *
Filename =
"../testdata/test.rpm";
98 FO_ASSERT_EQUAL(result, 18);
99 Filename =
"../testdata/test.rpm";
101 FO_ASSERT_EQUAL(result, 18);
112 char *
Filename =
"../testdata/test.iso";
115 FO_ASSERT_EQUAL(result, 21);
126 char *
Filename =
"../testdata/test.zip";
129 FO_ASSERT_EQUAL(result, 10);
140 char *
Filename =
"../testdata/test.rar";
143 FO_ASSERT_EQUAL(result, 14);
154 char *
Filename =
"../testdata/test.cpio";
157 FO_ASSERT_EQUAL(result, 13);
169 char *
Filename =
"../testdata/test.deb";
172 FO_ASSERT_EQUAL(result, 20);
183 char *
Filename =
"../testdata/test.ar";
186 FO_ASSERT_EQUAL(result, 19);
198 char *
Filename =
"../testdata/emptydirs.tar";
201 FO_ASSERT_EQUAL(result, 11);
213 char *
Filename =
"../testdata/test.z";
216 FO_ASSERT_EQUAL(result, 3);
227 char *
Filename =
"../testdata/test.exe";
230 FO_ASSERT_EQUAL(result, 31);
241 char *
Filename =
"../testdata/fossI16L335U29.tar.bz2";
244 FO_ASSERT_EQUAL(result, 5);
255 char *
Filename =
"../testdata/ext3test-image";
258 FO_ASSERT_EQUAL(result, 26);
269 char *
Filename =
"../testdata/ext2file.fs";
272 FO_ASSERT_EQUAL(result, 25);
283 char *
Filename =
"../testdata/fatfile.fs";
287 if (result == 17 || result == 23)
304 char *
Filename =
"../testdata/ntfsfile.fs";
307 FO_ASSERT_EQUAL(result, 24);
319 char *
Filename =
"../testdata/vmlinuz-2.6.26-2-686";
322 FO_ASSERT_EQUAL(result, 27);
void testFindCmd4Ext3File()
find ext3 fs
CU_TestInfo FindCmd_testcases[]
FindCmd() test cases.
void testFindCmd4ZFile()
find xx.z
void testFindCmd4FatFile()
find fat fs
void testFindCmd4RpmFile()
find xx.rpm
void testFindCmdNormal()
find xx.7z
void testFindCmd4IsoFile()
find xx.iso
void testFindCmd4RarFile()
find xx.rar
int FindCmd(char *Filename)
Given a file name, determine the type of extraction command. This uses Magic.
void testFindCmd4DscFile()
find xx.dsc
void testFindCmd4CpioFile()
find xx.cpio
void testFindCmd4NtfsFile()
find ntfs fs
void testFindCmd4DebFile()
find xx.deb
void testFindCmd4Bz2File()
find xx.bz2
void testFindCmd4Ext2File()
find ext2 fs
void testFindCmd4ArchiveLibFile()
find xx.ar
void testFindCmd4PartitionFile()
find partition file
void testFindCmd4MsiFile()
find xx.msi
void testFindCmd4CabFile()
find xx.cab
void testFindCmd4ZipFile()
find xx.zip
void testFindCmd4TarFile()
find xx.tar
void testFindCmd4ExeFile()
find xx.exe