Tim Mayberry
0ec85a4164
Add test for PBD::canonical_path that was used to track down silly mistake in test code
26 lines
708 B
C++
26 lines
708 B
C++
#include <cppunit/TestFixture.h>
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
class FilesystemTest : public CppUnit::TestFixture
|
|
{
|
|
CPPUNIT_TEST_SUITE (FilesystemTest);
|
|
CPPUNIT_TEST (testPathIsWithin);
|
|
CPPUNIT_TEST (testCopyFileASCIIFilename);
|
|
CPPUNIT_TEST (testCopyFileUTF8Filename);
|
|
CPPUNIT_TEST (testFindFilesMatchingPattern);
|
|
CPPUNIT_TEST (testClearDirectory);
|
|
CPPUNIT_TEST (testRemoveDirectory);
|
|
CPPUNIT_TEST (testCanonicalPath);
|
|
CPPUNIT_TEST_SUITE_END ();
|
|
|
|
public:
|
|
void testPathIsWithin ();
|
|
void testCopyFileASCIIFilename ();
|
|
void testCopyFileUTF8Filename ();
|
|
void testFindFilesMatchingPattern ();
|
|
void testClearDirectory ();
|
|
void testRemoveDirectory ();
|
|
void testCanonicalPath ();
|
|
};
|
|
|