override 681 B

12345678910111213141516171819202122232425262728293031323334
  1. $description = "The following test creates a makefile to ...";
  2. $details = "";
  3. open(MAKEFILE,"> $makefile");
  4. # The Contents of the MAKEFILE ...
  5. print MAKEFILE "override define foo\n"
  6. ."\@echo First comes the definition.\n"
  7. ."\@echo Then comes the override.\n"
  8. ."endef\n"
  9. ."all: \n"
  10. ."\t\$(foo)\n";
  11. # END of Contents of MAKEFILE
  12. close(MAKEFILE);
  13. &run_make_with_options($makefile,"foo=Hello",&get_logfile);
  14. # Create the answer to what should be produced by this Makefile
  15. $answer = "First comes the definition.\n"
  16. ."Then comes the override.\n";
  17. &compare_output($answer,&get_logfile(1));
  18. 1;