File: rules

package info (click to toggle)
libpoe-perl 2%3A1.3670-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,996 kB
  • ctags: 1,416
  • sloc: perl: 22,865; makefile: 9
file content (16 lines) | stat: -rwxr-xr-x 451 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

PERL    ?= /usr/bin/perl

%:
	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:
	AUTOMATED_TESTING=1 dh_auto_test