From adb266f686427fd5d0d5018fb7e859e3d8ef1ad9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 Jun 2014 13:07:38 +0300 Subject: Add sorting for test results. --- tests/run | 2 +- tests/testreport.txt | 40 ++++++++++++++++++++-------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/tests/run b/tests/run index e9f2c7d..79caa79 100755 --- a/tests/run +++ b/tests/run @@ -1,3 +1,3 @@ #!/bin/bash -../run/bin/mplint testsrc >testreport.txt +../run/bin/mplint testsrc |sort >testreport.txt diff --git a/tests/testreport.txt b/tests/testreport.txt index 322eda1..235864f 100644 --- a/tests/testreport.txt +++ b/tests/testreport.txt @@ -1,31 +1,31 @@ -[testsrc/bad/final1.cpp:25]: V007: Need add final or notfinal into class declaration -[testsrc/bad/final1.cpp:30]: V007: Need add final or notfinal into class declaration -[testsrc/bad/license1.cpp:1]: V005: Should be license header -[testsrc/bad/license2.cpp:2]: V005: Should be 'The ManaPlus Client' in header -[testsrc/bad/license3.cpp:19]: V005: License version not found. It must be GPL 2 -[testsrc/bad/license4.cpp:4]: V005: Missing ManaPlus developers copyrights -[testsrc/bad/license5.cpp:3]: V005: Missing copyrights section -[testsrc/bad/license6.cpp:5]: V005: Missing "This file is part of The ManaPlus Client." -[testsrc/bad/constructor1.cpp:34]: V006: Add space between constructor and ":". -[testsrc/bad/constructor1.cpp:35]: V006: Wrong align in initialisation list. -[testsrc/bad/constructor1.cpp:44]: V006: Wrong align in initialisation list. [testsrc/bad/constructor1.cpp:25]: V007: Need add final or notfinal into class declaration [testsrc/bad/constructor1.cpp:32]: V007: Need add final or notfinal into class declaration +[testsrc/bad/constructor1.cpp:34]: V006: Add space between constructor and ":". +[testsrc/bad/constructor1.cpp:35]: V006: Wrong align in initialisation list. [testsrc/bad/constructor1.cpp:41]: V007: Need add final or notfinal into class declaration +[testsrc/bad/constructor1.cpp:44]: V006: Wrong align in initialisation list. +[testsrc/bad/constructor1.h:23]: V007: Need add final or notfinal into class declaration +[testsrc/bad/constructor1.h:30]: V007: Need add final or notfinal into class declaration +[testsrc/bad/constructor1.h:32]: V006: Add space between constructor and ":". +[testsrc/bad/constructor1.h:33]: V006: Wrong align in initialisation list. +[testsrc/bad/constructor1.h:39]: V007: Need add final or notfinal into class declaration +[testsrc/bad/constructor1.h:42]: V006: Wrong align in initialisation list. +[testsrc/bad/debug1.cpp:25]: V004: Missing #include "debug.h". It need for profiling and memory debugging. +[testsrc/bad/debug1.h:23]: V003: Dont use #include "debug.h" in .h files. Probably need replace it to #include "localconsts.h" +[testsrc/bad/debug2.cpp:23]: V004: Last include must be #include "debug.h" +[testsrc/bad/final1.cpp:25]: V007: Need add final or notfinal into class declaration +[testsrc/bad/final1.cpp:30]: V007: Need add final or notfinal into class declaration [testsrc/bad/final1.h:23]: V007: Need add final or notfinal into class declaration [testsrc/bad/final1.h:27]: V007: Need add final or notfinal into class declaration -[testsrc/bad/debug1.h:23]: V003: Dont use #include "debug.h" in .h files. Probably need replace it to #include "localconsts.h" +[testsrc/bad/license1.cpp:1]: V005: Should be license header [testsrc/bad/license1.h:1]: V005: Should be license header +[testsrc/bad/license2.cpp:2]: V005: Should be 'The ManaPlus Client' in header [testsrc/bad/license2.h:2]: V005: Should be 'The ManaPlus Client' in header +[testsrc/bad/license3.cpp:19]: V005: License version not found. It must be GPL 2 [testsrc/bad/license3.h:19]: V005: License version not found. It must be GPL 2 +[testsrc/bad/license4.cpp:4]: V005: Missing ManaPlus developers copyrights [testsrc/bad/license4.h:4]: V005: Missing ManaPlus developers copyrights +[testsrc/bad/license5.cpp:3]: V005: Missing copyrights section [testsrc/bad/license5.h:3]: V005: Missing copyrights section +[testsrc/bad/license6.cpp:5]: V005: Missing "This file is part of The ManaPlus Client." [testsrc/bad/license6.h:5]: V005: Missing "This file is part of The ManaPlus Client." -[testsrc/bad/constructor1.h:32]: V006: Add space between constructor and ":". -[testsrc/bad/constructor1.h:33]: V006: Wrong align in initialisation list. -[testsrc/bad/constructor1.h:42]: V006: Wrong align in initialisation list. -[testsrc/bad/constructor1.h:23]: V007: Need add final or notfinal into class declaration -[testsrc/bad/constructor1.h:30]: V007: Need add final or notfinal into class declaration -[testsrc/bad/constructor1.h:39]: V007: Need add final or notfinal into class declaration -[testsrc/bad/debug1.cpp:25]: V004: Missing #include "debug.h". It need for profiling and memory debugging. -[testsrc/bad/debug2.cpp:23]: V004: Last include must be #include "debug.h" -- cgit v1.2.3-60-g2f50