[clang-tools-extra] [clang-doc] Add basic e2e test (PR #93928)

via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 7 23:07:07 PDT 2024


================
@@ -0,0 +1,361 @@
+// RUN: rm -rf %t && mkdir -p %t/build %t/include %t/src %t/docs
+// RUN: sed 's|$test_dir|%/t|g' %S/Inputs/clang-doc-project1/database_template.json > %t/build/compile_commands.json
+// RUN: cp %S/Inputs/clang-doc-project1/*.h  %t/include
+// RUN: cp %S/Inputs/clang-doc-project1/*.cpp %t/src
+// RUN: cd %t
+// RUN: clang-doc --format=html --executor=all-TUs --asset=%S/Inputs ./build/compile_commands.json
----------------
PeterChou1 wrote:

I removed the copying so the commands run should be simplified I based most of the commands off a test case I found here https://github.com/llvm/llvm-project/blob/main/clang-tools-extra/test/clang-move/move-class.cpp
its also why I used the .cpp extension for the test case 😅

https://github.com/llvm/llvm-project/pull/93928


More information about the cfe-commits mailing list