Changeset 284 in kBuild for branches/GNU/src/gmake/tests/scripts/functions/word
- Timestamp:
- May 16, 2005 4:54:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/tests/scripts/functions/word
r53 r284 1 1 # -*-perl-*- 2 $description = "Test the word, words, and wordlist functions.\n"; 2 $description = "\ 3 Test the word, words, wordlist, firstword, and lastword functions.\n"; 3 4 4 5 $details = "\ … … 88 89 &compare_output($answer, &get_logfile(1)); 89 90 91 92 # TEST #8 -- test $(firstword ) 93 # 94 run_make_test(' 95 void := 96 list := $(void) foo bar baz # 97 98 a := $(word 1,$(list)) 99 b := $(firstword $(list)) 100 101 .PHONY: all 102 103 all: 104 @test "$a" = "$b" && echo $a 105 ', 106 '', 107 'foo'); 108 109 110 # TEST #9 -- test $(lastword ) 111 # 112 run_make_test(' 113 void := 114 list := $(void) foo bar baz # 115 116 a := $(word $(words $(list)),$(list)) 117 b := $(lastword $(list)) 118 119 .PHONY: all 120 121 all: 122 @test "$a" = "$b" && echo $a 123 ', 124 '', 125 'baz'); 126 90 127 # This tells the test driver that the perl test script executed properly. 91 128 1;
Note:
See TracChangeset
for help on using the changeset viewer.

