Skip to content

Commit

Permalink
Move test inputs to subdirectory
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll committed Dec 20, 2024
1 parent 5d04b37 commit 56426d1
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bazel/integration_test
1 change: 0 additions & 1 deletion bazel/.bazelignore

This file was deleted.

12 changes: 6 additions & 6 deletions bazel/integration_test/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ load("@bazel_skylib//rules:diff_test.bzl", "diff_test")

xacro_file(
name = "sample1",
src = "sample1.xml.xacro",
src = "inputs/sample1.xml.xacro",
)

xacro_file(
name = "sample2",
src = "sample2.xml.xacro",
data = ["box.xml"]
src = "inputs/sample2.xml.xacro",
data = ["inputs/box.xml"]
)

xacro_file(
name = "complex_example",
src = "complex.xml.xacro",
src = "inputs/complex.xml.xacro",
out = "my_complex_model.xml",
deps = [":sample1"],
extra_args = ["special_argument:=foo"]
)

xacro_file(
name = "conditional_default",
src = "conditional.xml.xacro",
src = "inputs/conditional.xml.xacro",
out = "conditional_default.xml"
)

xacro_file(
name = "conditional_false",
src = "conditional.xml.xacro",
src = "inputs/conditional.xml.xacro",
out = "conditional_false.xml",
extra_args = ["myarg:=false"]
)
Expand Down
2 changes: 1 addition & 1 deletion bazel/integration_test/expected/conditional_default.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from conditional.xml.xacro | -->
<!-- | This document was autogenerated by xacro from inputs/conditional.xml.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<root>
Expand Down
2 changes: 1 addition & 1 deletion bazel/integration_test/expected/conditional_false.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from conditional.xml.xacro | -->
<!-- | This document was autogenerated by xacro from inputs/conditional.xml.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<root>
Expand Down
2 changes: 1 addition & 1 deletion bazel/integration_test/expected/my_complex_model.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from complex.xml.xacro | -->
<!-- | This document was autogenerated by xacro from inputs/complex.xml.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<root>
Expand Down
2 changes: 1 addition & 1 deletion bazel/integration_test/expected/sample1.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from sample1.xml.xacro | -->
<!-- | This document was autogenerated by xacro from inputs/sample1.xml.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<root>
Expand Down
2 changes: 1 addition & 1 deletion bazel/integration_test/expected/sample2.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" ?>
<!-- =================================================================================== -->
<!-- | This document was autogenerated by xacro from sample2.xml.xacro | -->
<!-- | This document was autogenerated by xacro from inputs/sample2.xml.xacro | -->
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | -->
<!-- =================================================================================== -->
<root>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 56426d1

Please sign in to comment.