Skip to content

Convert CAN tests to new LTP API

Richard Palethorpe linux-can ltp 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 1 replyIn review
  2. v37 patches 11 repliesSuperseded
  3. v26 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches0 repliesSuperseded

Changes in v4 from the cover letter

* Remove IFF_ECHO fallback which is not needed with only linux/if.h
* Add missing static to function
* State effect of echo on coverage
* remove shell script from runtest file
* Add various git trailers

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7API: Add FILE_SCANF to new libinclude/tst_safe_file_ops.h+3 -00 replies
2/7can: Add can_common.h for vcan device setuptestcases/network/can/filter-tests/can_common.h+71 -00 replies
3/7can: Add COPYING with dual license texttestcases/network/can/filter-tests/COPYING+35 -00 replies
4/7can_filter: Convert to new librarytestcases/network/can/filter-tests/can_filter.c+124 -1930 replies
5/7can_recv_own_msgs: Convert to new librarytestcases/network/can/filter-tests/can_rcv_own_msgs.c+88 -1850 replies
6/7can: Remove obsolete test wrapper scriptruntest/can testcases/network/can/Makefile testcases/network/can/filter-tests/00_Descriptions.txt +3 more+5 -1130 replies
7/7can: Update contact detailstestcases/network/can/filter-tests/00_Descriptions.txt testcases/network/can/filter-tests/Makefile+3 -40 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchCyril HrubisPetr VorelOliver Hartkopp
1/7R-b R-b
2/7R-b R-b A-b
3/7R-b R-b A-b
4/7R-b R-b A-b
5/7R-b R-b A-b
6/7R-b R-b A-b
7/7R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/7] Convert CAN tests to new LTP API

Hello,

This converts the CAN tests to the modern Linux Test Project API and removes the wrapper script. To be clear, this is a patch-set for the LTP *not* the kernel tree or can-utils.

I have tried to keep the core test behaviour the same, but (for example) moving to the SAFE_ functions will naturally introduce some changes in error checking. Deliberate behavioral changes have been noted in the commit messages.

FYI, we appear to have 4 CAN tests in LTP including two tests for SLCAN (pty03, pty04). It appears these could be quite easily extended.

V2: Update e-mail addresses and resend
V3:
* Add COPYING and use dual license SPDX identifier
* Fix compilation issues with can_common.h
V4:
* Remove IFF_ECHO fallback which is not needed with only linux/if.h
* Add missing static to function
* State effect of echo on coverage
* remove shell script from runtest file
* Add various git trailers

Richard Palethorpe (7):
API: Add FILE_SCANF to new lib
can: Add can_common.h for vcan device setup
can: Add COPYING with dual license text
can_filter: Convert to new library
can_recv_own_msgs: Convert to new library
can: Remove obsolete test wrapper script
can: Update contact details

 include/tst_safe_file_ops.h                   |   3 +
 runtest/can                                   |   4 +-
 testcases/network/can/Makefile                |   2 -
 .../can/filter-tests/00_Descriptions.txt      |   6 +-
 testcases/network/can/filter-tests/COPYING    |  35 ++
 testcases/network/can/filter-tests/INSTALL    |   3 +-
 testcases/network/can/filter-tests/Makefile   |   4 -
 .../network/can/filter-tests/can_common.h     |  71 ++++
 .../network/can/filter-tests/can_filter.c     | 317 +++++++-----------
 .../can/filter-tests/can_rcv_own_msgs.c       | 273 +++++----------
 .../network/can/filter-tests/can_run_tests.sh | 106 ------
 11 files changed, 329 insertions(+), 495 deletions(-)
 create mode 100644 testcases/network/can/filter-tests/COPYING
 create mode 100644 testcases/network/can/filter-tests/can_common.h
 delete mode 100755 testcases/network/can/filter-tests/can_run_tests.sh
Signature · 1 line
2.30.0