@@ -21,6 +21,7 @@ <h1>Hacking on Clang</h1>
21
21
< ul >
22
22
< li > < a href ="#docs "> Developer Documentation</ a > </ li >
23
23
< li > < a href ="#debugging "> Debugging</ a > </ li >
24
+ < li > < a href ="#testing "> Testing</ a > </ li >
24
25
< li > < a href ="#irgen "> LLVM IR Generation</ a > </ li >
25
26
</ ul >
26
27
@@ -56,6 +57,24 @@ <h2 id="debugging">Debugging</h2>
56
57
wrapped < tt > Type*</ tt > which you can then dump.</ li >
57
58
</ ul >
58
59
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
+
59
78
<!--=====================================================================-->
60
79
< h2 id ="irgen "> LLVM IR Generation</ h2 >
61
80
<!--=====================================================================-->
0 commit comments