2012-05-28 16:48:39 +00:00
|
|
|
#include <cppunit/TestFixture.h>
|
|
|
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
|
|
|
|
|
|
class FilesystemTest : public CppUnit::TestFixture
|
|
|
|
|
{
|
|
|
|
|
CPPUNIT_TEST_SUITE (FilesystemTest);
|
|
|
|
|
CPPUNIT_TEST (testPathIsWithin);
|
2014-06-25 13:51:58 +10:00
|
|
|
CPPUNIT_TEST (testCopyFileASCIIFilename);
|
|
|
|
|
CPPUNIT_TEST (testCopyFileUTF8Filename);
|
2015-07-25 16:33:54 +10:00
|
|
|
CPPUNIT_TEST (testOpenFileUTF8Filename);
|
2014-06-24 21:27:37 +10:00
|
|
|
CPPUNIT_TEST (testFindFilesMatchingPattern);
|
2014-06-25 21:43:15 +10:00
|
|
|
CPPUNIT_TEST (testClearDirectory);
|
|
|
|
|
CPPUNIT_TEST (testRemoveDirectory);
|
2016-09-18 14:59:20 +10:00
|
|
|
CPPUNIT_TEST (testCanonicalPathASCII);
|
|
|
|
|
CPPUNIT_TEST (testCanonicalPathUTF8);
|
2015-09-17 15:13:16 +10:00
|
|
|
CPPUNIT_TEST (testTouchFile);
|
|
|
|
|
CPPUNIT_TEST (testStatFile);
|
2012-05-28 16:48:39 +00:00
|
|
|
CPPUNIT_TEST_SUITE_END ();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
void testPathIsWithin ();
|
2014-06-25 13:51:58 +10:00
|
|
|
void testCopyFileASCIIFilename ();
|
|
|
|
|
void testCopyFileUTF8Filename ();
|
2015-07-25 16:33:54 +10:00
|
|
|
void testOpenFileUTF8Filename ();
|
2014-06-24 21:27:37 +10:00
|
|
|
void testFindFilesMatchingPattern ();
|
2014-06-25 21:43:15 +10:00
|
|
|
void testClearDirectory ();
|
|
|
|
|
void testRemoveDirectory ();
|
2016-09-18 14:59:20 +10:00
|
|
|
void testCanonicalPathASCII ();
|
|
|
|
|
void testCanonicalPathUTF8 ();
|
2015-09-17 15:13:16 +10:00
|
|
|
void testTouchFile ();
|
|
|
|
|
void testStatFile ();
|
2012-05-28 16:48:39 +00:00
|
|
|
};
|
|
|
|
|
|