1. 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
  2. 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
  3. 22 6月, 2016 1 次提交
  4. 20 6月, 2016 1 次提交
  5. 14 6月, 2016 1 次提交
    • J
      xenconfig: support bios=ovmf xl.cfg · 53d98cce
      Jim Fehlig 提交于
      Add support to xenconfig for conversion of xl.cfg(5) bios config
      to/from libvirt domXml <loader> config. SeaBIOS is the default
      for HVM guests using upstream QEMU. ROMBIOS is the default when
      using the old qemu-dm. This patch allows specifying OVMF as an
      alternate firmware.
      
      Example xl.cfg:
        bios = "ovmf"
      
      Example domXML:
        <os>
          ...
          <loader readonly='yes' type='pflash'>/usr/lib/xen/boot/ovmf.bin</loader>
        </os>
      
      Note that currently Xen does not support a separate nvram for
      non-volatile variables.
      Signed-off-by: NJim Fehlig <jfehlig@suse.com>
      53d98cce
  6. 08 6月, 2016 19 次提交
  7. 20 5月, 2016 1 次提交
  8. 14 5月, 2016 1 次提交
    • M
      virtestmock: Print invalid file accesses into a file · 6326865e
      Michal Privoznik 提交于
      All the accesses to files outside our build or source directories
      are now identified and appended into a file for later processing.
      The location of the file that contains all the records can be
      controlled via VIR_TEST_FILE_ACCESS env variable and defaults to
      abs_builddir "/test_file_access.txt".
      
      The script that will process the access file is to be added in
      next commit.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      6326865e
  9. 15 4月, 2016 1 次提交
  10. 25 3月, 2016 2 次提交
  11. 18 3月, 2016 2 次提交
    • M
      tests: Set PATH in each test · 363b401f
      Michal Privoznik 提交于
      Currently we spawn couple of binaries in our test suite.
      Moreover, we provide some spoofed versions of system binaries
      hoping that those will be executed instead of the system ones.
      For instance, for testing SSH socket we have written our own ssh
      binary for producing predictable results. We certainly don't want
      to execute the system ssh binary.
      However, in order to prefer our binaries over system ones, we
      need to set PATH environment variable. But this is done only at
      the Makefile level. So if anybody runs a test by hand that
      expects our spoofed binary, the test ends up executing real
      system binaries. This is not good. In fact, it's terribly wrong.
      The fix lies in a small trick - putting our build directory at
      the beginning of the PATH environment variable in each test.
      Hopefully, since every test has this VIRT_TEST_MAIN* wrapper, we
      can fix this at a single place.
      Moreover, while this removes setting PATH for our tests written
      in bash, it's safe as we are not calling anything ours that would
      require PATH change there.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      363b401f
    • M
      Drop paths.h include · 865764de
      Michal Privoznik 提交于
      We include the file in plenty of places. This is mostly due to
      historical reasons. The only place that needs something from the
      header file is storage_backend_fs which opens _PATH_MOUNTED. But
      it gets the file included indirectly via mntent.h. At no other
      place in our code we need _PATH_.*. Drop the include and
      configure check then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      865764de
  12. 26 2月, 2016 1 次提交
  13. 18 2月, 2016 1 次提交
  14. 10 2月, 2016 1 次提交
  15. 06 2月, 2016 1 次提交
  16. 04 2月, 2016 1 次提交
  17. 13 1月, 2016 1 次提交
  18. 09 1月, 2016 2 次提交