[clang-tools-extra] f8e53a9 - [clang-doc] Precommit end-to-end test for `--repository` option (#122565)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 6 11:06:51 PST 2025
Author: Paul Kirth
Date: 2025-02-06T11:06:47-08:00
New Revision: f8e53a93be91299818e761afa8effd8301999336
URL: https://github.com/llvm/llvm-project/commit/f8e53a93be91299818e761afa8effd8301999336
DIFF: https://github.com/llvm/llvm-project/commit/f8e53a93be91299818e761afa8effd8301999336.diff
LOG: [clang-doc] Precommit end-to-end test for `--repository` option (#122565)
We test the `--repository` output in the unit tests, but that option fails to
change the HTML output in the end-to-end tests. Upcoming patches will address
the incorrect behavior.
Added:
Modified:
clang-tools-extra/test/clang-doc/basic-project.test
Removed:
################################################################################
diff --git a/clang-tools-extra/test/clang-doc/basic-project.test b/clang-tools-extra/test/clang-doc/basic-project.test
index 7c46c52bae687ce..b6b43bb82bb15db 100644
--- a/clang-tools-extra/test/clang-doc/basic-project.test
+++ b/clang-tools-extra/test/clang-doc/basic-project.test
@@ -1,6 +1,6 @@
// RUN: rm -rf %t && mkdir -p %t/docs %t/build
// RUN: sed 's|$test_dir|%/S|g' %S/Inputs/basic-project/database_template.json > %t/build/compile_commands.json
-// RUN: clang-doc --format=html --output=%t/docs --executor=all-TUs %t/build/compile_commands.json
+// RUN: clang-doc --format=html --output=%t/docs --executor=all-TUs %t/build/compile_commands.json --repository=https://repository.com
// RUN: FileCheck %s -input-file=%t/docs/index_json.js -check-prefix=JSON-INDEX
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Shape.html -check-prefix=HTML-SHAPE
// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/Calculator.html -check-prefix=HTML-CALC
@@ -286,4 +286,4 @@
// MD-ALL-FILES: ## [GlobalNamespace](GlobalNamespace{{[\/]}}index.md)
// MD-INDEX: # C/C++ Reference
-// MD-INDEX: * Namespace: [GlobalNamespace](GlobalNamespace)
\ No newline at end of file
+// MD-INDEX: * Namespace: [GlobalNamespace](GlobalNamespace)
More information about the cfe-commits
mailing list