from pathlib import Path


root = Path(__file__).resolve().parents[1]
installer = (root / "dependencies" / "auto_install.sh").read_text(encoding="utf-8")
cmake_test = (root / "test" / "test_cmake_preparation.sh").read_text(encoding="utf-8")

assert "pwd -P" in installer
assert "/opt/ros/humble" not in installer
assert "MTRAN_ROS_PREFIX" not in installer
assert "/opt/ros/humble" not in cmake_test
assert "ROS_DISTRO" in cmake_test
