summaryrefslogtreecommitdiff
path: root/libs/pbd/test/filesystem_test.h
blob: 0274d61139a524eb7fceeac5073f5f196119b79e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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 ();
};