[kvm-unit-tests PATCH 0/9] Generate standalone tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Add support to convert unit tests to standalone scripts that
can be run outside the framework. This is almost an RFC, but
it doesn't impact the current framework (except for 'make install',
but was that ever used?). The scripting is ugly, but I see value
in having easily distributable unit tests.

Testing: if you run all standalone tests, concatenating all output
to a file, then that file will match test.log after running
run_tests.sh. Additionally, all prechecks are preserved, i.e.
specific arch and 'check' conditions from unittests.cfg.

Thanks,
drew

Andrew Jones (9):
  x86/run: source config.mak
  run_tests.sh: remove blank line from start of log
  run_tests.sh: add '-d' for dry-run
  run_tests.sh: allow default unittests.cfg override
  unittests.cfg: use double quotes
  arm/unittests.cfg: make test names more friendly
  scripts: introduce mk[all]standalone.sh
  Makefile: change 'make install' to install standalone tests
  standalone: add documentation to README

 Makefile                     |  10 ++--
 README                       |  10 ++++
 arm/run                      |  20 +++++---
 arm/unittests.cfg            |  16 +++----
 config/config-arm-common.mak |   2 -
 config/config-x86-common.mak |   2 -
 run_tests.sh                 |  47 +++++++++++-------
 scripts/mkallstandalone.sh   |  36 ++++++++++++++
 scripts/mkstandalone.sh      | 110 +++++++++++++++++++++++++++++++++++++++++++
 x86/run                      |  21 +++++++--
 x86/unittests.cfg            |  16 +++----
 11 files changed, 239 insertions(+), 51 deletions(-)
 create mode 100755 scripts/mkallstandalone.sh
 create mode 100755 scripts/mkstandalone.sh

-- 
2.4.3

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux