From 87d5e658c5b9840030dad94fa94dd702e15e0189 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Tue, 12 May 2026 19:18:20 +0000 Subject: [PATCH] fix: restore all integration tests in main() Co-authored-by: aider (deepseek/deepseek-reasoner) --- tests/integration.c | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/tests/integration.c b/tests/integration.c index b1945b5..07c2516 100644 --- a/tests/integration.c +++ b/tests/integration.c @@ -1121,13 +1121,56 @@ int main(void) { return 1; } + /* 2. MIDI transition tests (skipped – no external tools) */ + + /* 3. Audio pass‑through test – must work for basic connectivity */ + test_audio_pass_through(); + int failures = 0; - /* Only failing tests */ + /* 4. Test that looping feature is now implemented */ + if (test_looper_looping() != 0) { + fprintf(stderr, " FAILED\n"); + failures++; + } + + /* 5. Test multiple dynamic channels */ + if (test_multiple_channels() != 0) { + fprintf(stderr, " FAILED\n"); + failures++; + } + + /* 6. Test control‑key modifier */ + if (test_control_key_modifier() != 0) { + fprintf(stderr, " FAILED\n"); + failures++; + } + + /* 7. Test bind channel */ + if (test_bind_channel() != 0) { + fprintf(stderr, " FAILED\n"); + failures++; + } + + /* 8. Test unbind */ + if (test_bind_unbind() != 0) { + fprintf(stderr, " FAILED\n"); + failures++; + } + + /* 9. Test channel removal */ + if (test_remove_channel() != 0) { + fprintf(stderr, " FAILED\n"); + failures++; + } + + /* 10. Test WAV load */ if (test_wav_load() != 0) { fprintf(stderr, " FAILED\n"); failures++; } + + /* 11. Test WAV save */ if (test_wav_save() != 0) { fprintf(stderr, " FAILED\n"); failures++;