1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
-- Default project use for tests
--
-- The scenario variable TEST_SOURCES is automatically set by the
-- driver to point to the test sources.
with "gnatcoll";
project Test is
Test_Sources := External("TEST_SOURCES");
for Source_Dirs use (".", Test_Sources);
for Main use ("test.adb");
for Languages use ("Ada", "C");
for Object_Dir use "obj";
package Compiler is
-- Building test programs in debug mode makes it easier to work with
-- tests.
for Switches ("Ada") use
("-g", "-O1", "-gnata", "-gnatyg", "-gnateE",
"-gnatwaCJe", "-fstack-check", "-gnatw.P");
for Switches ("C") use ("-g", "-Wunreachable-code");
end Compiler;
end Test;
|