Skip to content

Include resources in tests

Jan Viktorin dpdk-dev 5 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest10 patches 3 repliesApplied
  2. v410 patches 3 repliesSuperseded
  3. v311 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v211 patches16 repliesSuperseded
v110 patches11 repliesSuperseded

Changes in v5 from the cover letter

* fixed off argument of archive_read_data_block

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/10app/test: introduce resources for testsapp/test/Makefile app/test/autotest_data.py app/test/resource.c +2 more+247 -00 replies
2/10mk: define objcopy-specific target and archmk/arch/arm/rte.vars.mk mk/arch/arm64/rte.vars.mk mk/arch/i686/rte.vars.mk +2 more+25 -00 replies
3/10app/test: support resources externally linkedapp/test/Makefile app/test/resource.h app/test/test_resource.c+47 -00 replies
4/10app/test: add functions to create files from resourcesapp/test/resource.c app/test/resource.h app/test/test_resource.c+59 -00 replies
5/10app/test: support resources archived by tarapp/test/Makefile app/test/resource.c app/test/resource.h +1 more+251 -00 replies
6/10app/test: use linked list to store PCI driversapp/test/test_pci.c+12 -60 replies
7/10app/test: extract test_pci_setup and test_pci_cleanupapp/test/test_pci.c+34 -130 replies
8/10app/test: convert current pci_test into a single test caseapp/test/test_pci.c+14 -50 replies
9/10eal/pci: allow to override sysfsapp/test/Makefile app/test/test_pci.c app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/class +25 more+159 -150 replies
10/10app/test: do not dump PCI devices in blacklist testapp/test/test_pci.c+2 -10 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJan Viktorin
SeriesR-b A-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 00/10] Include resources in tests

Hello,

the fifth version fixing the libarchive API usage.

Regards
Jan

---
v1:
* included 5 patches improving the PCI tests
* fixed using of non-existing RTE_INIT macro

v2:
* Makefile macro resource renamed to linked_resource
* introduced macro linked_tar_resource
* added more comments
* clarified relation between REGISTER_LINKED_RESOURCE and the Makefile
* untar is checked to not loop infinitely
* improved commit messages
* objcopy params extracted to a separated patcha (missing tile and ppc)
* few random bits (usually suggested by T. Monjalon)
* included a note about the new dependency libarchive in the particular commit

v3:
* resource_autotest added to autotest_data.py
* improved test of affecting pci_get_sysfs_path() by setenv
* few other bits...

v4:
* fix checkpatch issues
* state that tile and ppc_64 are not supported in patch 0002
* avoid moving functions test_pci_setup and test_pci_cleanup in patch 0008

v5:
* fixed off argument of archive_read_data_block

Jan Viktorin (10):
app/test: introduce resources for tests
mk: define objcopy-specific target and arch app/test: support resources externally linked app/test: add functions to create files from resources app/test: support resources archived by tar app/test: use linked list to store PCI drivers app/test: extract test_pci_setup and test_pci_cleanup app/test: convert current pci_test into a single test case eal/pci: allow to override sysfs
app/test: do not dump PCI devices in blacklist test

 app/test/Makefile                                  |  31 +++
 app/test/autotest_data.py                          |   6 +
 app/test/resource.c                                | 301 +++++++++++++++++++++
 app/test/resource.h                                | 135 +++++++++
 app/test/test_pci.c                                | 147 +++++++++-
 .../bus/pci/devices/0000:01:00.0/class             |   1 +
 .../bus/pci/devices/0000:01:00.0/config            | Bin 0 -> 64 bytes
 .../devices/0000:01:00.0/consistent_dma_mask_bits  |   1 +
 .../bus/pci/devices/0000:01:00.0/device            |   1 +
 .../bus/pci/devices/0000:01:00.0/dma_mask_bits     |   1 +
 .../bus/pci/devices/0000:01:00.0/enable            |   1 +
 .../bus/pci/devices/0000:01:00.0/irq               |   1 +
 .../bus/pci/devices/0000:01:00.0/modalias          |   1 +
 .../bus/pci/devices/0000:01:00.0/msi_bus           |   1 +
 .../bus/pci/devices/0000:01:00.0/numa_node         |   1 +
 .../bus/pci/devices/0000:01:00.0/resource          |  13 +
 .../bus/pci/devices/0000:01:00.0/sriov_numvfs      |   1 +
 .../bus/pci/devices/0000:01:00.0/sriov_totalvfs    |   1 +
 .../bus/pci/devices/0000:01:00.0/subsystem_device  |   1 +
 .../bus/pci/devices/0000:01:00.0/subsystem_vendor  |   1 +
 .../bus/pci/devices/0000:01:00.0/uevent            |   6 +
 .../bus/pci/devices/0000:01:00.0/vendor            |   1 +
 app/test/test_resource.c                           | 132 +++++++++
 drivers/net/szedata2/rte_eth_szedata2.c            |   2 +-
 drivers/net/virtio/virtio_pci.c                    |   2 +-
 lib/librte_eal/bsdapp/eal/rte_eal_version.map      |   7 +
 lib/librte_eal/common/eal_common_pci.c             |  13 +
 lib/librte_eal/common/include/rte_pci.h            |   2 +-
 lib/librte_eal/linuxapp/eal/eal_pci.c              |  10 +-
 lib/librte_eal/linuxapp/eal/eal_pci_uio.c          |   7 +-
 lib/librte_eal/linuxapp/eal/eal_pci_vfio.c         |   2 +-
 lib/librte_eal/linuxapp/eal/rte_eal_version.map    |   7 +
 mk/arch/arm/rte.vars.mk                            |   5 +
 mk/arch/arm64/rte.vars.mk                          |   5 +
 mk/arch/i686/rte.vars.mk                           |   5 +
 mk/arch/x86_64/rte.vars.mk                         |   5 +
 mk/arch/x86_x32/rte.vars.mk                        |   5 +
 37 files changed, 836 insertions(+), 26 deletions(-)
 create mode 100644 app/test/resource.c
 create mode 100644 app/test/resource.h
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/class
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/config
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/consistent_dma_mask_bits
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/device
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/dma_mask_bits
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/enable
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/irq
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/modalias
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/msi_bus
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/numa_node
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/resource
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/sriov_numvfs
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/sriov_totalvfs
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/subsystem_device
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/subsystem_vendor
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/uevent
 create mode 100644 app/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/vendor
 create mode 100644 app/test/test_resource.c
Signature · 1 line
2.8.0