diff options
Diffstat (limited to 'clang-tools-extra/test/clangd')
| -rw-r--r-- | clang-tools-extra/test/clangd/Inputs/requests.json | 7 | ||||
| -rw-r--r-- | clang-tools-extra/test/clangd/Inputs/requests.log | 5 | ||||
| -rw-r--r-- | clang-tools-extra/test/clangd/index-tools.test | 4 |
3 files changed, 10 insertions, 6 deletions
diff --git a/clang-tools-extra/test/clangd/Inputs/requests.json b/clang-tools-extra/test/clangd/Inputs/requests.json new file mode 100644 index 00000000000..fdcb5edd0c0 --- /dev/null +++ b/clang-tools-extra/test/clangd/Inputs/requests.json @@ -0,0 +1,7 @@ +[{"MaxCandidateCount":100,"ProximityPaths":["/usr/home/user/clang-tools-extra/clangd/benchmarks/IndexBenchmark.cpp"],"Query":"OMP","RestrictForCodeCompletion":true,"Scopes":["clang::"]}, +{"MaxCandidateCount":100,"ProximityPaths":[],"Query":"s","RestrictForCodeCompletion":true,"Scopes":["llvm::", ""]}, +{"MaxCandidateCount":100,"ProximityPaths":[],"Query":"sy","RestrictForCodeCompletion":true,"Scopes":["llvm::", ""]}, +{"MaxCandidateCount":100,"ProximityPaths":[],"Query":"sys","RestrictForCodeCompletion":true,"Scopes":["llvm::", ""]}, +{"MaxCandidateCount":100,"ProximityPaths":[],"Query":"sys","RestrictForCodeCompletion":true,"Scopes":["llvm::", ""]}, +{"MaxCandidateCount":100,"ProximityPaths":[],"Query":"Dex","RestrictForCodeCompletion":true,"Scopes":["clang::clangd::", "clang::", "clang::clangd::dex::"]}, +{"MaxCandidateCount":100,"ProximityPaths":[],"Query":"Variable","RestrictForCodeCompletion":true,"Scopes":[""]}] diff --git a/clang-tools-extra/test/clangd/Inputs/requests.log b/clang-tools-extra/test/clangd/Inputs/requests.log deleted file mode 100644 index f0e66951618..00000000000 --- a/clang-tools-extra/test/clangd/Inputs/requests.log +++ /dev/null @@ -1,5 +0,0 @@ -V[09:08:34.301] Code complete: fuzzyFind("s", scopes=[llvm::]) -V[09:08:34.368] Code complete: fuzzyFind("sy", scopes=[llvm::]) -V[09:08:34.442] Code complete: fuzzyFind("sys", scopes=[llvm::]) -V[09:09:12.075] Code complete: fuzzyFind("Dex", scopes=[clang::clangd::, clang::, clang::clangd::dex::]) -V[09:09:12.075] Code complete: fuzzyFind("Variable", scopes=[]) diff --git a/clang-tools-extra/test/clangd/index-tools.test b/clang-tools-extra/test/clangd/index-tools.test index b01d5bcd174..e17d2fc84eb 100644 --- a/clang-tools-extra/test/clangd/index-tools.test +++ b/clang-tools-extra/test/clangd/index-tools.test @@ -1,3 +1,5 @@ # RUN: clangd-indexer %p/Inputs/BenchmarkSource.cpp -- -I%p/Inputs > %t.index # FIXME: By default, benchmarks are excluded from the list of default targets hence not built. Find a way to depend on benchmarks to run the next command. -# RUN: if [ -f %clangd-benchmark-dir/IndexBenchmark ]; then %clangd-benchmark-dir/IndexBenchmark %t.index %p/Inputs/requests.log --benchmark_min_time=0.01 ; fi +# RUN: if [ -f %clangd-benchmark-dir/IndexBenchmark ]; then %clangd-benchmark-dir/IndexBenchmark %t.index %p/Inputs/requests.json --benchmark_min_time=0.01 ; fi +# Pass invalid JSON file and check that IndexBenchmark fails to parse it. +# RUN: if [ -f %clangd-benchmark-dir/IndexBenchmark ]; then not %clangd-benchmark-dir/IndexBenchmark %t.index %t --benchmark_min_time=0.01 ; fi |

