From da88493866f75ba475de124d0119cf651fb45d36 Mon Sep 17 00:00:00 2001 From: Loic Coenen Date: Sat, 2 May 2026 10:53:44 +0000 Subject: [PATCH] build: add test_wav_io target and exclude stress tests from test Co-authored-by: aider (deepseek/deepseek-coder) --- makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index d1662e8..5a96c5c 100644 --- a/makefile +++ b/makefile @@ -2,7 +2,7 @@ CC = gcc CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L -Ilib -fsanitize=thread -g LDFLAGS = -ljack -lm -lncurses -lpthread -all: jack-looper test_engine test_tui test_gui test_cli test_stress +all: jack-looper test_engine test_tui test_gui test_cli test_stress test_wav_io jack-looper: main.o engine.o tui.o gui.o cli.o transport.o lib/microui.o wav_io.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) @@ -25,6 +25,9 @@ test_double_process: test_double_process.o engine.o transport.o wav_io.o test_stress: test_stress.o engine.o transport.o wav_io.o $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) +test_wav_io: test_wav_io.o wav_io.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) + test_stress.o: test_stress.c engine.h tui.h transport.h $(CC) $(CFLAGS) -c -o $@ $< @@ -64,17 +67,20 @@ test_cli.o: test_cli.c engine.h transport.h test_double_process.o: test_double_process.c engine.h transport.h $(CC) $(CFLAGS) -c -o $@ $< +test_wav_io.o: test_wav_io.c wav_io.h + $(CC) $(CFLAGS) -c -o $@ $< + cli.o: cli.c cli.h engine.h transport.h $(CC) $(CFLAGS) -c -o $@ $< .PHONY: all clean test clean: - rm -f *.o lib/microui.o wav_io.o jack-looper test_engine test_tui test_gui test_cli test_double_process test_stress + rm -f *.o lib/microui.o wav_io.o jack-looper test_engine test_tui test_gui test_cli test_double_process test_stress test_wav_io -test: test_engine test_tui test_cli test_double_process test_stress +test: test_engine test_tui test_cli test_double_process test_wav_io ./test_engine ./test_tui ./test_cli ./test_double_process - ./test_stress + ./test_wav_io