Skip to content

tools: port tests to shunit2

Bartosz Golaszewski linux-gpio 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v11 patch 7 repliesSuperseded

Changes in v2 from the cover letter

- don't change the way symlinks are handled
- drop remaining bats-specific workarounds
- restore dropped calls to num_lines_is
- require shunit version 2.1.8 and add a test for it

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tools: tests: add short sleeps between generating edge eventstools/gpio-tools-test.bats+4 -00 replies
2/2tools: tests: port tests to shunit2README TODO configure.ac +3 more+262 -2782 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchKent Gibson
1/2
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] tools: port tests to shunit2

From: Bartosz Golaszewski <[email protected]>

This is a two-patch respin of the previous port of gpio-tools tests to shunit2. The first patch fixes a potential problem (which for me became real after the switch) with losing edge events. The second is the actual port.

v1 -> v2:
- don't change the way symlinks are handled
- drop remaining bats-specific workarounds
- restore dropped calls to num_lines_is
- require shunit version 2.1.8 and add a test for it

Bartosz Golaszewski (2):
tools: tests: add short sleeps between generating edge events
tools: tests: port tests to shunit2

 README                                        |   6 +-
 TODO                                          |   2 +-
 configure.ac                                  |   6 +-
 tools/Makefile.am                             |   4 +-
 tools/gpio-tools-test                         |  57 ---
 ...o-tools-test.bats => gpio-tools-test.bash} | 469 ++++++++++--------
 6 files changed, 266 insertions(+), 278 deletions(-)
 delete mode 100755 tools/gpio-tools-test
 rename tools/{gpio-tools-test.bats => gpio-tools-test.bash} (87%)
Signature · 1 line
2.39.2