File: rules

package info (click to toggle)
libpoe-loop-tk-perl 1.305-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 112 kB
  • sloc: perl: 441; makefile: 8; sh: 2
file content (14 lines) | stat: -rwxr-xr-x 407 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	# Run network tests only if localhost is reachable, the perl snippet touch
	# run_network_tests if the loopback interface is available.
	perl -MNet::Ping -e '(Net::Ping->new()->ping("127.0.0.1", 1)) ? \
		system("touch run_network_tests") : system("rm -rf run_network_tests");'
	dh_auto_configure

override_dh_auto_test:
	xvfb-run -a dh_auto_test