File: rules

package info (click to toggle)
ros-image-common 1.12.0-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 848 kB
  • sloc: cpp: 3,264; xml: 187; python: 38; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export PYBUILD_CONFIGURE_ARGS=-DPYVER={version}
export PYBUILD_SYSTEM=cmake

# for tests
export ROS_HOME=/tmp/ros
export ROS_IP=127.0.0.1

ifeq (,$(filter $(DEB_BUILD_ARCH),s390x hppa powerpc ppc64 sparc64))
  TESTS=--before-test "cd {build_dir}; devel/env.sh make run_tests" --after-test "catkin_test_results {build_dir}"
else
  TESTS=--before-test "cd {build_dir}; devel/env.sh make run_tests"
endif

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_test:
	dh_auto_test -- ${TESTS}