|
|
|
@ -2151,24 +2151,6 @@ class T(TestBase):
|
|
|
|
|
# Tests for special-cased packages
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
|
|
def test_gcc(self):
|
|
|
|
|
'''gcc only triggers some key packages'''
|
|
|
|
|
|
|
|
|
|
self.data.add('binutils', False, {}, testsuite='autopkgtest')
|
|
|
|
|
self.data.add('linux', False, {}, testsuite='autopkgtest')
|
|
|
|
|
self.data.add('notme', False, {'Depends': 'libgcc1'}, testsuite='autopkgtest')
|
|
|
|
|
|
|
|
|
|
# binutils has passed before on i386 only, therefore ALWAYSFAIL on amd64
|
|
|
|
|
self.swift.set_results({'autopkgtest-testing': {
|
|
|
|
|
'testing/i386/b/binutils/20150101_100000@': (0, 'binutils 1', tr('passedbefore/1')),
|
|
|
|
|
}})
|
|
|
|
|
|
|
|
|
|
exc = self.run_it(
|
|
|
|
|
[('libgcc1', {'Source': 'gcc-5', 'Version': '2'}, None)],
|
|
|
|
|
{'gcc-5': (False, {'binutils': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING'},
|
|
|
|
|
'linux': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING-ALWAYSFAIL'}})})[1]
|
|
|
|
|
self.assertNotIn('notme 1', exc['gcc-5']['policy_info']['autopkgtest'])
|
|
|
|
|
|
|
|
|
|
def test_gcc_hastest(self):
|
|
|
|
|
"""gcc triggers itself when it has a testsuite"""
|
|
|
|
|
|
|
|
|
@ -2184,17 +2166,6 @@ class T(TestBase):
|
|
|
|
|
{'gcc-7': (True, {'gcc-7': {'amd64': 'RUNNING-ALWAYSFAIL', 'i386': 'RUNNING-ALWAYSFAIL'}})})[1]
|
|
|
|
|
self.assertIn('gcc-7', exc['gcc-7']['policy_info']['autopkgtest'])
|
|
|
|
|
|
|
|
|
|
def test_alternative_gcc(self):
|
|
|
|
|
'''alternative gcc does not trigger anything'''
|
|
|
|
|
|
|
|
|
|
self.data.add('binutils', False, {}, testsuite='autopkgtest')
|
|
|
|
|
self.data.add('notme', False, {'Depends': 'libgcc1'}, testsuite='autopkgtest')
|
|
|
|
|
|
|
|
|
|
exc = self.run_it(
|
|
|
|
|
[('libgcc1', {'Source': 'gcc-snapshot', 'Version': '2'}, None)],
|
|
|
|
|
{'gcc-snapshot': (True, {})})[1]
|
|
|
|
|
self.assertEqual(exc['gcc-snapshot']['policy_info']['autopkgtest'], {'verdict': 'PASS'})
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
# Tests for non-default ADT_* configuration modes
|
|
|
|
|
################################################################
|
|
|
|
|