move engine to engine/

This commit is contained in:
Loic Coenen
2026-05-13 17:55:59 +00:00
parent 10d0269a5a
commit f3dde6b668
38 changed files with 3141 additions and 0 deletions

32
engine/tests/main.c Normal file
View File

@@ -0,0 +1,32 @@
#include "test_common.h"
/* Declare test group functions */
int test_audio(void);
int test_loop(void);
int test_channel(void);
int test_scene_all(void);
int test_fifo(void);
int main(void) {
if (system("test -x ./looper") != 0) {
fprintf(stderr, "FATAL: looper binary not found\n");
return 1;
}
int failures = 0;
/* Audio passthrough (nonfatal) */
test_audio();
failures += test_loop();
failures += test_channel();
failures += test_scene_all();
failures += test_fifo();
if (failures > 0) {
fprintf(stderr, "%d test(s) FAILED\n", failures);
return 1;
}
printf("All tests completed successfully.\n");
return 0;
}