mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-16 13:01:29 +00:00
autopkgtest: Run gcc-n's testuite, if it has one
This commit is contained in:
parent
3e1ee5a2ef
commit
f2456289ac
@ -311,6 +311,10 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
# gcc during the test, and libreoffice as an example for a libgcc user.
|
# gcc during the test, and libreoffice as an example for a libgcc user.
|
||||||
if src.startswith('gcc-'):
|
if src.startswith('gcc-'):
|
||||||
if re.match('gcc-\d$', src):
|
if re.match('gcc-\d$', src):
|
||||||
|
# add gcc's own tests, if it has any
|
||||||
|
srcinfo = self.britney.sources['unstable'][src]
|
||||||
|
if 'autopkgtest' in srcinfo.testsuite:
|
||||||
|
tests.append((src, ver))
|
||||||
for test in ['binutils', 'fglrx-installer', 'libreoffice', 'linux']:
|
for test in ['binutils', 'fglrx-installer', 'libreoffice', 'linux']:
|
||||||
try:
|
try:
|
||||||
tests.append((test, self.britney.sources['testing'][test][VERSION]))
|
tests.append((test, self.britney.sources['testing'][test][VERSION]))
|
||||||
|
@ -2013,6 +2013,21 @@ class T(TestBase):
|
|||||||
'linux': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING-ALWAYSFAIL'}})})[1]
|
'linux': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING-ALWAYSFAIL'}})})[1]
|
||||||
self.assertNotIn('notme 1', exc['gcc-5']['policy_info']['autopkgtest'])
|
self.assertNotIn('notme 1', exc['gcc-5']['policy_info']['autopkgtest'])
|
||||||
|
|
||||||
|
def test_gcc_hastest(self):
|
||||||
|
'''gcc triggers itself when it has a testsuite'''
|
||||||
|
|
||||||
|
self.data.add('gcc-7', False, {}, testsuite='autopkgtest')
|
||||||
|
|
||||||
|
# gcc-7 has passed before on i386 only, therefore ALWAYSFAIL on amd64
|
||||||
|
self.swift.set_results({'autopkgtest-series': {
|
||||||
|
'series/i386/g/gcc-7/20150101_100000@': (0, 'gcc-7 1', tr('passedbefore/1')),
|
||||||
|
}})
|
||||||
|
|
||||||
|
exc = self.do_test(
|
||||||
|
[('gcc-7', {'Source': 'gcc-7', 'Version': '2'}, 'autopkgtest')],
|
||||||
|
{'gcc-7': (False, {'gcc-7': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING'}})})[1]
|
||||||
|
self.assertIn('gcc-7', exc['gcc-7']['policy_info']['autopkgtest'])
|
||||||
|
|
||||||
def test_alternative_gcc(self):
|
def test_alternative_gcc(self):
|
||||||
'''alternative gcc does not trigger anything'''
|
'''alternative gcc does not trigger anything'''
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user