<html lang="en"> <head> <title>Ada Tests - GNU Compiler Collection (GCC) Internals</title> <meta http-equiv="Content-Type" content="text/html"> <meta name="description" content="GNU Compiler Collection (GCC) Internals"> <meta name="generator" content="makeinfo 4.13"> <link title="Top" rel="start" href="index.html#Top"> <link rel="up" href="Testsuites.html#Testsuites" title="Testsuites"> <link rel="prev" href="Test-Directives.html#Test-Directives" title="Test Directives"> <link rel="next" href="C-Tests.html#C-Tests" title="C Tests"> <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> <!-- Copyright (C) 1988-2015 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being ``Funding Free Software'', the Front-Cover Texts being (a) (see below), and with the Back-Cover Texts being (b) (see below). A copy of the license is included in the section entitled ``GNU Free Documentation License''. (a) The FSF's Front-Cover Text is: A GNU Manual (b) The FSF's Back-Cover Text is: You have freedom to copy and modify this GNU Manual, like GNU software. Copies published by the Free Software Foundation raise funds for GNU development.--> <meta http-equiv="Content-Style-Type" content="text/css"> <style type="text/css"><!-- pre.display { font-family:inherit } pre.format { font-family:inherit } pre.smalldisplay { font-family:inherit; font-size:smaller } pre.smallformat { font-family:inherit; font-size:smaller } pre.smallexample { font-size:smaller } pre.smalllisp { font-size:smaller } span.sc { font-variant:small-caps } span.roman { font-family:serif; font-weight:normal; } span.sansserif { font-family:sans-serif; font-weight:normal; } --></style> </head> <body> <div class="node"> <a name="Ada-Tests"></a> <p> Next: <a rel="next" accesskey="n" href="C-Tests.html#C-Tests">C Tests</a>, Previous: <a rel="previous" accesskey="p" href="Test-Directives.html#Test-Directives">Test Directives</a>, Up: <a rel="up" accesskey="u" href="Testsuites.html#Testsuites">Testsuites</a> <hr> </div> <h3 class="section">7.3 Ada Language Testsuites</h3> <p>The Ada testsuite includes executable tests from the ACATS testsuite, publicly available at <a href="http://www.ada-auth.org/acats.html">http://www.ada-auth.org/acats.html</a>. <p>These tests are integrated in the GCC testsuite in the <samp><span class="file">ada/acats</span></samp> directory, and enabled automatically when running <code>make check</code>, assuming the Ada language has been enabled when configuring GCC. <p>You can also run the Ada testsuite independently, using <code>make check-ada</code>, or run a subset of the tests by specifying which chapter to run, e.g.: <pre class="smallexample"> $ make check-ada CHAPTERS="c3 c9" </pre> <p>The tests are organized by directory, each directory corresponding to a chapter of the Ada Reference Manual. So for example, <samp><span class="file">c9</span></samp> corresponds to chapter 9, which deals with tasking features of the language. <p>There is also an extra chapter called <samp><span class="file">gcc</span></samp> containing a template for creating new executable tests, although this is deprecated in favor of the <samp><span class="file">gnat.dg</span></samp> testsuite. <p>The tests are run using two <samp><span class="command">sh</span></samp> scripts: <samp><span class="file">run_acats</span></samp> and <samp><span class="file">run_all.sh</span></samp>. To run the tests using a simulator or a cross target, see the small customization section at the top of <samp><span class="file">run_all.sh</span></samp>. <p>These tests are run using the build tree: they can be run without doing a <code>make install</code>. </body></html>