summaryrefslogtreecommitdiff
path: root/tests/scripts/features/sun-trailing-spaces
blob: 347e6ceb3e24d11ae462e53fb8d21bca48821d18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#                                                                    -*-perl-*-
$description = "In SunOS mode strip trailing spaces";

$details = "";

# !!! Note the spaces and tabs after hello !!!
run_make_test('

var_with_trailing_space = hello 
var_with_trailing_tab = hello	
var_with_trailing_tab_space_tab = hello	 	

space:
	@echo "$(var_with_trailing_space)world"
tab:
	@echo "$(var_with_trailing_tab)world"
tab_space_tab:
	@echo "$(var_with_trailing_tab_space_tab)world"

',
'space',
"hello world");

run_make_test(undef, '--sun space', "helloworld");
run_make_test(undef, '--sun tab', "helloworld");
run_make_test(undef, '--sun tab_space_tab', "helloworld");
run_make_test(undef, 'tab', "hello\tworld");
run_make_test(undef, 'tab_space_tab', "hello\t \tworld");

# This tells the test driver that the perl test script executed properly.
1;