comparison tests/hghave.py @ 34401:13d3f8aaed87

tests: add "have" check for dpkg builddeps Differential Revision: https://phab.mercurial-scm.org/D879
author Kyle Lippincott <spectral@google.com>
date Sun, 01 Oct 2017 05:21:32 -0700
parents 200eadbcf0b0
children 15b561fffde5
comparison
equal deleted inserted replaced
34400:3d936da4f97b 34401:13d3f8aaed87
585 # the 'build-debs' package instead, which has a dependency on devscripts. 585 # the 'build-debs' package instead, which has a dependency on devscripts.
586 debuild = matchoutput('debuild --help', 586 debuild = matchoutput('debuild --help',
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'
593 600
594 @check("py3k", "running with Python 3.x") 601 @check("py3k", "running with Python 3.x")