mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-16 21:58:08 +00:00
Show diagnostics for tests, update absolute paths
This commit is contained in:
parent
fda39a1a8e
commit
598b53efff
15
src/test.cc
15
src/test.cc
@ -128,10 +128,12 @@ void RunTests() {
|
|||||||
{
|
{
|
||||||
"-xc++",
|
"-xc++",
|
||||||
"-std=c++11",
|
"-std=c++11",
|
||||||
"-IC:/Users/jacob/Desktop/superindex/indexer/third_party/",
|
"-IC:/Users/jacob/Desktop/cquery/third_party/",
|
||||||
"-IC:/Users/jacob/Desktop/superindex/indexer/third_party/doctest/",
|
"-IC:/Users/jacob/Desktop/cquery/third_party/doctest/",
|
||||||
"-IC:/Users/jacob/Desktop/superindex/indexer/third_party/rapidjson/include",
|
"-IC:/Users/jacob/Desktop/cquery/third_party/rapidjson/include",
|
||||||
"-IC:/Users/jacob/Desktop/superindex/indexer/src"
|
"-IC:/Users/jacob/Desktop/cquery/src",
|
||||||
|
"-isystemC:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/include",
|
||||||
|
"-isystemC:/Program Files (x86)/Windows Kits/10/Include/10.0.15063.0/ucrt"
|
||||||
},
|
},
|
||||||
"", nullopt,
|
"", nullopt,
|
||||||
&perf,
|
&perf,
|
||||||
@ -150,6 +152,11 @@ void RunTests() {
|
|||||||
if (db) {
|
if (db) {
|
||||||
VerifySerializeToFrom(db);
|
VerifySerializeToFrom(db);
|
||||||
actual_output = db->ToString();
|
actual_output = db->ToString();
|
||||||
|
|
||||||
|
for (lsDiagnostic diag : db->diagnostics) {
|
||||||
|
std::cerr << db->path << ":" << diag.range.start.line << ":" << diag.range.end.character << ": " << diag.message << std::endl;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compare output via rapidjson::Document to ignore any formatting
|
// Compare output via rapidjson::Document to ignore any formatting
|
||||||
|
@ -52,9 +52,9 @@ OUTPUT: funky_enum.cc
|
|||||||
{
|
{
|
||||||
"includes": [{
|
"includes": [{
|
||||||
"line": 2,
|
"line": 2,
|
||||||
"resolved_path": "C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/funky_enum.h"
|
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/funky_enum.h"
|
||||||
}],
|
}],
|
||||||
"dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/funky_enum.h"],
|
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/funky_enum.h"],
|
||||||
"types": [{
|
"types": [{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"usr": "c:@E@Foo",
|
"usr": "c:@E@Foo",
|
||||||
|
@ -117,9 +117,9 @@ OUTPUT: impl.cc
|
|||||||
{
|
{
|
||||||
"includes": [{
|
"includes": [{
|
||||||
"line": 1,
|
"line": 1,
|
||||||
"resolved_path": "C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/header.h"
|
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/header.h"
|
||||||
}],
|
}],
|
||||||
"dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/header.h"],
|
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/header.h"],
|
||||||
"funcs": [{
|
"funcs": [{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"usr": "c:@F@Impl#",
|
"usr": "c:@F@Impl#",
|
||||||
|
@ -23,9 +23,9 @@ OUTPUT: simple_impl.cc
|
|||||||
{
|
{
|
||||||
"includes": [{
|
"includes": [{
|
||||||
"line": 1,
|
"line": 1,
|
||||||
"resolved_path": "C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/simple_header.h"
|
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/simple_header.h"
|
||||||
}],
|
}],
|
||||||
"dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/simple_header.h"],
|
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/simple_header.h"],
|
||||||
"funcs": [{
|
"funcs": [{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"usr": "c:@F@impl#",
|
"usr": "c:@F@impl#",
|
||||||
|
@ -32,9 +32,9 @@ OUTPUT: static.cc
|
|||||||
{
|
{
|
||||||
"includes": [{
|
"includes": [{
|
||||||
"line": 1,
|
"line": 1,
|
||||||
"resolved_path": "C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/static.h"
|
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/static.h"
|
||||||
}],
|
}],
|
||||||
"dependencies": ["C:/Users/jacob/Desktop/superindex/indexer/tests/multi_file/static.h"],
|
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/static.h"],
|
||||||
"types": [{
|
"types": [{
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"usr": "c:@S@Buffer",
|
"usr": "c:@S@Buffer",
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
254
tests/stl.cc
254
tests/stl.cc
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user