xref: /netbsd-src/external/gpl2/gmake/dist/tests/scripts/test_template (revision 69606e3f5c9388e52aed8c120ad63c049ca45d8f)
1*69606e3fSchristos#                                                                    -*-perl-*-
2*69606e3fSchristos
3*69606e3fSchristos$description = "<FILL IN SHORT DESCRIPTION HERE>";
4*69606e3fSchristos$details = "<FILL IN DETAILS OF HOW YOU TEST WHAT YOU SAY YOU ARE TESTING>";
5*69606e3fSchristos
6*69606e3fSchristos# Run a make test.  See the documentation of run_make_test() in
7*69606e3fSchristos# run_make_tests.pl, but briefly the first argument is a string with the
8*69606e3fSchristos# contents of a makefile to be tested, the second is a string containing the
9*69606e3fSchristos# arguments to be passed to the make invocation, the third is a string
10*69606e3fSchristos# containing the expected output.  The fourth is the expected exit code for
11*69606e3fSchristos# make.  If not specified, it's assumed that the make program should succeed
12*69606e3fSchristos# (exit with 0).
13*69606e3fSchristos
14*69606e3fSchristosrun_make_test('Your test makefile goes here',
15*69606e3fSchristos              'Arguments to pass to make go here',
16*69606e3fSchristos              'Expected output from the invocation goes here');
17*69606e3fSchristos
18*69606e3fSchristos# There are various special tokens, options, etc.  See the full documentation
19*69606e3fSchristos# in run_make_tests.pl.
20*69606e3fSchristos
21*69606e3fSchristos
22*69606e3fSchristos# This tells the test driver that the perl test script executed properly.
23*69606e3fSchristos1;
24*69606e3fSchristos
25*69606e3fSchristos
26*69606e3fSchristos
27*69606e3fSchristos
28*69606e3fSchristos
29*69606e3fSchristos
30