shithub: openh264

Download patch

ref: 3550319a96bf71f59cd38f4cd01379b954928147
parent: 767260fa3ba6f82adb837351fd9f8c18fab2f76a
author: Ethan Hugg <[email protected]>
date: Fri Dec 13 08:09:59 EST 2013

Add make test to Travis

--- a/.travis.yml
+++ b/.travis.yml
@@ -6,5 +6,5 @@
 before_install:
  - sudo apt-get update -qq
  - sudo apt-get install -qq g++-4.6-multilib gcc-multilib libc6-dev-i386 lib32z1-dev
-script: make gtest-bootstrap && make
+script: make gtest-bootstrap && make && make test
 
--- a/Makefile
+++ b/Makefile
@@ -58,6 +58,8 @@
 
 CODEC_UNITTEST_LDFLAGS = -L. -lgtest -ldecoder -lcommon
 
+.PHONY: test
+
 all:	libraries binaries
 
 clean:
@@ -66,6 +68,9 @@
 
 gtest-bootstrap:
 	svn co https://googletest.googlecode.com/svn/trunk/ gtest
+
+test:
+	./codec_unittest
 
 include codec/common/targets.mk
 include codec/decoder/targets.mk