|
Last change
on this file since 53 was 53, checked in by bird, 21 years ago |
|
Initial revision
|
-
Property svn:eol-style
set to
native
|
|
File size:
657 bytes
|
| Line | |
|---|
| 1 | # -*-perl-mode-*-
|
|---|
| 2 |
|
|---|
| 3 | $description = "The following test creates a makefile to test
|
|---|
| 4 | makelevels in Make. It prints \$(MAKELEVEL) and then
|
|---|
| 5 | prints the environment variable MAKELEVEL";
|
|---|
| 6 |
|
|---|
| 7 | open(MAKEFILE,"> $makefile");
|
|---|
| 8 |
|
|---|
| 9 | # The Contents of the MAKEFILE ...
|
|---|
| 10 |
|
|---|
| 11 | print MAKEFILE <<EOF;
|
|---|
| 12 | SHELL = /bin/sh
|
|---|
| 13 | all:
|
|---|
| 14 | \t\@echo MAKELEVEL is \$(MAKELEVEL)
|
|---|
| 15 | \techo \$\$MAKELEVEL
|
|---|
| 16 | EOF
|
|---|
| 17 |
|
|---|
| 18 | # END of Contents of MAKEFILE
|
|---|
| 19 |
|
|---|
| 20 | close(MAKEFILE);
|
|---|
| 21 |
|
|---|
| 22 | # RUN MAKE
|
|---|
| 23 |
|
|---|
| 24 | &run_make_with_options($makefile,"",&get_logfile);
|
|---|
| 25 |
|
|---|
| 26 | # SET ANSWER
|
|---|
| 27 |
|
|---|
| 28 | $answer = "MAKELEVEL is 0\necho \$MAKELEVEL\n1\n";
|
|---|
| 29 |
|
|---|
| 30 | # COMPARE RESULTS
|
|---|
| 31 |
|
|---|
| 32 | &compare_output($answer,&get_logfile(1));
|
|---|
| 33 |
|
|---|
| 34 | 1;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.