Skip to content

Commit 314baa5

Browse files
committed
ngci/tests: Cleanup handling of 85xx compiler exceptions
1 parent eb209b4 commit 314baa5

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

etc/tests.py

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,13 @@ def qemu_coverage(args, suite=None):
118118
k('g5_defconfig+4k', image, merge_config=g5_configs + ['4k-pages'])
119119

120120
# PPC_85xx
121-
if image != "korg@5.5.0":
122-
k('corenet32_smp_defconfig', image, merge_config=['debug-info-n'])
123-
b('qemu-e500mc', 'corenet32_smp_defconfig', image)
121+
ppc85xx_image = image
122+
if not image_at_least(image, ['fedora@31', 'korg@8.5.0']):
123+
# The 85xx builds hit gcc segfaults with earlier compilers, so use 8.5.0
124+
ppc85xx_image = 'korg@8.5.0'
125+
126+
k('corenet32_smp_defconfig', ppc85xx_image, merge_config=['debug-info-n'])
127+
b('qemu-e500mc', 'corenet32_smp_defconfig', ppc85xx_image)
124128

125129
# PPC_BOOK3S_32
126130
b('qemu-mac99', 'pmac32_defconfig', image)
@@ -215,12 +219,21 @@ def full_compile_test(args, suite=None):
215219
k('g5_defconfig', image, merge_config=g5_configs)
216220
# BOOK3E_64
217221
k('corenet64_smp_defconfig', image, merge_config=corenet64_configs)
222+
223+
ppc85xx_image = image
224+
if not image_at_least(image, ['fedora@31', 'korg@8.5.0']):
225+
# The 85xx builds hit gcc segfaults with earlier compilers, so use 8.5.0
226+
ppc85xx_image = 'korg@8.5.0'
227+
218228
# PPC_85xx, PPC_E500MC
219-
k('corenet32_smp_defconfig', image, merge_config=['debug-info-n'])
229+
k('corenet32_smp_defconfig', ppc85xx_image, merge_config=['debug-info-n'])
220230
# PPC_85xx, SMP=y, PPC_E500MC=n
221-
k('mpc85xx_smp_defconfig', image)
231+
k('mpc85xx_smp_defconfig', ppc85xx_image)
222232
# PPC_85xx, SMP=n
223-
k('mpc85xx_defconfig', image)
233+
k('mpc85xx_defconfig', ppc85xx_image)
234+
# PPC_85xx + RANDOMIZE_BASE
235+
k('mpc85xx_smp_defconfig+kaslr', ppc85xx_image, merge_config=['randomize-base-y'])
236+
224237
# PPC_BOOK3S_32
225238
k('pmac32_defconfig', image, merge_config=pmac32_configs)
226239
k('pmac32_defconfig+smp', image, merge_config=pmac32_configs + ['smp-y'])
@@ -315,10 +328,6 @@ def full_compile_test(args, suite=None):
315328
k(f'ppc64_defconfig+no{feature}', image, merge_config=[f'{feature}-n'])
316329
k(f'ppc64le_defconfig+no{feature}', image, merge_config=[f'{feature}-n'])
317330

318-
# PPC_85xx + RANDOMIZE_BASE
319-
# This hits gcc segfaults with earlier compilers, so use 8.5.0
320-
k('mpc85xx_smp_defconfig+kaslr', image.replace('korg@5.5.0', 'korg@8.5.0'), merge_config=['randomize-base-y'])
321-
322331
#########################################
323332
# selftests
324333
#########################################

0 commit comments

Comments
 (0)