Index: ps/trunk/source/graphics/tests/test_MapGenerator.h =================================================================== --- ps/trunk/source/graphics/tests/test_MapGenerator.h +++ ps/trunk/source/graphics/tests/test_MapGenerator.h @@ -38,6 +38,12 @@ void test_mapgen_scripts() { + if (!VfsDirectoryExists(L"maps/random/tests/")) + { + debug_printf("Skipping map generator tests (can't find binaries/data/mods/public/maps/random/tests/)\n"); + return; + } + VfsPaths paths; TS_ASSERT_OK(vfs::GetPathnames(g_VFS, L"maps/random/tests/", L"test_*.js", paths)); Index: ps/trunk/source/simulation2/components/tests/test_scripts.h =================================================================== --- ps/trunk/source/simulation2/components/tests/test_scripts.h +++ ps/trunk/source/simulation2/components/tests/test_scripts.h @@ -58,6 +58,12 @@ void test_global_scripts() { + if (!VfsDirectoryExists(L"globalscripts/tests/")) + { + debug_printf("Skipping globalscripts tests (can't find binaries/data/mods/public/globalscripts/tests/)\n"); + return; + } + VfsPaths paths; TS_ASSERT_OK(vfs::GetPathnames(g_VFS, L"globalscripts/tests/", L"test_*.js", paths)); for (const VfsPath& path : paths) @@ -73,7 +79,7 @@ { if (!VfsFileExists(L"simulation/components/tests/setup.js")) { - debug_printf("WARNING: Skipping component scripts tests (can't find binaries/data/mods/public/simulation/components/tests/setup.js)\n"); + debug_printf("Skipping component scripts tests (can't find binaries/data/mods/public/simulation/components/tests/setup.js)\n"); return; }