Loading Makefile.am +1 −0 Original line number Diff line number Diff line Loading @@ -183,6 +183,7 @@ EXTRA_DIST+= \ scripts/maint/practracker/testdata/ex0.txt \ scripts/maint/practracker/testdata/ex1-expected.txt \ scripts/maint/practracker/testdata/ex1.txt \ scripts/maint/practracker/testdata/ex1-overbroad-expected.txt \ scripts/maint/practracker/testdata/ex.txt \ scripts/maint/practracker/testdata/header.h \ scripts/maint/practracker/testdata/not_c_file \ Loading scripts/maint/practracker/test_practracker.sh +6 −0 Original line number Diff line number Diff line Loading @@ -61,3 +61,9 @@ echo "ex1:" run_practracker --exceptions "${DATA}/ex1.txt" > "${TMPDIR}/ex1-received.txt" compare "${TMPDIR}/ex1-received.txt" "${DATA}/ex1-expected.txt" echo "ex1.overbroad:" run_practracker --exceptions "${DATA}/ex1.txt" --list-overbroad > "${TMPDIR}/ex1-overbroad-received.txt" compare "${TMPDIR}/ex1-overbroad-received.txt" "${DATA}/ex1-overbroad-expected.txt" scripts/maint/practracker/testdata/ex1-overbroad-expected.txt 0 → 100644 +2 −0 Original line number Diff line number Diff line problem file-size a.c 40 -> 38 problem file-size z.c 100 -> 0 scripts/maint/practracker/testdata/ex1.txt +4 −1 Original line number Diff line number Diff line problem file-size a.c 38 problem file-size a.c 40 problem include-count a.c 4 # this problem will produce an error problem function-size a.c:i_am_a_function() 8 Loading @@ -8,6 +8,9 @@ problem function-size a.c:another_function() 11 problem file-size b.c 15 # This is removed, and so will produce an error. # problem function-size b.c:foo() 4 # This exception isn't used. problem file-size z.c 100 problem function-size b.c:bar() 5 problem dependency-violation a.c 3 problem dependency-violation header.h 3 Loading Loading
Makefile.am +1 −0 Original line number Diff line number Diff line Loading @@ -183,6 +183,7 @@ EXTRA_DIST+= \ scripts/maint/practracker/testdata/ex0.txt \ scripts/maint/practracker/testdata/ex1-expected.txt \ scripts/maint/practracker/testdata/ex1.txt \ scripts/maint/practracker/testdata/ex1-overbroad-expected.txt \ scripts/maint/practracker/testdata/ex.txt \ scripts/maint/practracker/testdata/header.h \ scripts/maint/practracker/testdata/not_c_file \ Loading
scripts/maint/practracker/test_practracker.sh +6 −0 Original line number Diff line number Diff line Loading @@ -61,3 +61,9 @@ echo "ex1:" run_practracker --exceptions "${DATA}/ex1.txt" > "${TMPDIR}/ex1-received.txt" compare "${TMPDIR}/ex1-received.txt" "${DATA}/ex1-expected.txt" echo "ex1.overbroad:" run_practracker --exceptions "${DATA}/ex1.txt" --list-overbroad > "${TMPDIR}/ex1-overbroad-received.txt" compare "${TMPDIR}/ex1-overbroad-received.txt" "${DATA}/ex1-overbroad-expected.txt"
scripts/maint/practracker/testdata/ex1-overbroad-expected.txt 0 → 100644 +2 −0 Original line number Diff line number Diff line problem file-size a.c 40 -> 38 problem file-size z.c 100 -> 0
scripts/maint/practracker/testdata/ex1.txt +4 −1 Original line number Diff line number Diff line problem file-size a.c 38 problem file-size a.c 40 problem include-count a.c 4 # this problem will produce an error problem function-size a.c:i_am_a_function() 8 Loading @@ -8,6 +8,9 @@ problem function-size a.c:another_function() 11 problem file-size b.c 15 # This is removed, and so will produce an error. # problem function-size b.c:foo() 4 # This exception isn't used. problem file-size z.c 100 problem function-size b.c:bar() 5 problem dependency-violation a.c 3 problem dependency-violation header.h 3 Loading