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