diff --git a/ament_clang_format/package.xml b/ament_clang_format/package.xml index f69f5eea..fe3b4539 100644 --- a/ament_clang_format/package.xml +++ b/ament_clang_format/package.xml @@ -23,6 +23,7 @@ ament_copyright ament_flake8 ament_pep257 + ament_xmllint python3-pytest diff --git a/ament_clang_format/test/test_xmllint.py b/ament_clang_format/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_clang_format/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_clang_tidy/package.xml b/ament_clang_tidy/package.xml index b0007458..96ab334f 100644 --- a/ament_clang_tidy/package.xml +++ b/ament_clang_tidy/package.xml @@ -22,6 +22,7 @@ ament_copyright ament_flake8 ament_pep257 + ament_xmllint python3-pytest diff --git a/ament_clang_tidy/test/test_xmllint.py b/ament_clang_tidy/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_clang_tidy/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_cppcheck/package.xml b/ament_cppcheck/package.xml index acdf61ae..ccb652c7 100644 --- a/ament_cppcheck/package.xml +++ b/ament_cppcheck/package.xml @@ -24,6 +24,7 @@ ament_flake8 ament_pep257 ament_pycodestyle + ament_xmllint python3-pytest diff --git a/ament_cppcheck/test/test_xmllint.py b/ament_cppcheck/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_cppcheck/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_cpplint/package.xml b/ament_cpplint/package.xml index a9632eb9..a76be7fa 100644 --- a/ament_cpplint/package.xml +++ b/ament_cpplint/package.xml @@ -21,6 +21,7 @@ ament_copyright ament_flake8 ament_pep257 + ament_xmllint python3-pytest diff --git a/ament_cpplint/test/test_xmllint.py b/ament_cpplint/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_cpplint/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_lint_cmake/package.xml b/ament_lint_cmake/package.xml index a8627cfe..b7157c5f 100644 --- a/ament_lint_cmake/package.xml +++ b/ament_lint_cmake/package.xml @@ -21,6 +21,7 @@ ament_copyright ament_flake8 ament_pep257 + ament_xmllint python3-pytest diff --git a/ament_lint_cmake/test/test_xmllint.py b/ament_lint_cmake/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_lint_cmake/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_mypy/package.xml b/ament_mypy/package.xml index edc8adbb..905c39ac 100644 --- a/ament_mypy/package.xml +++ b/ament_mypy/package.xml @@ -18,6 +18,7 @@ python3-mypy ament_flake8 + ament_xmllint python3-pytest python3-pytest-mock diff --git a/ament_mypy/test/test_xmllint.py b/ament_mypy/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_mypy/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_pclint/package.xml b/ament_pclint/package.xml index ff8a9ce0..b38e1385 100644 --- a/ament_pclint/package.xml +++ b/ament_pclint/package.xml @@ -21,6 +21,7 @@ ament_copyright ament_flake8 ament_pep257 + ament_xmllint python3-pytest diff --git a/ament_pclint/test/test_xmllint.py b/ament_pclint/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_pclint/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_pycodestyle/package.xml b/ament_pycodestyle/package.xml index bd55956e..29de1740 100644 --- a/ament_pycodestyle/package.xml +++ b/ament_pycodestyle/package.xml @@ -20,6 +20,9 @@ python3-pycodestyle + ament_xmllint + python3-pytest + ament_python diff --git a/ament_pycodestyle/test/test_xmllint.py b/ament_pycodestyle/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_pycodestyle/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_pyflakes/package.xml b/ament_pyflakes/package.xml index 0604ee81..9f983268 100644 --- a/ament_pyflakes/package.xml +++ b/ament_pyflakes/package.xml @@ -21,6 +21,7 @@ pyflakes3 ament_pycodestyle + ament_xmllint python3-pytest diff --git a/ament_pyflakes/test/test_xmllint.py b/ament_pyflakes/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_pyflakes/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_uncrustify/package.xml b/ament_uncrustify/package.xml index 4d0d8bb1..00e616dd 100644 --- a/ament_uncrustify/package.xml +++ b/ament_uncrustify/package.xml @@ -24,6 +24,7 @@ ament_flake8 ament_pep257 ament_pycodestyle + ament_xmllint python3-pytest diff --git a/ament_uncrustify/test/test_xmllint.py b/ament_uncrustify/test/test_xmllint.py new file mode 100644 index 00000000..f46285e7 --- /dev/null +++ b/ament_uncrustify/test/test_xmllint.py @@ -0,0 +1,23 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +from ament_xmllint.main import main +import pytest + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors' diff --git a/ament_xmllint/test/test_xmllint.py b/ament_xmllint/test/test_xmllint.py new file mode 100644 index 00000000..274f7826 --- /dev/null +++ b/ament_xmllint/test/test_xmllint.py @@ -0,0 +1,29 @@ +# Copyright 2019 Open Source Robotics Foundation, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os +import sys + +from ament_xmllint.main import main +import pytest + + +sys.path.insert(0, os.path.dirname(os.path.dirname(__file__))) + + +@pytest.mark.linter +@pytest.mark.xmllint +def test_xmllint(): + rc = main(argv=[]) + assert rc == 0, 'Found errors'