13
0
livetrax/libs/pbd/test/filesystem_test.h
Tim Mayberry e44212321e Add test to libpbd to check PBD::touch_file and pbd/gstdio_compat.h
GStatBuf is not usable on 32 bit Windows without the redefinition in
pbd/gstdio_compat.h so add a test to check for the correct behavior of
g_stat and g_utime on all platforms now that the issue is fixed.
2015-09-17 23:26:38 +10:00

32 lines
893 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 (testOpenFileUTF8Filename);
CPPUNIT_TEST (testFindFilesMatchingPattern);
CPPUNIT_TEST (testClearDirectory);
CPPUNIT_TEST (testRemoveDirectory);
CPPUNIT_TEST (testCanonicalPath);
CPPUNIT_TEST (testTouchFile);
CPPUNIT_TEST (testStatFile);
CPPUNIT_TEST_SUITE_END ();
public:
void testPathIsWithin ();
void testCopyFileASCIIFilename ();
void testCopyFileUTF8Filename ();
void testOpenFileUTF8Filename ();
void testFindFilesMatchingPattern ();
void testClearDirectory ();
void testRemoveDirectory ();
void testCanonicalPath ();
void testTouchFile ();
void testStatFile ();
};