.. _varianter_pict:
PICT Varianter plugin
=====================
`avocado_varianter_pict`
This plugin uses a third-party tool to provide variants created by
"Pair-Wise" algorithms, also known as Combinatorial Independent
Testing.
Installing PICT
---------------
PICT is a free software (MIT licensed) tool that implements
combinatorial testing. More information about it can be found at
https://github.com/Microsoft/pict/ .
If you're building from sources, make sure you have a C++ compiler
such as GCC or clang, and make. The included ``Makefile`` should
work out of the box and give you a ``pict`` binary.
Then copy the ``pict`` binary to a location in your ``$PATH``.
Alternatively, you may use the plugin ``--pict-binary`` command line
option to provide a specific location of the pict binary, but that
is not as convenient as having it on your ``$PATH``.
Using the PICT Varianter Plugin
-------------------------------
To install the Avocado PICT plugin from pip, use::
$ sudo pip install avocado-framework-plugin-varianter-pict
To run the example below, use the test included in the avocado code ::
$ git clone https://github.com/avocado-framework/avocado.git
The following listing is a sample (simple) PICT file included
at ``avocado/examples/varianter_pict/params.pict`` ::
arch: intel, amd
block_driver: scsi, ide, virtio
net_driver: rtl8139, e1000, virtio
guest: windows, linux
host: rhel6, rhel7, rhel8
To list the variants generated with the default combination order (2,
that is, do a pairwise idenpendent combinatorial testing)::
$ avocado variants --pict-parameter-file=avocado/examples/varianter_pict/params.pict
Pict Variants (11):
Variant amd-scsi-rtl8139-windows-rhel6-acff: /run
Variant intel-scsi-virtio-linux-rhel8-26df: /run
Variant amd-ide-virtio-windows-rhel7-3fe7: /run
Variant amd-virtio-e1000-linux-rhel7-bf2d: /run
Variant intel-scsi-e1000-windows-rhel8-4808: /run
Variant intel-scsi-rtl8139-linux-rhel7-2975: /run
Variant intel-virtio-rtl8139-windows-rhel8-6632: /run
Variant intel-ide-rtl8139-linux-rhel6-edd2: /run
Variant intel-virtio-virtio-windows-rhel6-e95a: /run
Variant amd-ide-e1000-linux-rhel8-5fcc: /run
Variant amd-ide-e1000-linux-rhel6-eb43: /run
To list the variants generated with a 3-way combination::
$ avocado variants --pict-parameter-file=avocado/examples/varianter_pict/params.pict \
--pict-order-of-combinations=3
Pict Variants (28):
Variant intel-ide-virtio-windows-rhel7-aea5: /run
...skip...
Variant intel-scsi-e1000-linux-rhel7-9f61: /run
To run tests, just replace the ``variants`` avocado command for ``run``::
$ avocado run --pict-parameter-file=avocado/examples/varianter_pict/params.pict /bin/true
The tests given in the command line should then be executed with all
variants produced by the combinatorial algorithm implemented by PICT.
Raw data
{
"_id": null,
"home_page": "http://avocado-framework.github.io/",
"name": "avocado-framework-plugin-varianter-pict",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Avocado Developers",
"author_email": "avocado-devel@redhat.com",
"download_url": "https://files.pythonhosted.org/packages/b9/85/cfbb51c8740f4f5f8f8bbe517d1fea269821f3545b805d264cfa1cdce519/avocado_framework_plugin_varianter_pict-109.0.tar.gz",
"platform": null,
"description": ".. _varianter_pict:\n\nPICT Varianter plugin\n=====================\n\n`avocado_varianter_pict`\n\nThis plugin uses a third-party tool to provide variants created by\n\"Pair-Wise\" algorithms, also known as Combinatorial Independent\nTesting.\n\nInstalling PICT\n---------------\n\nPICT is a free software (MIT licensed) tool that implements\ncombinatorial testing. More information about it can be found at\nhttps://github.com/Microsoft/pict/ .\n\nIf you're building from sources, make sure you have a C++ compiler\nsuch as GCC or clang, and make. The included ``Makefile`` should\nwork out of the box and give you a ``pict`` binary.\n\nThen copy the ``pict`` binary to a location in your ``$PATH``.\nAlternatively, you may use the plugin ``--pict-binary`` command line\noption to provide a specific location of the pict binary, but that\nis not as convenient as having it on your ``$PATH``.\n\nUsing the PICT Varianter Plugin\n-------------------------------\n\nTo install the Avocado PICT plugin from pip, use::\n\n $ sudo pip install avocado-framework-plugin-varianter-pict\n\nTo run the example below, use the test included in the avocado code ::\n\n $ git clone https://github.com/avocado-framework/avocado.git\n\nThe following listing is a sample (simple) PICT file included\nat ``avocado/examples/varianter_pict/params.pict`` ::\n\n arch: intel, amd\n block_driver: scsi, ide, virtio\n net_driver: rtl8139, e1000, virtio\n guest: windows, linux\n host: rhel6, rhel7, rhel8\n\nTo list the variants generated with the default combination order (2,\nthat is, do a pairwise idenpendent combinatorial testing)::\n\n $ avocado variants --pict-parameter-file=avocado/examples/varianter_pict/params.pict\n Pict Variants (11):\n Variant amd-scsi-rtl8139-windows-rhel6-acff: /run\n Variant intel-scsi-virtio-linux-rhel8-26df: /run\n Variant amd-ide-virtio-windows-rhel7-3fe7: /run\n Variant amd-virtio-e1000-linux-rhel7-bf2d: /run\n Variant intel-scsi-e1000-windows-rhel8-4808: /run\n Variant intel-scsi-rtl8139-linux-rhel7-2975: /run\n Variant intel-virtio-rtl8139-windows-rhel8-6632: /run\n Variant intel-ide-rtl8139-linux-rhel6-edd2: /run\n Variant intel-virtio-virtio-windows-rhel6-e95a: /run\n Variant amd-ide-e1000-linux-rhel8-5fcc: /run\n Variant amd-ide-e1000-linux-rhel6-eb43: /run\n\nTo list the variants generated with a 3-way combination::\n\n $ avocado variants --pict-parameter-file=avocado/examples/varianter_pict/params.pict \\\n --pict-order-of-combinations=3\n\n Pict Variants (28):\n Variant intel-ide-virtio-windows-rhel7-aea5: /run\n ...skip...\n Variant intel-scsi-e1000-linux-rhel7-9f61: /run\n\nTo run tests, just replace the ``variants`` avocado command for ``run``::\n\n $ avocado run --pict-parameter-file=avocado/examples/varianter_pict/params.pict /bin/true\n\nThe tests given in the command line should then be executed with all\nvariants produced by the combinatorial algorithm implemented by PICT.\n",
"bugtrack_url": null,
"license": null,
"summary": "Varianter with combinatorial capabilities by PICT",
"version": "109.0",
"project_urls": {
"Homepage": "http://avocado-framework.github.io/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eae5da3b0ba93c26fa36f06eb2f4b551d5d22739864a2b76b4538f0010c610ef",
"md5": "1bd4600ea54f099b394dcf189da7dfd1",
"sha256": "3e666679084ed77b0fada63bae2911c94870690a8f687506735b5ee2edefd04f"
},
"downloads": -1,
"filename": "avocado_framework_plugin_varianter_pict-109.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1bd4600ea54f099b394dcf189da7dfd1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5587,
"upload_time": "2025-01-14T13:27:38",
"upload_time_iso_8601": "2025-01-14T13:27:38.135455Z",
"url": "https://files.pythonhosted.org/packages/ea/e5/da3b0ba93c26fa36f06eb2f4b551d5d22739864a2b76b4538f0010c610ef/avocado_framework_plugin_varianter_pict-109.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b985cfbb51c8740f4f5f8f8bbe517d1fea269821f3545b805d264cfa1cdce519",
"md5": "43dae76dc5e4f4e819f77772cc9993f3",
"sha256": "00883e5a75865974da3ccc56a8b951bc3061578c855d47b7c3c6889fa6a8a7ef"
},
"downloads": -1,
"filename": "avocado_framework_plugin_varianter_pict-109.0.tar.gz",
"has_sig": false,
"md5_digest": "43dae76dc5e4f4e819f77772cc9993f3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5429,
"upload_time": "2025-01-14T13:27:53",
"upload_time_iso_8601": "2025-01-14T13:27:53.248962Z",
"url": "https://files.pythonhosted.org/packages/b9/85/cfbb51c8740f4f5f8f8bbe517d1fea269821f3545b805d264cfa1cdce519/avocado_framework_plugin_varianter_pict-109.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-14 13:27:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "avocado-framework-plugin-varianter-pict"
}