All of lore.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v2 0/6] Generate standalone tests
@ 2015-07-13 17:02 Andrew Jones
  2015-07-13 17:02 ` [kvm-unit-tests PATCH v2 1/6] run_tests.sh: share run_all as for_each_unittest Andrew Jones
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Andrew Jones @ 2015-07-13 17:02 UTC (permalink / raw)
  To: kvm; +Cc: pbonzini, mtosatti, jen

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

v2:
- dropped several changes to run_tests.sh [drew]
- pass DRYRUN through env, not config [drew]
- share "run_all", rather than duplicating it [drew]
- rewrote the script, improving it, and reducing ugliness
  (well, a bit) [drew]

Andrew Jones (6):
  run_tests.sh: share run_all as for_each_unittest
  run: check DRYRUN
  scripts: Introduce mkstandalone.sh
  arm/unittests.cfg: changes to be more standalone friendly
  Makefile: change 'make install' to install standalone tests
  standalone: add documentation to README

 .gitignore                   |   1 +
 Makefile                     |  10 +++-
 README                       |  10 ++++
 arm/run                      |  12 ++--
 arm/unittests.cfg            |  10 ++--
 config/config-arm-common.mak |   2 -
 config/config-x86-common.mak |   2 -
 run_tests.sh                 |  46 +--------------
 scripts/functions.bash       |  42 ++++++++++++++
 scripts/mkstandalone.sh      | 131 +++++++++++++++++++++++++++++++++++++++++++
 x86/run                      |  11 ++--
 11 files changed, 212 insertions(+), 65 deletions(-)
 create mode 100644 scripts/functions.bash
 create mode 100755 scripts/mkstandalone.sh

-- 
2.4.3


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-07-29 13:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 17:02 [kvm-unit-tests PATCH v2 0/6] Generate standalone tests Andrew Jones
2015-07-13 17:02 ` [kvm-unit-tests PATCH v2 1/6] run_tests.sh: share run_all as for_each_unittest Andrew Jones
2015-07-13 17:02 ` [kvm-unit-tests PATCH v2 2/6] run: check DRYRUN Andrew Jones
2015-07-13 17:03 ` [kvm-unit-tests PATCH v2 3/6] scripts: Introduce mkstandalone.sh Andrew Jones
2015-07-13 17:03 ` [kvm-unit-tests PATCH v2 4/6] arm/unittests.cfg: changes to be more standalone friendly Andrew Jones
2015-07-13 17:03 ` [kvm-unit-tests PATCH v2 5/6] Makefile: change 'make install' to install standalone tests Andrew Jones
2015-07-13 17:03 ` [kvm-unit-tests PATCH v2 6/6] standalone: add documentation to README Andrew Jones
2015-07-29 13:51 ` [kvm-unit-tests PATCH v2 0/6] Generate standalone tests Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.