2019-04-17 11:41:15 +00:00
|
|
|
# This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
#
|
|
|
|
# Copyright (C) 2014-2019 KiCad Developers, see AUTHORS.txt for contributors.
|
|
|
|
#
|
|
|
|
# This program 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 2
|
|
|
|
# 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 General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, you may find one here:
|
|
|
|
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
|
|
|
# or you may search the http://www.gnu.org website for the version 2 license,
|
|
|
|
# or you may write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
|
|
|
|
include(KiCadQABuildUtils)
|
|
|
|
|
2014-02-02 21:50:45 +00:00
|
|
|
if( KICAD_SCRIPTING_MODULES )
|
|
|
|
|
2019-04-17 12:57:21 +00:00
|
|
|
if( KICAD_TEST_XML_OUTPUT )
|
|
|
|
# To do this, you will need xmlrunner
|
|
|
|
set( PY_TEST_ARGS --xml=${CMAKE_CURRENT_BINARY_DIR}/python.xunit-results )
|
|
|
|
endif()
|
|
|
|
|
2018-07-09 14:03:02 +00:00
|
|
|
# Test that runs the QA tests through scripting
|
|
|
|
add_test( NAME qa_python
|
2019-04-17 12:57:21 +00:00
|
|
|
COMMAND ${PYTHON_EXECUTABLE} test.py ${PY_TEST_ARGS}
|
2014-02-02 21:50:45 +00:00
|
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
2018-07-09 14:03:02 +00:00
|
|
|
)
|
|
|
|
|
2019-04-17 12:57:21 +00:00
|
|
|
|
2018-07-09 14:03:02 +00:00
|
|
|
set_property( TEST qa_python
|
|
|
|
PROPERTY ENVIRONMENT "PYTHONPATH=${CMAKE_BINARY_DIR}/pcbnew${PYTHON_QA_PATH}"
|
|
|
|
)
|
2014-02-02 21:50:45 +00:00
|
|
|
|
|
|
|
endif()
|
2017-03-07 12:11:24 +00:00
|
|
|
|
2019-01-07 11:11:47 +00:00
|
|
|
# Shared QA helper libraries
|
2018-10-06 14:35:17 +00:00
|
|
|
add_subdirectory( qa_utils )
|
2019-01-11 22:03:45 +00:00
|
|
|
add_subdirectory( pcbnew_utils )
|
2018-11-07 13:55:20 +00:00
|
|
|
add_subdirectory( unit_test_utils )
|
2018-10-06 14:35:17 +00:00
|
|
|
|
2019-01-07 11:11:47 +00:00
|
|
|
# Unit tests
|
2018-09-25 11:11:10 +00:00
|
|
|
add_subdirectory( common )
|
2020-07-16 14:11:31 +00:00
|
|
|
add_subdirectory( gerbview )
|
2019-01-09 14:35:42 +00:00
|
|
|
add_subdirectory( eeschema )
|
2019-04-15 17:09:27 +00:00
|
|
|
add_subdirectory( libs )
|
2020-07-16 14:11:31 +00:00
|
|
|
add_subdirectory( pcbnew )
|
2019-04-18 09:09:04 +00:00
|
|
|
add_subdirectory( utils/kicad2step )
|
2020-07-27 15:45:15 +00:00
|
|
|
# add_subdirectory( libeval_compiler )
|
2020-07-15 16:21:09 +00:00
|
|
|
add_subdirectory( drc_proto )
|
2019-04-15 17:09:27 +00:00
|
|
|
|
2018-12-24 14:16:20 +00:00
|
|
|
# Utility/debugging/profiling programs
|
|
|
|
add_subdirectory( common_tools )
|
2019-01-22 14:47:03 +00:00
|
|
|
add_subdirectory( pcbnew_tools )
|
2019-01-07 11:11:47 +00:00
|
|
|
|
2020-09-04 23:19:01 +00:00
|
|
|
|