test_mips_tuxrun.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/usr/bin/env python3
  2. #
  3. # Functional test that boots known good tuxboot images the same way
  4. # that tuxrun (www.tuxrun.org) does. This tool is used by things like
  5. # the LKFT project to run regression tests on kernels.
  6. #
  7. # Copyright (c) 2023 Linaro Ltd.
  8. #
  9. # Author:
  10. # Alex Bennée <alex.bennee@linaro.org>
  11. #
  12. # SPDX-License-Identifier: GPL-2.0-or-later
  13. from qemu_test import Asset
  14. from qemu_test.tuxruntest import TuxRunBaselineTest
  15. class TuxRunMipsTest(TuxRunBaselineTest):
  16. ASSET_MIPS_KERNEL = Asset(
  17. 'https://storage.tuxboot.com/buildroot/20241119/mips32/vmlinux',
  18. 'b6f97fc698ae8c96456ad8c996c7454228074df0d7520dedd0a15e2913700a19')
  19. ASSET_MIPS_ROOTFS = Asset(
  20. 'https://storage.tuxboot.com/buildroot/20241119/mips32/rootfs.ext4.zst',
  21. '87055cf3cbde3fd134e5039e7b87feb03231d8c4b21ee712b8ba3308dfa72f50')
  22. def test_mips32(self):
  23. self.set_machine('malta')
  24. self.cpu="mips32r6-generic"
  25. self.root="sda"
  26. self.wait_for_shutdown=False
  27. self.common_tuxrun(kernel_asset=self.ASSET_MIPS_KERNEL,
  28. rootfs_asset=self.ASSET_MIPS_ROOTFS,
  29. drive="driver=ide-hd,bus=ide.0,unit=0")
  30. if __name__ == '__main__':
  31. TuxRunBaselineTest.main()