1
0

strip 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # -*-perl-*-
  2. $description = "The following test creates a makefile to verify
  3. the ability of make to strip white space from lists of object.\n";
  4. $details = "The make file is built with a list of objects that contain white space
  5. These are then run through the strip command to remove it. This is then
  6. verified by echoing the result.\n";
  7. open(MAKEFILE,"> $makefile");
  8. # The Contents of the MAKEFILE ...
  9. print MAKEFILE <<'EOMAKE';
  10. TEST1 := "Is this TERMINAL fun? What makes you believe is this terminal fun? JAPAN is a WONDERFUL planet -- I wonder if we will ever reach their level of COMPARATIVE SHOPPING..."
  11. E :=
  12. TEST2 := $E try this and this $E
  13. define TEST3
  14. and these test out
  15. some
  16. blank lines
  17. endef
  18. .PHONY: all
  19. all:
  20. @echo '$(strip $(TEST1) )'
  21. @echo '$(strip $(TEST2) )'
  22. @echo '$(strip $(TEST3) )'
  23. EOMAKE
  24. # END of Contents of MAKEFILE
  25. close(MAKEFILE);
  26. &run_make_with_options($makefile,"",&get_logfile);
  27. # Create the answer to what should be produced by this Makefile
  28. $answer = "\"Is this TERMINAL fun? What makes you believe is this terminal fun? JAPAN is a WONDERFUL planet -- I wonder if we will ever reach their level of COMPARATIVE SHOPPING...\"
  29. try this and this
  30. and these test out some blank lines
  31. ";
  32. &compare_output($answer,&get_logfile(1));
  33. 1;