20 char *
Filename =
"../testdata/test.7z";
24 if (result == 16 || result == 17)
42 char *
Filename =
"../testdata/test_1-1.dsc";
45 FO_ASSERT_EQUAL(result, 28);
56 char *
Filename =
"../testdata/test.cab";
59 FO_ASSERT_EQUAL(result, 17);
70 char *
Filename =
"../testdata/test.msi";
73 FO_ASSERT_EQUAL(result, 17);
84 char *
Filename =
"../testdata/test.rpm";
87 FO_ASSERT_EQUAL(result, 18);
90 FO_ASSERT_EQUAL(result, 18);
101 char *
Filename =
"../testdata/test.iso";
104 FO_ASSERT_EQUAL(result, 21);
115 char *
Filename =
"../testdata/test.zip";
118 FO_ASSERT_EQUAL(result, 10);
129 char *
Filename =
"../testdata/test.rar";
132 FO_ASSERT_EQUAL(result, 14);
143 char *
Filename =
"../testdata/test.cpio";
146 FO_ASSERT_EQUAL(result, 13);
158 char *
Filename =
"../testdata/test.deb";
161 FO_ASSERT_EQUAL(result, 20);
172 char *
Filename =
"../testdata/test.ar";
175 FO_ASSERT_EQUAL(result, 19);
187 char *
Filename =
"../testdata/emptydirs.tar";
190 FO_ASSERT_EQUAL(result, 11);
202 char *
Filename =
"../testdata/test.z";
205 FO_ASSERT_EQUAL(result, 3);
216 char *
Filename =
"../testdata/test.exe";
219 FO_ASSERT_EQUAL(result, 31);
230 char *
Filename =
"../testdata/fossI16L335U29.tar.bz2";
233 FO_ASSERT_EQUAL(result, 5);
244 char *
Filename =
"../testdata/ext3test-image";
247 FO_ASSERT_EQUAL(result, 26);
258 char *
Filename =
"../testdata/ext2file.fs";
261 FO_ASSERT_EQUAL(result, 25);
272 char *
Filename =
"../testdata/fatfile.fs";
276 if (result == 17 || result == 23)
293 char *
Filename =
"../testdata/ntfsfile.fs";
296 FO_ASSERT_EQUAL(result, 24);
308 char *
Filename =
"../testdata/vmlinuz-2.6.26-2-686";
311 FO_ASSERT_EQUAL(result, 27);
void testFindCmd4ZipFile()
find xx.zip
void testFindCmd4FatFile()
find fat fs
void testFindCmd4ExeFile()
find xx.exe
void testFindCmd4MsiFile()
find xx.msi
CU_TestInfo FindCmd_testcases[]
FindCmd() test cases.
void testFindCmdNormal()
find xx.7z
void testFindCmd4Ext3File()
find ext3 fs
void testFindCmd4NtfsFile()
find ntfs fs
void testFindCmd4Bz2File()
find xx.bz2
void testFindCmd4DscFile()
find xx.dsc
void testFindCmd4RpmFile()
find xx.rpm
void testFindCmd4IsoFile()
find xx.iso
void testFindCmd4PartitionFile()
find partition file
void testFindCmd4Ext2File()
find ext2 fs
void testFindCmd4ArchiveLibFile()
find xx.ar
void testFindCmd4DebFile()
find xx.deb
void testFindCmd4RarFile()
find xx.rar
void testFindCmd4CabFile()
find xx.cab
void testFindCmd4CpioFile()
find xx.cpio
void testFindCmd4ZFile()
find xx.z
void testFindCmd4TarFile()
find xx.tar
int FindCmd(char *Filename)
Given a file name, determine the type of extraction command. This uses Magic.