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