Re: [kvm-unit-tests PATCH v2 0/6] Generate standalone tests

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

 




On 13/07/2015 19:02, Andrew Jones wrote:
> 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.

This is pretty wicked, but it's indeed useful.  Applied. :)

Paolo

> 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
> 
--
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