Skip to content

Commit

Permalink
TESTS: Add unit tests for our utility image functions
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMcCoy committed Feb 25, 2017
1 parent a6c0336 commit 4bdd6a0
Show file tree
Hide file tree
Showing 4 changed files with 459 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Makefile.am.cmake
/tests/common/testfile_*
/tests/common/test_*
/tests/aurora/test_*
/tests/images/test_*

# Unix binary
/src/xoreos
Expand Down
33 changes: 33 additions & 0 deletions tests/images/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# xoreos - A reimplementation of BioWare's Aurora engine
#
# xoreos is the legal property of its developers, whose names
# can be found in the AUTHORS file distributed with this source
# distribution.
#
# xoreos is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# xoreos is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with xoreos. If not, see <http://www.gnu.org/licenses/>.

# Unit tests for the image decoders in the Graphics namespace.

images_LIBS = \
$(test_LIBS) \
src/graphics/libgraphics.la \
src/aurora/libaurora.la \
src/common/libcommon.la \
tests/version/libversion.la \
$(LDADD)

check_PROGRAMS += tests/images/test_util
tests_images_test_util_SOURCES = tests/images/util.cpp
tests_images_test_util_LDADD = $(images_LIBS)
tests_images_test_util_CXXFLAGS = $(test_CXXFLAGS)

0 comments on commit 4bdd6a0

Please sign in to comment.