/[make]/make/tests/scripts/variables/automatic
ViewVC logotype

Diff of /make/tests/scripts/variables/automatic

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by bosk, Tue Mar 15 15:31:47 2005 UTC revision 1.7 by psmith, Mon Oct 24 13:01:41 2005 UTC
# Line 27  $(dir)/bar.y baz.z : ; touch $@ Line 27  $(dir)/bar.y baz.z : ; touch $@
27  EOF  EOF
28  close(MAKEFILE);  close(MAKEFILE);
29    
30  # TEST #1 -- simple test  # TEST #0 -- simple test
31  # -------  # -------
32    
33  # Touch these into the past  # Touch these into the past
# Line 46  touch $dir/foo.x\n"; Line 46  touch $dir/foo.x\n";
46    
47  unlink(qw(foo.x bar.y baz.z));  unlink(qw(foo.x bar.y baz.z));
48    
49  # TEST #2 -- test the SysV emulation of $$@ etc.  # TEST #1 -- test the SysV emulation of $$@ etc.
50  # -------  # -------
51    
52  $makefile2 = &get_tmpfile;  $makefile2 = &get_tmpfile;
# Line 54  $makefile2 = &get_tmpfile; Line 54  $makefile2 = &get_tmpfile;
54  open(MAKEFILE, "> $makefile2");  open(MAKEFILE, "> $makefile2");
55  print MAKEFILE "dir = $dir\n";  print MAKEFILE "dir = $dir\n";
56  print MAKEFILE <<'EOF';  print MAKEFILE <<'EOF';
57    .SECONDEXPANSION:
58  .SUFFIXES:  .SUFFIXES:
59  .DEFAULT: ; @echo '$@'  .DEFAULT: ; @echo '$@'
60    
# Line 78  $answer = ".x\n$dir/x.z.x\nx\n\$@.x\n$di Line 79  $answer = ".x\n$dir/x.z.x\nx\n\$@.x\n$di
79  $answer = "$dir/biz.x\n$dir.x\nbiz.x\n";  $answer = "$dir/biz.x\n$dir.x\nbiz.x\n";
80  &compare_output($answer, &get_logfile(1));  &compare_output($answer, &get_logfile(1));
81    
82  # TEST #3 -- test for Savannah bug #12320.  # TEST #2 -- test for Savannah bug #12320.
83  #  #
84  run_make_test('  run_make_test('
85  .SUFFIXES: .b .src  .SUFFIXES: .b .src

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26