Move tests to relevant subprojects (#615)

- Moved test projects to the parent project they belong to
- Improved test stability/corectness
- Improved recursive directory deletion by safely ignoring current- and parent-directory entries.
- Update docs
This commit is contained in:
Ken Van Hoeylandt
2026-08-13 23:01:12 +02:00
committed by GitHub
parent d6b1d15e56
commit f943c4dd69
64 changed files with 137 additions and 1539 deletions
+14
View File
@@ -0,0 +1,14 @@
#include "doctest.h"
#include <Tactility/file/File.h>
using namespace tt;
TEST_CASE("findOrCreateDirectory can create a directory tree without prefix") {
CHECK_EQ(file::findOrCreateDirectory("test1/test1", 0777), true);
CHECK_EQ(file::deleteRecursively("test1"), true);
}
TEST_CASE("findOrCreateDirectory can create a directory tree with prefix") {
CHECK_EQ(file::findOrCreateDirectory("/tmp/test2", 0777), true);
CHECK_EQ(file::deleteRecursively("/tmp/test2"), true);
}