##// END OF EJS Templates
tests: add "have" check for dpkg builddeps...
Kyle Lippincott -
r34402:13d3f8aa default
parent child Browse files
Show More
@@ -587,6 +587,13 b' def has_debhelper():'
587 br'to run debian/rules with given parameter')
587 br'to run debian/rules with given parameter')
588 return dpkg and dh and dh_py2 and debuild
588 return dpkg and dh and dh_py2 and debuild
589
589
590 @check("debdeps",
591 "debian build dependencies (run dpkg-checkbuilddeps in contrib/)")
592 def has_debdeps():
593 # just check exit status (ignoring output)
594 path = '%s/../contrib/debian/control' % os.environ['TESTDIR']
595 return matchoutput('dpkg-checkbuilddeps %s' % path, br'')
596
590 @check("demandimport", "demandimport enabled")
597 @check("demandimport", "demandimport enabled")
591 def has_demandimport():
598 def has_demandimport():
592 return os.environ.get('HGDEMANDIMPORT') != 'disable'
599 return os.environ.get('HGDEMANDIMPORT') != 'disable'
@@ -1,4 +1,4 b''
1 #require test-repo slow debhelper
1 #require test-repo slow debhelper debdeps
2
2
3 $ . "$TESTDIR/helpers-testrepo.sh"
3 $ . "$TESTDIR/helpers-testrepo.sh"
4 $ testrepohgenv
4 $ testrepohgenv
General Comments 0
You need to be logged in to leave comments. Login now