1. 27 8月, 2019 1 次提交
  2. 23 8月, 2019 1 次提交
    • R
      tests: Add lib- prefix to all mocks · fde36108
      Roman Bolshakov 提交于
      In preparation libtool "-module" flag removal, add lib prefix to all
      mock shared objects.
      
      While at it, introduce VIR_TEST_MOCK macros that makes path out of mock
      name to be used with VIR_TEST_PRELOAD or VIR_TEST_MAIN_PRELOAD.  That,
      hopefully, improves readability, reduces line length and allows to
      tailor VIR_TEST_MOCK for specific platform if it has shared library
      suffix different from ".so".
      Signed-off-by: NRoman Bolshakov <r.bolshakov@yadro.com>
      fde36108
  3. 14 3月, 2019 1 次提交
  4. 07 3月, 2019 2 次提交
  5. 20 2月, 2019 3 次提交
  6. 03 1月, 2019 1 次提交
  7. 20 9月, 2018 2 次提交
  8. 26 7月, 2018 1 次提交
    • C
      conf: Drop unnecessary caps parsing logic · b251d6ad
      Cole Robinson 提交于
      The comment says:
      
          /* If the logic here seems fairly arbitrary, that's because it is :)
           * This is duplicating how the code worked before
           * CapabilitiesDomainDataLookup was added. We can simplify this,
           * but it would take a bit of work because the test suite fails
           * in numerous minor ways. */
      
      Nowadays the test suite changes appear quite simple, just extending
      test capabilities data a bit so that we aren't trying to define
      invalid arch/os/virtType/machine combos
      Acked-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NCole Robinson <crobinso@redhat.com>
      b251d6ad
  9. 06 6月, 2018 1 次提交
  10. 19 4月, 2018 1 次提交
    • A
      tests: Create full host NUMA topology in more cases · 4fe4ffdb
      Andrea Bolognani 提交于
      vircapstest has code to add a full host NUMA topology, that
      is, one that includes all information about nodes and CPUs
      including IDs; testQemuCapsInit(), which is used to create a
      mock virCapsPtr for QEMU tests, however, just fakes it by
      setting nnumaCell_max to some number.
      
      While the latter approach has served us well so far, we're
      going to need all the information to be filled in soon. In
      order to do that, we can just move the existing code from
      vircapstest to testutils and, with some renaming and
      trivial tweaking, use it as-is.
      
      Interestingly, the NUMA topology generated by the function
      is rigged up so that the NUMA nodes aren't (necessarily)
      numbered starting from 0, which is a nice way to spot
      mistaken assumptions in our codebase.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      Reviewed-by: NJán Tomko <jtomko@redhat.com>
      4fe4ffdb
  11. 04 4月, 2018 1 次提交
  12. 03 4月, 2018 1 次提交
  13. 13 3月, 2018 1 次提交
  14. 18 11月, 2017 1 次提交
  15. 10 11月, 2017 1 次提交
  16. 07 8月, 2017 1 次提交
  17. 28 7月, 2017 1 次提交
  18. 27 7月, 2017 4 次提交
  19. 24 7月, 2017 1 次提交
  20. 07 6月, 2017 1 次提交
  21. 05 6月, 2017 2 次提交
    • M
      Reset the whole stack in testutils · f4c09b91
      Martin Kletzander 提交于
      The memset() was resetting only 30 bytes in the array (size of the
      array), but it is array of pointers.  Since it is a static array,
      let's just reset it by its size.
      
      Found by gcc-7.1:
      
        testutils.c: In function 'virTestRun':
        testutils.c:243:13: error: 'memset' used with length equal to number
        of elements without multiplication by element size [-Werror=memset-elt-size]
          memset(testAllocStack, 0, ARRAY_CARDINALITY(testAllocStack));
          ^~~~~~
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      f4c09b91
    • M
      virDomainXMLOption: Introduce virDomainABIStabilityDomain · 4f0aeed8
      Michal Privoznik 提交于
      While checking for ABI stability, drivers might pose additional
      checks that are not valid for general case. For instance, qemu
      driver might check some memory backing attributes because of how
      qemu works. But those attributes may work well in other drivers.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      4f0aeed8
  22. 04 4月, 2017 1 次提交
  23. 28 3月, 2017 1 次提交
  24. 23 3月, 2017 1 次提交
  25. 10 10月, 2016 1 次提交
  26. 26 9月, 2016 1 次提交
  27. 20 9月, 2016 1 次提交
    • L
      tests: fix use of fixedcontent variable · 4e2d642a
      Laine Stump 提交于
      Commit 85635600 switched from
      hardcoded use of strcontent to hardcoded use of fixedcontent
      (fixedcontent is *sometimes* a copy of strcontent with a \n
      appended). This was a problem because sometimes fixedcontent is *not*
      a copy of strcontent, but is instead NULL, leading to the regenerated
      test case output being a 0 length file.
      
      This patch creates a new const char *cmpcontent initialized to
      strcontent, but changed to fixedcontent if/when fixedcontent is
      created, then always uses cmpcontent instead of (str|fixed)content.
      4e2d642a
  28. 15 9月, 2016 1 次提交
  29. 25 8月, 2016 1 次提交
    • P
      conf: Add XML for individual vCPU hotplug · 5847bc5c
      Peter Krempa 提交于
      Individual vCPU hotplug requires us to track the state of any vCPU. To
      allow this add the following XML:
      
      <domain>
        ...
        <vcpu current='2'>3</vcpu>
        <vcpus>
          <vcpu id='0' enabled='yes' hotpluggable='no' order='1'/>
          <vcpu id='1' enabled='yes' hotpluggable='yes' order='2'/>
          <vcpu id='1' enabled='no' hotpluggable='yes'/>
        </vcpus>
        ...
      
      The 'enabled' attribute allows to control the state of the vcpu.
      'hotpluggable' controls whether given vcpu can be hotplugged and 'order'
      allows to specify the order to add the vcpus.
      5847bc5c
  30. 12 7月, 2016 2 次提交
    • J
      testutils: only rewrap args files · cc04181a
      Ján Tomko 提交于
      test-wrap-argv.pl does not know how to rewrap other files.
      cc04181a
    • J
      testutils: find perl early · bd6708a8
      Ján Tomko 提交于
      Commit 843a70a8 changed test-wrap-argv.pl to use
      /usr/bin/env perl
      instead of
      /usr/bin/perl
      
      However when called from qemuxml2argvtest with
      VIR_TEST_REGENERATE_OUTPUT, PATH is set to '/bin'.
      
      Find the path to perl early in virTestMain, in case we
      are going to need it later after we've overridden PATH.
      bd6708a8
  31. 24 6月, 2016 1 次提交
    • P
      tests: utils: Fail XML file comparison if input file doesn't exist · cb049b9a
      Peter Krempa 提交于
      In cases where we expect parse failure of the test input file the
      testsuite can't differentiate if the parser failed when parsing or when
      opening the file. Add a call to virFileExists and error out on missing
      input files.
      
      Missing output files are partially expected when regenerating test
      output.
      cb049b9a