Skip to content

Commit baa5593

Browse files
authored
Add in ament_xmllint for the ament_python packages. (#397)
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
1 parent 8aeda25 commit baa5593

File tree

18 files changed

+216
-0
lines changed

18 files changed

+216
-0
lines changed

rclpy/actions/minimal_action_client/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<test_depend>ament_copyright</test_depend>
2323
<test_depend>ament_flake8</test_depend>
2424
<test_depend>ament_pep257</test_depend>
25+
<test_depend>ament_xmllint</test_depend>
2526
<test_depend>python3-pytest</test_depend>
2627

2728
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/actions/minimal_action_server/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<test_depend>ament_copyright</test_depend>
2222
<test_depend>ament_flake8</test_depend>
2323
<test_depend>ament_pep257</test_depend>
24+
<test_depend>ament_xmllint</test_depend>
2425
<test_depend>python3-pytest</test_depend>
2526

2627
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/executors/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<test_depend>ament_copyright</test_depend>
2020
<test_depend>ament_flake8</test_depend>
2121
<test_depend>ament_pep257</test_depend>
22+
<test_depend>ament_xmllint</test_depend>
2223
<test_depend>python3-pytest</test_depend>
2324

2425
<export>

rclpy/executors/test/test_xmllint.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/guard_conditions/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
<test_depend>ament_copyright</test_depend>
1919
<test_depend>ament_flake8</test_depend>
2020
<test_depend>ament_pep257</test_depend>
21+
<test_depend>ament_xmllint</test_depend>
2122
<test_depend>python3-pytest</test_depend>
2223

2324
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/services/minimal_client/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<test_depend>ament_copyright</test_depend>
2323
<test_depend>ament_flake8</test_depend>
2424
<test_depend>ament_pep257</test_depend>
25+
<test_depend>ament_xmllint</test_depend>
2526
<test_depend>python3-pytest</test_depend>
2627

2728
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/services/minimal_service/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
<test_depend>ament_copyright</test_depend>
2323
<test_depend>ament_flake8</test_depend>
2424
<test_depend>ament_pep257</test_depend>
25+
<test_depend>ament_xmllint</test_depend>
2526
<test_depend>python3-pytest</test_depend>
2627

2728
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/topics/minimal_publisher/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<test_depend>ament_copyright</test_depend>
2222
<test_depend>ament_flake8</test_depend>
2323
<test_depend>ament_pep257</test_depend>
24+
<test_depend>ament_xmllint</test_depend>
2425
<test_depend>python3-pytest</test_depend>
2526

2627
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/topics/minimal_subscriber/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<test_depend>ament_copyright</test_depend>
2222
<test_depend>ament_flake8</test_depend>
2323
<test_depend>ament_pep257</test_depend>
24+
<test_depend>ament_xmllint</test_depend>
2425
<test_depend>python3-pytest</test_depend>
2526

2627
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

rclpy/topics/pointcloud_publisher/package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<test_depend>ament_copyright</test_depend>
2222
<test_depend>ament_flake8</test_depend>
2323
<test_depend>ament_pep257</test_depend>
24+
<test_depend>ament_xmllint</test_depend>
2425
<test_depend>python3-pytest</test_depend>
2526

2627
<export>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright 2019 Open Source Robotics Foundation, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from ament_xmllint.main import main
16+
import pytest
17+
18+
19+
@pytest.mark.linter
20+
@pytest.mark.xmllint
21+
def test_xmllint():
22+
rc = main(argv=[])
23+
assert rc == 0, 'Found errors'

0 commit comments

Comments
 (0)