summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-01-28 10:12:54 +0100
committerskal <pascal.massimino@gmail.com>2026-01-28 10:12:54 +0100
commit1d72e3b99ba8cd7bb243a3ae79c0546e0d385d95 (patch)
tree2790990b52d29713276f828ed98394c7a70347d5 /src/tests
parenta52b8909496b71e4d60a85a11de8b7364521081e (diff)
feat(assets): Separate demo and test asset lists
Renamed demo assets to 'demo_assets.txt' and created 'test_assets_list.txt' for AssetManagerTest to prevent interference. - Updated CMakeLists.txt to generate separate headers for demo and test. - Updated test_assets.cc to conditionally include the test-specific header. - Incorporated gen_assets.sh into the 'final' target.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_assets.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/test_assets.cc b/src/tests/test_assets.cc
index 606c7a7..5e0725e 100644
--- a/src/tests/test_assets.cc
+++ b/src/tests/test_assets.cc
@@ -2,7 +2,12 @@
// It tests the asset manager's ability to retrieve packed data.
// Verifies data integrity and size reporting.
+#ifdef USE_TEST_ASSETS
+#include "test_assets.h"
+#else
#include "assets.h"
+#endif
+
#include <assert.h>
#include <stdio.h>
#include <string.h>