Skip to content

coccinelle: extend testing with check-pycocci

Luis R. Rodriguez cocci 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pycocci: use os.path.abspath() for gitnametools/pycocci+2 -10 replies
2/5pycocci: add git branch support to git librarytools/pycocci+9 -00 replies
3/5pycocci: skip proof if git dir is dirtydocs/pycocci.1 tools/pycocci+12 -00 replies
4/5pycocci: add clean version of SmPL <=> Patch equivalence proof supportdocs/pycocci.1 tools/pycocci+67 -220 replies
5/5pycocci: enable SmPL <=> Patch equivalence testsMakefile scripts/pycocci-check.sh tests/pycocci/code/0001-proto3/proto3.c +3 more+50 -01 reply

Reviews trailers per patch

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

PatchJulia Lawall
SeriesA-b
1/5
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [Cocci] [PATCH 0/5] coccinelle: extend testing with check-pycocci

Coccinelle has its own test framework built-in to spatch, this is used to test against small tests cases written in tests/*.c with their respective tests/*.cocci and tests/*.res file. This is however a bit limited as it only handles single C file. In real world projects where more files are used we need to support testing against larger series of file structures.

pycocci already had SmPL <=> Patch equivalence support, we can leverage this to extend testing in a more generic fashion. This does that work.

For now, we disable pycocci-tests given we touch your git tree for these tests.

Luis R. Rodriguez (5):
pycocci: use os.path.abspath() for gitname
pycocci: add git branch support to git library
pycocci: skip proof if git dir is dirty
pycocci: add clean version of SmPL <=> Patch equivalence proof support
pycocci: enable SmPL <=> Patch equivalence tests

 Makefile                                           |  3 +
 docs/pycocci.1                                     | 24 +++++-
 scripts/pycocci-check.sh                           |  8 ++
 tests/pycocci/code/0001-proto3/proto3.c            |  7 ++
 tests/pycocci/code/0001-proto3/proto3.h            |  3 +
 tests/pycocci/patches/0001-proto3.cocci            | 11 +++
 .../0001-proto3/0001-change-prototypes.patch       | 18 +++++
 tools/pycocci                                      | 89 ++++++++++++++++------
 8 files changed, 140 insertions(+), 23 deletions(-)
 create mode 100755 scripts/pycocci-check.sh
 create mode 100644 tests/pycocci/code/0001-proto3/proto3.c
 create mode 100644 tests/pycocci/code/0001-proto3/proto3.h
 create mode 100644 tests/pycocci/patches/0001-proto3.cocci
 create mode 100644 tests/pycocci/patches/0001-proto3/0001-change-prototypes.patch
Signature · 1 line
2.7.2