-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- UTF-8 with BOM - UTF-16 with BOM
- Loading branch information
Showing
103 changed files
with
29,896 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+128 Bytes
integration-tests/testdata/smoketest_project_utf16/3rdparty/extlib.cc
Binary file not shown.
Binary file added
BIN
+84 Bytes
integration-tests/testdata/smoketest_project_utf16/3rdparty/extlib.hh
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.31 KB
integration-tests/testdata/smoketest_project_utf16/build/cppcheck-report.xml
Binary file not shown.
Binary file added
BIN
+3.72 KB
integration-tests/testdata/smoketest_project_utf16/build/gcovr-report.xml
Binary file not shown.
Binary file added
BIN
+2.15 KB
integration-tests/testdata/smoketest_project_utf16/build/xunit-report.xml
Binary file not shown.
28 changes: 28 additions & 0 deletions
28
integration-tests/testdata/smoketest_project_utf16/sonar-project.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# metadata | ||
sonar.projectKey=smoketest_project_utf16 | ||
|
||
# disable SCM support | ||
sonar.scm.disabled=true | ||
|
||
# disable XML sensor | ||
sonar.xml.file.suffixes=.disable-xml | ||
|
||
# file extensions assigned to the cxx programming language | ||
sonar.cxx.file.suffixes=.cxx,.cpp,.cc,.c,.hxx,.hpp,.hh,.h | ||
|
||
# comma-separated paths to directories containing source files | ||
sonar.sources=src | ||
|
||
# comma-separated paths to directories containing test source files | ||
sonar.tests=tests/unittests | ||
|
||
# comma-separated list of directories where the plugin should search for include files | ||
sonar.cxx.includeDirectories=src,3rdparty | ||
|
||
# paths to the reports | ||
sonar.cxx.cppcheck.reportPaths=build/cppcheck-report.xml | ||
sonar.cxx.cobertura.reportPaths=build/gcovr-report*.xml | ||
sonar.cxx.cobertura.itReportPaths=build/gcovr-report*.xml | ||
sonar.cxx.cobertura.overallReportPaths=build/gcovr-report*.xml | ||
sonar.cxx.valgrind.reportPaths=build/valgrind-report.xml | ||
sonar.cxx.xunit.reportPaths=build/xunit-report.xml |
Binary file not shown.
Binary file added
BIN
+1.73 KB
integration-tests/testdata/smoketest_project_utf16/src/lib/component1.cc
Binary file not shown.
Binary file added
BIN
+262 Bytes
integration-tests/testdata/smoketest_project_utf16/src/lib/component1.hh
Binary file not shown.
Binary file added
BIN
+1.72 KB
integration-tests/testdata/smoketest_project_utf16/src/lib/component2.cc
Binary file not shown.
Binary file added
BIN
+172 Bytes
integration-tests/testdata/smoketest_project_utf16/src/package1/fileA.hh
Binary file not shown.
Binary file added
BIN
+172 Bytes
integration-tests/testdata/smoketest_project_utf16/src/package2/fileB.hh
Binary file not shown.
Binary file added
BIN
+148 Bytes
integration-tests/testdata/smoketest_project_utf16/src/package2/fileC.hh
Binary file not shown.
Binary file added
BIN
+148 Bytes
integration-tests/testdata/smoketest_project_utf16/src/package2/fileD.hh
Binary file not shown.
Binary file added
BIN
+22.3 KB
...tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest-death-test.h
Binary file not shown.
Binary file added
BIN
+16.8 KB
...on-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest-message.h
Binary file not shown.
Binary file added
BIN
+151 KB
...tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest-param-test.h
Binary file not shown.
Binary file added
BIN
+60.7 KB
...n-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest-printers.h
Binary file not shown.
Binary file added
BIN
+19.9 KB
...ration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest-spi.h
Binary file not shown.
Binary file added
BIN
+13 KB
...-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest-test-part.h
Binary file not shown.
Binary file added
BIN
+20.5 KB
...tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest-typed-test.h
Binary file not shown.
Binary file added
BIN
+165 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest.h
Binary file not shown.
Binary file added
BIN
+30.3 KB
...-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest_pred_impl.h
Binary file not shown.
Binary file added
BIN
+4.65 KB
...ation-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/gtest_prod.h
Binary file not shown.
Binary file added
BIN
+25.8 KB
...ketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-death-test-internal.h
Binary file not shown.
Binary file added
BIN
+19.4 KB
...estdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-filepath.h
Binary file not shown.
Binary file added
BIN
+94.8 KB
...estdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-internal.h
Binary file not shown.
Binary file added
BIN
+16.2 KB
...tdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-linked_ptr.h
Binary file not shown.
Binary file added
BIN
+340 KB
...etest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-param-util-generated.h
Binary file not shown.
Binary file added
BIN
+48.5 KB
...tdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-param-util.h
Binary file not shown.
Binary file added
BIN
+125 KB
...ts/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-port.h
Binary file not shown.
Binary file added
BIN
+27.2 KB
.../testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-string.h
Binary file not shown.
Binary file added
BIN
+56.8 KB
...s/testdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-tuple.h
Binary file not shown.
Binary file added
BIN
+18.7 KB
...tdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-tuple.h.pump
Binary file not shown.
Binary file added
BIN
+369 KB
...stdata/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-type-util.h
Binary file not shown.
Binary file added
BIN
+18.8 KB
...a/smoketest_project_utf16/tests/gtest-1.6.0/include/gtest/internal/gtest-type-util.h.pump
Binary file not shown.
Binary file added
BIN
+4.32 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-all.cc
Binary file not shown.
Binary file added
BIN
+93.1 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-death-test.cc
Binary file not shown.
Binary file added
BIN
+28.6 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-filepath.cc
Binary file not shown.
Binary file added
BIN
+80.7 KB
...gration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-internal-inl.h
Binary file not shown.
Binary file added
BIN
+50.9 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-port.cc
Binary file not shown.
Binary file added
BIN
+24.2 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-printers.cc
Binary file not shown.
Binary file added
BIN
+8.41 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-test-part.cc
Binary file not shown.
Binary file added
BIN
+7.54 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest-typed-test.cc
Binary file not shown.
Binary file added
BIN
+361 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest.cc
Binary file not shown.
Binary file added
BIN
+3.54 KB
integration-tests/testdata/smoketest_project_utf16/tests/gtest-1.6.0/src/gtest_main.cc
Binary file not shown.
Binary file added
BIN
+1.29 KB
integration-tests/testdata/smoketest_project_utf16/tests/unittests/test_component1.cc
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
integration-tests/testdata/smoketest_project_utf8_bom/3rdparty/extlib.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int very_useful_function(int a, int b){ | ||
return a * b; | ||
} |
1 change: 1 addition & 0 deletions
1
integration-tests/testdata/smoketest_project_utf8_bom/3rdparty/extlib.hh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
int very_useful_function(int a, int b); |
7 changes: 7 additions & 0 deletions
7
integration-tests/testdata/smoketest_project_utf8_bom/Readme.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
This project is used for integration testing. Tested features: | ||
- files in the folder are UTF-8 with BOM | ||
- parsing / ast construction / basic metrics like ncloc, classes etc. | ||
- feeding of issues using: | ||
- a cppcheck report | ||
- a valgrind report | ||
- unit test statistics, using the junitReport format |
48 changes: 48 additions & 0 deletions
48
integration-tests/testdata/smoketest_project_utf8_bom/build/cppcheck-report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<results version="2"> | ||
<cppcheck version="1.61"/> | ||
<errors> | ||
<error id="unusedVariable" severity="style" msg="Unused variable: x"> | ||
<location file="src/lib/component1.cc" line="17" /> | ||
</error> | ||
<error id="unreadVariable" severity="style" msg="Variable 'i' is assigned a value that is never used."> | ||
<location file="src/lib/component1.cc" line="37" /> | ||
</error> | ||
<error id="deallocDealloc" severity="error" msg="Deallocating a deallocated pointer: ip"> | ||
<location file="src/lib/component1.cc" line="47" /> | ||
</error> | ||
<error id="doubleFree" severity="error" msg="Memory pointed to by 'ip' is freed twice."> | ||
<location file="src/lib/component1.cc" line="47" /> | ||
</error> | ||
<error id="uninitvar" severity="error" msg="Uninitialized variable: a"> | ||
<location file="src/lib/component1.cc" line="32" /> | ||
</error> | ||
<error id="unusedVariable" severity="style" msg="Unused variable: x"> | ||
<location file="src/lib/component2.cc" line="16" /> | ||
</error> | ||
<error id="unreadVariable" severity="style" msg="Variable 'i' is assigned a value that is never used."> | ||
<location file="src/lib/component2.cc" line="36" /> | ||
</error> | ||
<error id="deallocDealloc" severity="error" msg="Deallocating a deallocated pointer: ip"> | ||
<location file="src/lib/component2.cc" line="46" /> | ||
</error> | ||
<error id="doubleFree" severity="error" msg="Memory pointed to by 'ip' is freed twice."> | ||
<location file="src/lib/component2.cc" line="46"/> | ||
</error> | ||
<error id="uninitvar" severity="error" msg="Uninitialized variable: a"> | ||
<location file="src/lib/component2.cc" line="31"/> | ||
</error> | ||
<!-- alternative notation for the file path. --> | ||
<error id="unusedFunction" severity="style" msg="The function 'do_valgrind_errors' is never used."> | ||
<location file="./src/lib/component1.cc" line="24" /> | ||
</error> | ||
<!-- Violation for a file which does not exist. Should not be saved. --> | ||
<error id="unusedFunction" severity="style" msg="The function 'do_valgrind_errors' is never used."> | ||
<location file="src/lib/component_XXX.cc" line="24" /> | ||
</error> | ||
<error id="missingInclude" severity="style" msg="Cppcheck cannot find all the include files. Cppcheck can check the code without the include files found. But the results will probably be more accurate if all the include files are found. Please check your project's include directories and add all of them as include directories for Cppcheck. To see what files Cppcheck cannot find use --check-config."> | ||
<location file="*" /> | ||
</error> | ||
</errors> | ||
</results> | ||
|
48 changes: 48 additions & 0 deletions
48
integration-tests/testdata/smoketest_project_utf8_bom/build/gcovr-report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" ?> | ||
<!DOCTYPE coverage | ||
SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'> | ||
<coverage branch-rate="0.5" line-rate="1.0" timestamp="1405885702" version="gcovr 2.4 (r2774)"> | ||
<sources> | ||
<source>.</source> | ||
</sources> | ||
<packages> | ||
<package branch-rate="0.5" complexity="0.0" line-rate="1.0" name="src.lib"> | ||
<classes> | ||
<class branch-rate="0.5" complexity="0.0" filename="src/lib/component1.cc" line-rate="1.0" name="component1_cc"> | ||
<lines> | ||
<line branch="true" condition-coverage="50% (1/2)" hits="2" number="32"> | ||
<conditions> | ||
<condition coverage="50%" number="0" type="jump"/> | ||
</conditions> | ||
</line> | ||
<line branch="false" hits="2" number="35"/> | ||
<line branch="false" hits="2" number="36"/> | ||
<line branch="false" hits="2" number="37"/> | ||
<line branch="false" hits="2" number="40"/> | ||
<line branch="false" hits="2" number="41"/> | ||
<line branch="false" hits="2" number="42"/> | ||
<line branch="false" hits="4" number="11"/> | ||
<line branch="false" hits="2" number="45"/> | ||
<line branch="false" hits="2" number="46"/> | ||
<line branch="false" hits="2" number="47"/> | ||
<line branch="false" hits="2" number="50"/> | ||
<line branch="true" condition-coverage="50% (1/2)" hits="2" number="51"> | ||
<conditions> | ||
<condition coverage="50%" number="0" type="jump"/> | ||
</conditions> | ||
</line> | ||
<line branch="false" hits="4" number="20"/> | ||
<line branch="false" hits="2" number="24"/> | ||
<line branch="true" condition-coverage="50% (2/4)" hits="8" number="52"> | ||
<conditions> | ||
<condition coverage="50%" number="0" type="jump"/> | ||
</conditions> | ||
</line> | ||
<line branch="false" hits="2" number="28"/> | ||
</lines> | ||
</class> | ||
</classes> | ||
</package> | ||
</packages> | ||
</coverage> | ||
|
18 changes: 18 additions & 0 deletions
18
integration-tests/testdata/smoketest_project_utf8_bom/build/xunit-report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites tests="5" failures="2" disabled="1" errors="0" time="0.244" name="AllTests"> | ||
<testsuite name="Component1Test" tests="5" failures="2" disabled="1" errors="0" time="0.184"> | ||
<testcase name="foo_successfull" status="run" time="0.018" classname="Component1Test" /> | ||
<testcase name="foo_failing" status="run" time="0.066" classname="Component1Test"> | ||
<failure message="Value of: 112
Expected: bar.foo()
Which is: 111" type=""><![CDATA[test_component1.cc:18 | ||
Value of: 112 | ||
Expected: bar.foo() | ||
Which is: 111]]></failure> | ||
</testcase> | ||
<testcase name="foo_throwing" status="run" time="0.065" classname="Component1Test"> | ||
<failure message="Unknown C++ exception thrown in the test body." type=""><![CDATA[unknown file | ||
Unknown C++ exception thrown in the test body.]]></failure> | ||
</testcase> | ||
<testcase name="DISABLED_foo_skipped" status="notrun" time="0" classname="Component1Test" /> | ||
<testcase name="foo_leaking" status="run" time="0.01" classname="Component1Test" /> | ||
</testsuite> | ||
</testsuites> |
Oops, something went wrong.