build: add test_wav_io target and exclude stress tests from test
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
14
makefile
14
makefile
@@ -2,7 +2,7 @@ CC = gcc
|
|||||||
CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L -Ilib -fsanitize=thread -g
|
CFLAGS = -Wall -Wextra -std=c99 -D_POSIX_C_SOURCE=200809L -Ilib -fsanitize=thread -g
|
||||||
LDFLAGS = -ljack -lm -lncurses -lpthread
|
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
|
jack-looper: main.o engine.o tui.o gui.o cli.o transport.o lib/microui.o wav_io.o
|
||||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
$(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
|
test_stress: test_stress.o engine.o transport.o wav_io.o
|
||||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
$(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
|
test_stress.o: test_stress.c engine.h tui.h transport.h
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(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
|
test_double_process.o: test_double_process.c engine.h transport.h
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(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
|
cli.o: cli.c cli.h engine.h transport.h
|
||||||
$(CC) $(CFLAGS) -c -o $@ $<
|
$(CC) $(CFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
.PHONY: all clean test
|
.PHONY: all clean test
|
||||||
|
|
||||||
clean:
|
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_engine
|
||||||
./test_tui
|
./test_tui
|
||||||
./test_cli
|
./test_cli
|
||||||
./test_double_process
|
./test_double_process
|
||||||
./test_stress
|
./test_wav_io
|
||||||
|
|||||||
Reference in New Issue
Block a user