1. 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
  2. 14 3月, 2019 2 次提交
  3. 12 2月, 2019 1 次提交
  4. 14 12月, 2018 1 次提交
    • D
      Remove all Author(s): lines from source file headers · 60046283
      Daniel P. Berrangé 提交于
      In many files there are header comments that contain an Author:
      statement, supposedly reflecting who originally wrote the code.
      In a large collaborative project like libvirt, any non-trivial
      file will have been modified by a large number of different
      contributors. IOW, the Author: comments are quickly out of date,
      omitting people who have made significant contribitions.
      
      In some places Author: lines have been added despite the person
      merely being responsible for creating the file by moving existing
      code out of another file. IOW, the Author: lines give an incorrect
      record of authorship.
      
      With this all in mind, the comments are useless as a means to identify
      who to talk to about code in a particular file. Contributors will always
      be better off using 'git log' and 'git blame' if they need to  find the
      author of a particular bit of code.
      
      This commit thus deletes all Author: comments from the source and adds
      a rule to prevent them reappearing.
      
      The Copyright headers are similarly misleading and inaccurate, however,
      we cannot delete these as they have legal meaning, despite being largely
      inaccurate. In addition only the copyright holder is permitted to change
      their respective copyright statement.
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      60046283
  5. 27 11月, 2018 1 次提交
  6. 02 10月, 2018 1 次提交
  7. 01 10月, 2018 1 次提交
    • J
      tests: reintroduce tests for libxl's legacy nested setting · 25456e04
      Jim Fehlig 提交于
      The preferred location for setting the nested CPU flag changed in
      Xen 4.10 and is advertised via the LIBXL_HAVE_BUILDINFO_NESTED_HVM
      define.  Commit 95d19cd0 changed libxl to use the new preferred
      location but unconditionally changed the tests, causing 'make check'
      failures against Xen < 4.10 that do not contain the new location.
      
      Commit e94415d5 fixed the failures by only running the tests when
      LIBXL_HAVE_BUILDINFO_NESTED_HVM is defined. Since libvirt supports
      several versions of Xen that use the old nested location, it is
      prudent to test the flag is set correctly. This patch reintroduces
      the tests for the legacy location of the nested setting.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      Reviewed-by: NErik Skultety <eskultet@redhat.com>
      25456e04
  8. 26 9月, 2018 1 次提交
  9. 20 9月, 2018 2 次提交
  10. 19 9月, 2018 1 次提交
  11. 13 8月, 2018 1 次提交
  12. 02 8月, 2018 1 次提交
  13. 18 7月, 2018 1 次提交
  14. 12 6月, 2018 1 次提交
  15. 03 5月, 2018 1 次提交
  16. 18 4月, 2018 3 次提交
  17. 22 3月, 2018 1 次提交
    • J
      libxl: don't hardcode scheduler weight · 83edaf44
      Jim Fehlig 提交于
      Long ago in commit dfa1e1dd the scheduler weight was accidentally
      hardcoded to 1000. Weight is a setting with no unit since it is
      relative to the weight of other domains. If no weight is specified,
      libxl defaults to 256.
      
      Instead of hardcoding the weight to 1000, honor any <shares> specified
      in <cputune>. libvirt's notion of shares is synonomous to libxl's
      scheduler weight setting. If shares is unspecified, defer default
      weight setting to libxl.
      
      Removing the hardcoded weight required some test fixup. While at it,
      add an explicit test for <shares> conversion to scheduler weight.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      83edaf44
  18. 22 2月, 2018 6 次提交
  19. 09 12月, 2017 1 次提交
  20. 13 11月, 2017 1 次提交
  21. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  22. 05 8月, 2017 1 次提交
    • J
      libxl: Add a test suite for libxl_domain_config generator · d8e8b63d
      Jim Fehlig 提交于
      The libxl library allows a libxl_domain_config object to be serialized
      from/to a JSON string. Use this to allow testing of the XML to
      libxl_domain_config conversion process. Test XML is converted to
      libxl_domain_config, which is then serialized to json. A json template
      corresponding to the test XML is converted to a libxl_domain_config
      object using libxl_domain_config_from_json(), and then serialized
      back to json using libxl_domain_config_to_json(). The two json
      docs are then compared.
      
      Using libxl to convert the json template to a libxl_domain_config
      object and then back to json provides a simple way to account for
      any changes or additions to the json representation across Xen
      releases.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      [update to v3.5.0-rc1, improve error reporting, use /bin/true emulator]
      Signed-off-by: NMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
      d8e8b63d