Mercurial > hg > qm-dsp
comparison tests/Makefile @ 451:3f913390bcf2
(Incomplete) unit tests for chroma and key estimation
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 23 May 2019 13:29:02 +0100 |
parents | 1f3244a6884c |
children | 285f18c0992a |
comparison
equal
deleted
inserted
replaced
446:4852840b8a3c | 451:3f913390bcf2 |
---|---|
3 CXXFLAGS := -I.. -Wall -Wextra -std=c++11 -g $(CXXFLAGS) | 3 CXXFLAGS := -I.. -Wall -Wextra -std=c++11 -g $(CXXFLAGS) |
4 | 4 |
5 LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework -lpthread | 5 LDFLAGS := $(LDFLAGS) -lboost_unit_test_framework -lpthread |
6 LIBS := ../libqm-dsp.a | 6 LIBS := ../libqm-dsp.a |
7 | 7 |
8 TESTS := test-mathutilities test-window test-filter test-fft test-dct test-pvoc test-resampler test-medianfilter | 8 TESTS := test-mathutilities test-window test-filter test-fft test-dct test-pvoc test-resampler test-medianfilter test-getkeymode test-chromagram |
9 | 9 |
10 VG := valgrind -q | 10 VG := valgrind -q |
11 | 11 |
12 all: $(TESTS) | 12 all: $(TESTS) |
13 for t in $(TESTS); do echo "Running $$t"; $(VG) ./"$$t" || exit 1; done | 13 # for t in $(TESTS); do echo "Running $$t"; $(VG) ./"$$t" || exit 1; done |
14 for t in $(TESTS); do echo "Running $$t"; ./"$$t" || exit 1; done | |
14 | 15 |
15 test-medianfilter: TestMedianFilter.o $(LIBS) | 16 test-medianfilter: TestMedianFilter.o $(LIBS) |
16 $(CXX) -o $@ $^ $(LDFLAGS) | 17 $(CXX) -o $@ $^ $(LDFLAGS) |
17 | 18 |
18 test-mathutilities: TestMathUtilities.o $(LIBS) | 19 test-mathutilities: TestMathUtilities.o $(LIBS) |
34 $(CXX) -o $@ $^ $(LDFLAGS) | 35 $(CXX) -o $@ $^ $(LDFLAGS) |
35 | 36 |
36 test-resampler: TestResampler.o $(LIBS) | 37 test-resampler: TestResampler.o $(LIBS) |
37 $(CXX) -o $@ $^ $(LDFLAGS) | 38 $(CXX) -o $@ $^ $(LDFLAGS) |
38 | 39 |
40 test-chromagram: TestChromagram.o $(LIBS) | |
41 $(CXX) -o $@ $^ $(LDFLAGS) | |
42 | |
43 test-getkeymode: TestGetKeyMode.o $(LIBS) | |
44 $(CXX) -o $@ $^ $(LDFLAGS) | |
45 | |
39 TestMathUtilities.o: $(LIBS) | 46 TestMathUtilities.o: $(LIBS) |
40 TestMedianFilter.o: $(LIBS) | 47 TestMedianFilter.o: $(LIBS) |
41 TestWindow.o: $(LIBS) | 48 TestWindow.o: $(LIBS) |
42 TestFilter.o: $(LIBS) | 49 TestFilter.o: $(LIBS) |
43 TestFFT.o: $(LIBS) | 50 TestFFT.o: $(LIBS) |
44 TestDCT.o: $(LIBS) | 51 TestDCT.o: $(LIBS) |
45 TestPhaseVocoder.o: $(LIBS) | 52 TestPhaseVocoder.o: $(LIBS) |
46 TestResampler.o: $(LIBS) | 53 TestResampler.o: $(LIBS) |
54 TestChromagram.o: $(LIBS) | |
55 TestGetKeyMode.o: $(LIBS) | |
47 | 56 |
48 clean: | 57 clean: |
49 rm -f *.o $(TESTS) | 58 rm -f *.o $(TESTS) |
50 | 59 |