Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 1f6572c

Browse files
committed
Add some quick notes on the clang tests and running the LLVM test
suite with clang. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59536 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 1b6ff6f commit 1f6572c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

www/hacking.html

+19
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ <h1>Hacking on Clang</h1>
2121
<ul>
2222
<li><a href="#docs">Developer Documentation</a></li>
2323
<li><a href="#debugging">Debugging</a></li>
24+
<li><a href="#testing">Testing</a></li>
2425
<li><a href="#irgen">LLVM IR Generation</a></li>
2526
</ul>
2627

@@ -56,6 +57,24 @@ <h2 id="debugging">Debugging</h2>
5657
wrapped <tt>Type*</tt> which you can then dump.</li>
5758
</ul>
5859

60+
<!--=====================================================================-->
61+
<h2 id="testing">Testing</h2>
62+
<!--=====================================================================-->
63+
64+
<p>Clang includes a basic regression suite in the tree which can be
65+
run with <tt>make test</tt> from the top-level clang directory, or
66+
just <tt>make</tt> in the <em>test</em> sub-directory. <tt>make
67+
report</tt> can be used after running the tests to summarize the
68+
results, and <tt>make VERBOSE=1</tt> can be used to show more detail
69+
about what is being run.</p>
70+
71+
<p>For more intensive changes, running
72+
the <a href="http://llvm.org/docs/TestingGuide.html#testsuiterun">LLVM
73+
Test Suite</a> with clang is recommended. Currently the best way to
74+
override LLVMGCC, as in: <tt>make LLVMGCC="ccc -std=gnu89"
75+
TEST=nightly report</tt> (make sure ccc is in your PATH or use the
76+
full path).</p>
77+
5978
<!--=====================================================================-->
6079
<h2 id="irgen">LLVM IR Generation</h2>
6180
<!--=====================================================================-->

0 commit comments

Comments
 (0)