diff --git a/tests/integration.c b/tests/integration.c index 0e65e27..4877e81 100644 --- a/tests/integration.c +++ b/tests/integration.c @@ -4,6 +4,7 @@ #include #include #include +#include /* * Integration test for the JACK looper. @@ -52,6 +53,14 @@ int main(void) { printf("Waiting for looper (pid %d) to register ports...\n", (int)pid); sleep(3); /* generous, JACK ports must be visible */ + /* check jack_midi_send availability */ + if (system("which jack_midi_send >/dev/null 2>&1") != 0) { + fprintf(stderr, "FATAL: jack_midi_send not available (install jack‑tools)\n"); + kill(pid, SIGTERM); + waitpid(pid, NULL, 0); + return 1; + } + /* 3. send note‑on messages (toggle state machine) */ printf("Sending first note‑on → IDLE → RECORD\n"); run_cmd("jack_midi_send -c looper:control -m '90 01 7f' 2>/dev/null || echo 'jack_midi_send not available'");