1. 21 9月, 2019 1 次提交
    • C
      tests:ipmi: Fix IPMI BT tests · 77cd44b9
      Corey Minyard 提交于
      The IPMI BT tests had a race condition, if it receive an IPMI command
      to enable interrupt, it would write the message to enable interrupts
      after it wrote the command response.  So the test code could
      receive the command response and issue the next command before the
      device handled the interrupt enable command, and thus no interrupt.
      
      So send the message to enable interrupt before the command response.
      
      Also add some sleeps to give qemu time to handle responses, there was
      no delay before, and it could result in an invalid timeout.
      
      And re-enable the tests, as hopefully they are fixed now.
      
      Note that I was unable to reproduce this even with the instructions
      Peter gave me, but hopefully this fixes the issue.
      
      Cc: Peter Maydell <peter.maydell@linaro.org>
      Signed-off-by: NCorey Minyard <cminyard@mvista.com>
      77cd44b9
  2. 16 9月, 2019 1 次提交
  3. 10 9月, 2019 3 次提交
    • A
      tests/tcg: fix typo when calling clean-tcg · dda60da3
      Alex Bennée 提交于
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      dda60da3
    • P
      tests/tcg: move configuration to a sub-shell script · 2038f8c8
      Paolo Bonzini 提交于
      Avoid the repeated inclusions of config-target.mak, which have
      risks of namespace pollution, and instead build minimal configuration
      files in a configuration script.  The same configuration files can
      also be included in Makefile and Makefile.qemu
      
      [AJB 10/09/19]
      In the original PR this had inadvertently enabled tests
      for ppc64abi32. However as the rest of the multiarch tests work rather
      than disabling the otherwise correctly functioning build I've just
      skipped the failing linux-test test. For some reason I can't debug it
      with TCG so I'm leaving that to the PPC maintainers to look at.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20190807143523.15917-4-pbonzini@redhat.com>
      [AJB: s/docker/container/, rm last bits from configure, ppc6432abi hack]
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      Cc: Richard Henderson <rth@twiddle.net>
      2038f8c8
    • P
      tests/tcg: cleanup Makefile inclusions · fc76c56d
      Paolo Bonzini 提交于
      Rename Makefile.probe to Makefile.prereqs and make it actually
      define rules for the tests.
      
      Rename Makefile to Makefile.target, since it is not a toplevel
      makefile.
      
      Rename Makefile.include to Makefile.qemu and disentangle it
      from the QEMU Makefile.target, so that it is invoked recursively
      by tests/Makefile.include.  Tests are now placed in
      tests/tcg/$(TARGET).
      
      Drop the usage of TARGET_BASE_ARCH, which is ignored by everything except
      x86_64 and aarch64.  Fix x86 tests by using -cpu max and, while
      at it, standardize on QEMU_OPTS for aarch64 tests too.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-Id: <20190807143523.15917-3-pbonzini@redhat.com>
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      fc76c56d
  4. 28 8月, 2019 1 次提交
    • C
      configure: more resilient Python version capture · 406ab2f3
      Cleber Rosa 提交于
      The current approach to capture the Python version is fragile, as it
      was demonstrated by a very specific build of Python 3 on Fedora 29
      that, under non-interactive shells would print multiline version
      information.
      
      The (badly) stripped version output would be sent to config-host.mak,
      producing bad syntax and rendering the makefiles unusable.  Now, the
      Python versions is printed by configure, but only a simple (and better
      controlled variable) indicating whether the build system is using
      Python 2 is kept on config-host.mak.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      
      Message-Id: <20190826155832.17427-1-crosa@redhat.com>
      Reviewed-by: NTony Nguyen <tony.nguyen@bt.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      406ab2f3
  5. 22 8月, 2019 1 次提交
  6. 21 8月, 2019 1 次提交
  7. 17 8月, 2019 1 次提交
    • T
      tests: Run the iotests during "make check" again · bdd95e47
      Thomas Huth 提交于
      People often forget to run the iotests before submitting patches or pull
      requests - this is likely due to the fact that we do not run the tests
      during our mandatory "make check" tests yet. Now that we've got a proper
      "auto" group of iotests that should be fine to run in every environment,
      we can enable the iotests during "make check" again by running the "auto"
      tests by default from the check-block.sh script.
      
      Some cases still need to be checked first, though: iotests need bash and
      GNU sed (otherwise they fail), and if gprof is enabled, it spoils the
      output of some test cases causing them to fail. So if we detect that one
      of the required programs is missing or that gprof is enabled, we still
      have to skip the iotests to avoid failures.
      
      And finally, since we are using check-block.sh now again, this patch also
      removes the qemu-iotests-quick.sh script since we do not need that anymore
      (and having two shell wrapper scripts around the block tests seems rather
      confusing than helpful).
      
      Message-Id: <20190717111947.30356-4-thuth@redhat.com>
      Signed-off-by: NThomas Huth <thuth@redhat.com>
      [AJB: -makecheck to check-block.sh, move check-block to start and gate it]
      Signed-off-by: NAlex Bennée <alex.bennee@linaro.org>
      bdd95e47
  8. 15 7月, 2019 1 次提交
  9. 03 7月, 2019 1 次提交
    • M
      Makefile: Rename targets for make recursion · 3b8593ee
      Markus Armbruster 提交于
      We make a few sub-directories recursively, in particular
      $(TARGET_DIRS).
      
      For goal "all", we do it the nice way: "all" has a prerequisite
      subdir-T for each T in $(TARGET_DIRS), and T's recipe runs make
      recursively.  Behaves nicely with -j and -k.
      
      For other goals such as "clean" and "install", the recipe runs make
      recursively in a for loop.  Ignores -j and -k.
      
      The next commit will fix that for "clean" and "install".  This commit
      prepares the ground by renaming the targets we use for "all" to
      include the goal for the sub-make.  This will permit reusing them for
      goals other than "all".
      
      Targets subdir-T for T in $(TARGET_DIRS) run "make all" in T.  Rename
      to T/all, and declare phony.
      
      Targets romsubdir-R for R in $(ROMS) run "make" in pc-bios/R.  Default
      goal is "all" for all R.  Rename to pc-bios/R/all, and declare phony.
      
      The remainder are renamed just for consistency.
      
      Target subdir-dtc runs "make libbft/libfdt.a" in dtc.  Rename to
      dtc/all, and declare phony.
      
      Target subdir-capstone runs make $(BUILD_DIR)/capstone/$(LIBCAPSTONE)
      in $(SRC_PATH)/capstone.  Rename to capstone/all, and declare phony.
      
      Target subdir-slirp runs "make" in $(SRC_PATH)/slirp.  Default goal is
      all, which builds $(BUILD_DIR)/libslirp.a.  Rename to slirp/all, and
      declare phony.
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      Reviewed-by: NRichard Henderson <richard.henderson@linaro.org>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Tested-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Message-Id: <20190528082308.22032-4-armbru@redhat.com>
      [Add compatibility gunk to keep make working across the rename]
      3b8593ee
  10. 02 7月, 2019 1 次提交
  11. 13 6月, 2019 1 次提交
  12. 06 6月, 2019 1 次提交
  13. 03 6月, 2019 6 次提交
  14. 17 5月, 2019 2 次提交
  15. 08 5月, 2019 2 次提交
  16. 03 5月, 2019 2 次提交
    • C
      tests/acceptance: use "arch:" tag to filter target specific tests · b194713f
      Cleber Rosa 提交于
      Currently, some tests contains target architecture information, in the
      form of a "x86_64" tag.  But that tag is not respected in the default
      execution, that is, "make check-acceptance" doesn't do anything with
      it.
      
      That said, even the target architecture handling currently present in
      the "avocado_qemu.Test" class is pretty limited.  For instance, by
      default, it chooses a target based on the host architecture.
      
      Because the original implementation of the tags feature in Avocado did
      not include any time of namespace or "key:val" mechanism, no tag has
      relation to another tag.  The new implementation of the tags feature
      from version 67.0 onwards, allows "key:val" tags, and because of that,
      a test can be classified with a tag in a given key.  For instance, the
      new proposed version of the "boot_linux_console.py" test, which
      downloads and attempts to run a x86_64 kernel, is now tagged as:
      
        🥑 tags=arch:x86_64
      
      This means that it can be filtered (out) when no x86_64 target is
      available.  At the same time, tests that don't have a "arch:" tag,
      will not be filtered out.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      Reviewed-by: NCornelia Huck <cohuck@redhat.com>
      Message-Id: <20190312171824.5134-6-crosa@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      b194713f
    • C
      tests/acceptance: show avocado test execution by default · 59692a12
      Cleber Rosa 提交于
      The current version of the "check-acceptance" target will only show
      one line for execution of all tests.  That's probably OK if the tests
      to be run are quick enough and they're always the same.
      
      But, there's already one test alone that takes on average ~5 seconds
      to run, we intend to adapt the list of tests to match the user's build
      environment (among other choices).
      
      Because of that, let's present the default Avocado UI by default.
      Users can always choose a different output by setting the AVOCADO_SHOW
      variable.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      Reviewed-by: NCaio Carrara <ccarrara@redhat.com>
      Reviewed-by: NPhilippe Mathieu-Daudé <philmd@redhat.com>
      Reviewed-by: NAlex Bennée <alex.bennee@linaro.org>
      Reviewed-by: NCornelia Huck <cohuck@redhat.com>
      Message-Id: <20190312171824.5134-2-crosa@redhat.com>
      Signed-off-by: NEduardo Habkost <ehabkost@redhat.com>
      59692a12
  17. 17 4月, 2019 1 次提交
  18. 10 4月, 2019 1 次提交
  19. 20 3月, 2019 1 次提交
  20. 13 3月, 2019 2 次提交
  21. 08 3月, 2019 9 次提交