|
@@ -3,7 +3,7 @@
|
|
|
// Code licensed under the BSD License.
|
|
// Code licensed under the BSD License.
|
|
|
// http://www.anki3d.org/LICENSE
|
|
// http://www.anki3d.org/LICENSE
|
|
|
|
|
|
|
|
-#include "tests/framework/Framework.h"
|
|
|
|
|
|
|
+#include <Tests/Framework/Framework.h>
|
|
|
#include "anki/resource/ResourceFilesystem.h"
|
|
#include "anki/resource/ResourceFilesystem.h"
|
|
|
|
|
|
|
|
namespace anki
|
|
namespace anki
|
|
@@ -11,13 +11,13 @@ namespace anki
|
|
|
|
|
|
|
|
ANKI_TEST(Resource, ResourceFilesystem)
|
|
ANKI_TEST(Resource, ResourceFilesystem)
|
|
|
{
|
|
{
|
|
|
- printf("Test requires the data dir\n");
|
|
|
|
|
|
|
+ printf("Test requires the Data dir\n");
|
|
|
|
|
|
|
|
HeapAllocator<U8> alloc(allocAligned, nullptr);
|
|
HeapAllocator<U8> alloc(allocAligned, nullptr);
|
|
|
ResourceFilesystem fs(alloc);
|
|
ResourceFilesystem fs(alloc);
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- ANKI_TEST_EXPECT_NO_ERR(fs.addNewPath("data/dir/../dir/"));
|
|
|
|
|
|
|
+ ANKI_TEST_EXPECT_NO_ERR(fs.addNewPath("Tests/Data/Dir/../Dir/"));
|
|
|
ResourceFilePtr file;
|
|
ResourceFilePtr file;
|
|
|
ANKI_TEST_EXPECT_NO_ERR(fs.openFile("subdir0/hello.txt", file));
|
|
ANKI_TEST_EXPECT_NO_ERR(fs.openFile("subdir0/hello.txt", file));
|
|
|
StringAuto txt(alloc);
|
|
StringAuto txt(alloc);
|
|
@@ -26,7 +26,7 @@ ANKI_TEST(Resource, ResourceFilesystem)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- ANKI_TEST_EXPECT_NO_ERR(fs.addNewPath("./data/dir.ankizip"));
|
|
|
|
|
|
|
+ ANKI_TEST_EXPECT_NO_ERR(fs.addNewPath("./Tests/Data/Dir.ankizip"));
|
|
|
ResourceFilePtr file;
|
|
ResourceFilePtr file;
|
|
|
ANKI_TEST_EXPECT_NO_ERR(fs.openFile("subdir0/hello.txt", file));
|
|
ANKI_TEST_EXPECT_NO_ERR(fs.openFile("subdir0/hello.txt", file));
|
|
|
StringAuto txt(alloc);
|
|
StringAuto txt(alloc);
|