2014-04-07 12:38:09 +00:00
|
|
|
# Makefile.am for anaconda tests
|
2011-01-18 09:24:57 +00:00
|
|
|
#
|
2014-04-07 12:38:09 +00:00
|
|
|
# Copyright (C) 2013 Red Hat, Inc.
|
2011-01-18 09:24:57 +00:00
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License as published
|
|
|
|
# by the Free Software Foundation; either version 2.1 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program 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 Lesser General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
# This Makefile is non-recursive so that all tests can easily be run with the
|
|
|
|
# same python environment. $top_srcdir and $top_builddir are added to the
|
|
|
|
# environment so that tests can get their bearings. Tests need to be aware that
|
|
|
|
# they may be run from within an arbitrary working directory.
|
|
|
|
#
|
|
|
|
# While automake claims that it doesn't support wildcards anywhere, they really
|
|
|
|
# mean it with the parallel test harness. Rather than reverting back to the
|
|
|
|
# serial harness, all of the nosetests-based checks will be run serially by
|
|
|
|
# nosetests.sh. This script can be run in parallel with the other test scripts,
|
|
|
|
# such as pylint.
|
|
|
|
#
|
|
|
|
# nosetests will be run for any python files found in a directory matching *_tests
|
|
|
|
|
|
|
|
AM_TESTS_ENVIRONMENT = top_srcdir="$(top_srcdir)" top_builddir="$(top_builddir)" ; . $(srcdir)/testenv.sh ;
|
|
|
|
TEST_EXTENSIONS = .sh
|
|
|
|
|
2017-01-09 02:09:07 +00:00
|
|
|
# files necessary for running the tests (make ci) from a tarball
|
|
|
|
EXTRA_DIST = README.rst usercustomize.py
|
|
|
|
|
|
|
|
# Also add translation-canary for canary_tests.sh
|
|
|
|
EXTRA_DIST += $(top_srcdir)/translation-canary/translation_canary/*.py \
|
|
|
|
$(top_srcdir)/translation-canary/translation_canary/*/*.py
|
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
# Test scripts need to be listed both here and in TESTS
|
2016-04-10 04:00:00 +00:00
|
|
|
dist_check_SCRIPTS = $(srcdir)/glade/*.py \
|
2015-03-23 11:36:12 +00:00
|
|
|
$(srcdir)/lib/*.py \
|
|
|
|
$(srcdir)/lib/*.sh \
|
2014-04-07 12:38:09 +00:00
|
|
|
nosetests.sh \
|
2016-04-10 04:00:00 +00:00
|
|
|
nosetests_root.sh \
|
2017-01-09 02:09:07 +00:00
|
|
|
run_gui_tests.sh \
|
2016-04-10 04:00:00 +00:00
|
|
|
pylint/runpylint.py \
|
2015-03-23 11:36:12 +00:00
|
|
|
cppcheck/runcppcheck.sh \
|
2014-04-07 12:38:09 +00:00
|
|
|
testenv.sh \
|
2017-01-09 02:09:07 +00:00
|
|
|
$(srcdir)/gettext_tests/*.py \
|
|
|
|
gettext_tests/canary_tests.sh \
|
2015-03-23 11:36:12 +00:00
|
|
|
storage/run_storage_tests.py \
|
2015-05-30 11:20:59 +00:00
|
|
|
install/run_install_test.sh \
|
2017-01-09 02:09:07 +00:00
|
|
|
$(srcdir)/gui/*.py \
|
2015-03-23 11:36:12 +00:00
|
|
|
$(srcdir)/storage/cases/*.py \
|
2014-04-07 12:38:09 +00:00
|
|
|
$(srcdir)/*_tests/*.py
|
2011-01-18 09:24:57 +00:00
|
|
|
|
2014-04-07 12:38:09 +00:00
|
|
|
TESTS = nosetests.sh \
|
2016-04-10 04:00:00 +00:00
|
|
|
pylint/runpylint.py \
|
2015-03-23 11:36:12 +00:00
|
|
|
cppcheck/runcppcheck.sh \
|
2017-01-09 02:09:07 +00:00
|
|
|
gettext_tests/click.py \
|
|
|
|
gettext_tests/style_guide.py \
|
|
|
|
gettext_tests/contexts.py \
|
|
|
|
gettext_tests/canary_tests.sh \
|
2015-03-23 11:36:12 +00:00
|
|
|
storage/run_storage_tests.py \
|
2017-01-09 02:09:07 +00:00
|
|
|
glade/run_glade_tests.py
|
2015-03-23 11:36:12 +00:00
|
|
|
|
|
|
|
clean-local:
|
|
|
|
-rm -rf pylint/.pylint.d
|