[mythtv-firehose] mythtv branch master updated by danielk. v0.27-pre2-680-g24c55f3

Git Repo Owner noreply at mythtv.org
Thu Feb 21 00:01:29 UTC 2013


The branch, master has been updated on the
mythtv repository by gitolite user danielk.
       via  24c55f3dcaf3d1a4da63d6348a3e9b2606122f49 (commit)
      from  86c22ed3d5c522bcecb88ecacd58104fc0dd6d8d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 24c55f3dcaf3d1a4da63d6348a3e9b2606122f49
Author:    Daniel Kristjansson <danielk at cuymedia.net> at Wed, 20 Feb 2013 08:40:34 -0500
Committer: Daniel Kristjansson <danielk at cuymedia.net> at Wed, 20 Feb 2013 18:53:36 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=24c55f3dcaf3d1a4da63d6348a3e9b2606122f49

Add test target to base makefile and the libs makefile.
This introduces a script called unittests.sh which locates all files
matching test_*.pro and then runs the tests those are expected to
generate and complains if either the tests fail or it can't find
the test executable. This script is run on both make test in the
mythtv directory and make test in the mythtv/libs directory.

The lib*/test directories have been added to the subdirs that
libs.pro compiles and a clean of the test_mythtimer.pro target has
been added. This allows a make in mythtv or mythtv/libs to compile
the unit test and a make clean to remove it. It would be nice to
have these targets work from mythtv/libs/libmythbase, but I don't
know how to do that with the current .pro file arrangement.

Note: This and the MythTimer unit test are intended as templates
for other unit tests. Any suggestions for improvement are welcome.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/Makefile                                    |    3 ++
 mythtv/libs/libmythbase/test/test.pro              |    9 +++++
 .../test/{ => test_mythtimer}/test_mythtimer.cpp   |    0
 .../test/{ => test_mythtimer}/test_mythtimer.h     |    0
 .../test/{ => test_mythtimer}/test_mythtimer.pro   |    8 +++--
 mythtv/libs/libs.pro                               |    7 ++++
 mythtv/programs/scripts/unittests.sh               |   35 ++++++++++++++++++++
 7 files changed, 59 insertions(+), 3 deletions(-)
 create mode 100644 mythtv/libs/libmythbase/test/test.pro
 rename mythtv/libs/libmythbase/test/{ => test_mythtimer}/test_mythtimer.cpp (100%)
 rename mythtv/libs/libmythbase/test/{ => test_mythtimer}/test_mythtimer.h (100%)
 rename mythtv/libs/libmythbase/test/{ => test_mythtimer}/test_mythtimer.pro (51%)
 create mode 100755 mythtv/programs/scripts/unittests.sh

-- 



More information about the mythtv-firehose mailing list