mirror of
https://github.com/wentasah/ros2nix.git
synced 2025-06-09 15:52:23 +03:00
Add test for --use-per-package-src
This commit is contained in:
parent
5053709228
commit
83c13b8209
1 changed files with 9 additions and 0 deletions
|
@ -113,3 +113,12 @@ load common.bash
|
||||||
assert_file_not_contains ./ros-node.nix library-patch\.patch
|
assert_file_not_contains ./ros-node.nix library-patch\.patch
|
||||||
nix-build -A rosPackages.jazzy.ros-node
|
nix-build -A rosPackages.jazzy.ros-node
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "--use-per-package-src" {
|
||||||
|
git clone https://github.com/wentasah/ros2nix
|
||||||
|
ros2nix --output-as-nix-pkg-name --fetch --use-per-package-src $(find "ros2nix/test/ws/src" -name package.xml)
|
||||||
|
nix-build -A rosPackages.jazzy.ros-node
|
||||||
|
run ./result/lib/ros_node/node
|
||||||
|
assert_success
|
||||||
|
assert_line --partial "hello world"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue