]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
coccinelle: don't test UNITTEST code
authorEric Leblond <eric@regit.org>
Sun, 23 Sep 2012 16:05:32 +0000 (18:05 +0200)
committerEric Leblond <eric@regit.org>
Tue, 25 Sep 2012 14:24:39 +0000 (16:24 +0200)
qa/coccinelle/run_check.sh

index 7cf2030eb6bf6d081cd57db6006eb4d0b6d8149c..dce88d52e544f307d951e00e266c0453c1244026 100755 (executable)
@@ -10,7 +10,7 @@ fi
 for SMPL in *.cocci; do
        echo "Testing cocci file: $SMPL"
        for FILE in $LIST ; do
-               spatch -sp_file $SMPL  $PREFIX$FILE 2>/dev/null || exit 1;
+               spatch -sp_file $SMPL --undefined UNITTESTS  $PREFIX$FILE 2>/dev/null || exit 1;
        done
 done