From 68126a4b82585116bf8c08e13122ac0e21af2915 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Sun, 22 Dec 2024 22:24:58 +0100 Subject: [PATCH] Add test for --fetch --- test/test.bats | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test.bats b/test/test.bats index 26cf121..ac0d5bc 100644 --- a/test/test.bats +++ b/test/test.bats @@ -72,3 +72,10 @@ setup() { run -2 ros2nix --compare ws/src/{library,ros_node}/package.xml assert_line --partial "Cannot read ws/src/ros_node/package.nix" } + +@test "--fetch from github over https" { + git clone https://github.com/wentasah/ros2nix + ros2nix --output-as-nix-pkg-name --fetch $(find "ros2nix/test/ws/src" -name package.xml) + cat ros-node.nix + nix-build -A rosPackages.jazzy.ros-node +}