@@ -388,3 +388,65 @@ def qemu_kasan(args, suite=None):
388388 # script='qemu-pseries+p9+kvm+fedora34', tests=[test], cmdline='disable_radix')
389389
390390 return suite
391+
392+
393+ def std_boot (args , hostname , defconfig , merge_configs , suite = None ):
394+ images = args .images
395+ if not images :
396+ images = [DEFAULT_NEW_IMAGE ]
397+
398+ if suite is None :
399+ suite = TestSuite (hostname )
400+
401+ for image in images :
402+ suite .add_kernel (defconfig , image , merge_config = merge_configs )
403+ suite .add_boot (hostname , defconfig , image )
404+
405+ return suite
406+
407+
408+ def std_boot_and_test (args , hostname , defconfig , merge_configs , suite = None ):
409+ images = args .images
410+ if not images :
411+ images = [DEFAULT_NEW_IMAGE ]
412+
413+ if suite is None :
414+ suite = TestSuite (hostname )
415+
416+ ppctests = suite .add_selftest ('ubuntu@24.04' , 'ppc64le' , 'ppctests' )
417+
418+ exclude = []
419+ # Tends to timeout
420+ exclude .append ('powerpc/signal:sigfuz' )
421+ # Requires certain hardware
422+ exclude .append ('powerpc/eeh:eeh-basic.sh' )
423+ # Not always reliable depending on firmware settings etc.
424+ exclude .append ('powerpc/security:spectre_v2' )
425+ # Flakey
426+ exclude .append ('powerpc/pmu:count_stcx_fail' )
427+
428+ tests = [SelftestsConfig (ppctests , 'powerpc' , exclude )]
429+
430+ for image in images :
431+ suite .add_kernel (defconfig , image , merge_config = merge_configs )
432+ suite .add_boot (hostname , defconfig , image , tests = tests )
433+
434+ return suite
435+
436+
437+ def ltcppm1 (args , suite = None ):
438+ return std_boot (args , 'ltcppm1.aus.stglabs.ibm.com' , 'powernv_defconfig' , powernv_configs , suite )
439+
440+ def ltcppm2 (args , suite = None ):
441+ return std_boot (args , 'ltcppm2.aus.stglabs.ibm.com' , 'ppc64le_guest_config' , guest_configs , suite )
442+
443+ def ltcppm3 (args , suite = None ):
444+ return std_boot_and_test (args , 'ltcppm3.aus.stglabs.ibm.com' , 'powernv_defconfig' , powernv_configs , suite )
445+
446+
447+ def ppm_hw_boots (args ):
448+ suite = TestSuite ('ppm-hw-boots' )
449+ ltcppm1 (args , suite )
450+ ltcppm2 (args , suite )
451+ ltcppm3 (args , suite )
452+ return suite
0 commit comments