Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@mozilla.com>2015-12-29 10:37:49 +0300
committerRalph Giles <giles@mozilla.com>2016-01-04 21:18:20 +0300
commitcf902dbb1a0561283b9cc8558f83074a647c00d8 (patch)
tree1d739900330ee6a70e86f1c5bf57c2ae581fe3fc /Makefile.unix
parent36d362287546323cabb42d745a4c9bd570c5d3b5 (diff)
Add a check target to the static makefiles. r=ron
Diffstat (limited to 'Makefile.unix')
-rw-r--r--Makefile.unix9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.unix b/Makefile.unix
index 04f10194..b13230e8 100644
--- a/Makefile.unix
+++ b/Makefile.unix
@@ -106,11 +106,16 @@ TESTOPUSPADDING_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(TESTOPUSPADDING_SRCS_C))
OPUSCOMPARE_SRCS_C = src/opus_compare.c
OPUSCOMPARE_OBJS := $(patsubst %.c,%$(OBJSUFFIX),$(OPUSCOMPARE_SRCS_C))
+TESTS := test_opus_api test_opus_decode test_opus_encode test_opus_padding
+
# Rules
-all: lib opus_demo opus_compare test_opus_api test_opus_decode test_opus_encode test_opus_padding
+all: lib opus_demo opus_compare $(TESTS)
lib: $(TARGET)
+check: all
+ for test in $(TESTS); do ./$$test; done
+
$(TARGET): $(OBJS)
$(ARCHIVE.cmdline)
@@ -151,4 +156,4 @@ clean:
$(OBJS) $(OPUSDEMO_OBJS) $(OPUSCOMPARE_OBJS) $(TESTOPUSAPI_OBJS) \
$(TESTOPUSDECODE_OBJS) $(TESTOPUSENCODE_OBJS) $(TESTOPUSPADDING_OBJS)
-.PHONY: all lib clean force
+.PHONY: all lib clean force check