All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 1874674] [NEW] [Feature request] acceptance test class to run user-mode binaries
@ 2020-04-24  9:51 Philippe Mathieu-Daudé
  2020-04-24 19:14 ` [Bug 1874674] " Richard Henderson
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-24  9:51 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Currently the acceptance test framework only target system-mode emulation.
It would be useful to test user-mode too.

Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1874674

Title:
  [Feature request] acceptance test class to run user-mode binaries

Status in QEMU:
  New

Bug description:
  Currently the acceptance test framework only target system-mode emulation.
  It would be useful to test user-mode too.

  Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1874674/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries
  2020-04-24  9:51 [Bug 1874674] [NEW] [Feature request] acceptance test class to run user-mode binaries Philippe Mathieu-Daudé
@ 2020-04-24 19:14 ` Richard Henderson
  2020-04-28  7:26     ` Philippe Mathieu-Daudé
  2020-05-18  8:19 ` Thomas Huth
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 8+ messages in thread
From: Richard Henderson @ 2020-04-24 19:14 UTC (permalink / raw)
  To: qemu-devel

What user-mode testing do you think might be improved by using avocado?

IMO at present we have a fairly comprehensive testing infrastructure for
user-mode that is simply underused.  With docker, we have a set of
cross-compilers for most guest architectures, and we are able to build
statically linked binaries that are copied out of the container for
testing by the just-built qemu binaries on the host.  This
infrastructure is used by check-tcg.  It's fairly easy to add new test
cases to be run on one or all guests.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1874674

Title:
  [Feature request] acceptance test class to run user-mode binaries

Status in QEMU:
  New

Bug description:
  Currently the acceptance test framework only target system-mode emulation.
  It would be useful to test user-mode too.

  Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1874674/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries
@ 2020-04-28  7:26     ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-28  7:26 UTC (permalink / raw)
  To: qemu-devel

On 4/24/20 9:14 PM, Richard Henderson wrote:
> What user-mode testing do you think might be improved by using avocado?

Test unmodified real-world binaries, know to work in the field.

Test can be added by users without having to be a TCG developer, see
https://www.mail-archive.com/qemu-devel@nongnu.org/msg626608.html:

  class LoadBFLT(LinuxUserTest):
      def test_stm32(self):
          rootfs_url = ('https://elinux.org/images/5/51/'
                        'Stm32_mini_rootfs.cpio.bz2')
          rootfs_path_bz2 = self.fetch_asset(rootfs_url, ...)
          busybox_path = self.workdir + "/bin/busybox"

          res = self.run("%s %s" % (busybox_path, cmd))
          ver = 'BusyBox v1.24.0.git (2015-02-03 22:17:13 CET) ...'
          self.assertIn(ver, res.stdout_text)

          cmd = 'uname -a'
          res = self.run("%s %s" % (busybox_path, cmd))
          unm = 'armv7l GNU/Linux'
          self.assertIn(unm, res.stdout_text)

This is a fairly trivial test, cheap (no need to cross-build), yet it
still covers quite some QEMU code.

> IMO at present we have a fairly comprehensive testing infrastructure for
> user-mode that is simply underused.  With docker, we have a set of
> cross-compilers for most guest architectures, and we are able to build
> statically linked binaries that are copied out of the container for
> testing by the just-built qemu binaries on the host.  This
> infrastructure is used by check-tcg.  It's fairly easy to add new test
> cases to be run on one or all guests.

What you describe is a different and complementary test set. Craft tests
and build them with QEMU.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1874674

Title:
  [Feature request] acceptance test class to run user-mode binaries

Status in QEMU:
  New

Bug description:
  Currently the acceptance test framework only target system-mode emulation.
  It would be useful to test user-mode too.

  Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1874674/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries
@ 2020-04-28  7:26     ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-04-28  7:26 UTC (permalink / raw)
  To: Bug 1874674, qemu-devel

On 4/24/20 9:14 PM, Richard Henderson wrote:
> What user-mode testing do you think might be improved by using avocado?

Test unmodified real-world binaries, know to work in the field.

Test can be added by users without having to be a TCG developer, see
https://www.mail-archive.com/qemu-devel@nongnu.org/msg626608.html:

  class LoadBFLT(LinuxUserTest):
      def test_stm32(self):
          rootfs_url = ('https://elinux.org/images/5/51/'
                        'Stm32_mini_rootfs.cpio.bz2')
          rootfs_path_bz2 = self.fetch_asset(rootfs_url, ...)
          busybox_path = self.workdir + "/bin/busybox"

          res = self.run("%s %s" % (busybox_path, cmd))
          ver = 'BusyBox v1.24.0.git (2015-02-03 22:17:13 CET) ...'
          self.assertIn(ver, res.stdout_text)

          cmd = 'uname -a'
          res = self.run("%s %s" % (busybox_path, cmd))
          unm = 'armv7l GNU/Linux'
          self.assertIn(unm, res.stdout_text)

This is a fairly trivial test, cheap (no need to cross-build), yet it
still covers quite some QEMU code.

> IMO at present we have a fairly comprehensive testing infrastructure for
> user-mode that is simply underused.  With docker, we have a set of
> cross-compilers for most guest architectures, and we are able to build
> statically linked binaries that are copied out of the container for
> testing by the just-built qemu binaries on the host.  This
> infrastructure is used by check-tcg.  It's fairly easy to add new test
> cases to be run on one or all guests.

What you describe is a different and complementary test set. Craft tests
and build them with QEMU.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries
  2020-04-24  9:51 [Bug 1874674] [NEW] [Feature request] acceptance test class to run user-mode binaries Philippe Mathieu-Daudé
  2020-04-24 19:14 ` [Bug 1874674] " Richard Henderson
@ 2020-05-18  8:19 ` Thomas Huth
  2021-04-22  4:13 ` Thomas Huth
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2020-05-18  8:19 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1874674

Title:
  [Feature request] acceptance test class to run user-mode binaries

Status in QEMU:
  New

Bug description:
  Currently the acceptance test framework only target system-mode emulation.
  It would be useful to test user-mode too.

  Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1874674/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries
  2020-04-24  9:51 [Bug 1874674] [NEW] [Feature request] acceptance test class to run user-mode binaries Philippe Mathieu-Daudé
  2020-04-24 19:14 ` [Bug 1874674] " Richard Henderson
  2020-05-18  8:19 ` Thomas Huth
@ 2021-04-22  4:13 ` Thomas Huth
  2021-05-01  9:18 ` Philippe Mathieu-Daudé
  2021-05-02  5:20 ` Thomas Huth
  4 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2021-04-22  4:13 UTC (permalink / raw)
  To: qemu-devel

The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Or mark it as "Fix Released" if the problem has been solved with a newer version of QEMU already. Thank you and sorry for the inconvenience.


** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1874674

Title:
  [Feature request] acceptance test class to run user-mode binaries

Status in QEMU:
  Incomplete

Bug description:
  Currently the acceptance test framework only target system-mode emulation.
  It would be useful to test user-mode too.

  Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1874674/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries
  2020-04-24  9:51 [Bug 1874674] [NEW] [Feature request] acceptance test class to run user-mode binaries Philippe Mathieu-Daudé
                   ` (2 preceding siblings ...)
  2021-04-22  4:13 ` Thomas Huth
@ 2021-05-01  9:18 ` Philippe Mathieu-Daudé
  2021-05-02  5:20 ` Thomas Huth
  4 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-05-01  9:18 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Incomplete => New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1874674

Title:
  [Feature request] acceptance test class to run user-mode binaries

Status in QEMU:
  New

Bug description:
  Currently the acceptance test framework only target system-mode emulation.
  It would be useful to test user-mode too.

  Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1874674/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1874674] Re: [Feature request] acceptance test class to run user-mode binaries
  2020-04-24  9:51 [Bug 1874674] [NEW] [Feature request] acceptance test class to run user-mode binaries Philippe Mathieu-Daudé
                   ` (3 preceding siblings ...)
  2021-05-01  9:18 ` Philippe Mathieu-Daudé
@ 2021-05-02  5:20 ` Thomas Huth
  4 siblings, 0 replies; 8+ messages in thread
From: Thomas Huth @ 2021-05-02  5:20 UTC (permalink / raw)
  To: qemu-devel

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/82


** Changed in: qemu
       Status: New => Expired

** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #82
   https://gitlab.com/qemu-project/qemu/-/issues/82

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1874674

Title:
  [Feature request] acceptance test class to run user-mode binaries

Status in QEMU:
  Expired

Bug description:
  Currently the acceptance test framework only target system-mode emulation.
  It would be useful to test user-mode too.

  Ref: https://www.mail-archive.com/qemu-devel@nongnu.org/msg626610.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1874674/+subscriptions


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-02  5:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-24  9:51 [Bug 1874674] [NEW] [Feature request] acceptance test class to run user-mode binaries Philippe Mathieu-Daudé
2020-04-24 19:14 ` [Bug 1874674] " Richard Henderson
2020-04-28  7:26   ` Philippe Mathieu-Daudé
2020-04-28  7:26     ` Philippe Mathieu-Daudé
2020-05-18  8:19 ` Thomas Huth
2021-04-22  4:13 ` Thomas Huth
2021-05-01  9:18 ` Philippe Mathieu-Daudé
2021-05-02  5:20 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.