File: implicit_load.test

package info (click to toggle)
makepp 2.0.98.5-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,744 kB
  • sloc: perl: 15,893; makefile: 38; javascript: 25; sh: 1
file content (68 lines) | stat: -rw-r--r-- 1,838 bytes parent folder | download | duplicates (3)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
###	SPAR <http://www.cpan.org/scripts/>
###	11	755	1143325379	1143323853	makepp_test_script.pl
#
# Test of implicit makefile loading, which should fail when leaving a root.
# It should always succeed when there is no RootMakeppfile.
# It should not go to a forbidden subdir.
#
eval { makepp '-Crootdir' } and die;

rename 'rootdir/RootMakeppfile', 'rootdir/Makeppfile';
makepp '-Crootdir';

makepp;
###	9	644	1143324076	990028520	Makeppfile
$(phony all): a c

no_implicit_load subdir2

a: subdir1/b
	&cat $^ -o $@

c: subdir2/d subdir2/subsubdir/e
	&cat $^ -o $@
###	D	755	1143323853	1143323853	rootdir/
###	2	644	1143324379	1143323853	rootdir/RootMakeppfile
x: ../outside/y
	&cp -l $(input) x
###	D	755	1143323853	1143323853	outside/
###	2	644	1143324382	1143323853	outside/Makeppfile
y:
	&echo foo bar -o y
###	D	755	1067451875	990028507	subdir1/
###	2	644	1067451875	990027944	subdir1/Makeppfile
b:
	&echo 'b' -o $@
###	D	755	1067451875	990028498	subdir2/
###	1	644	1067451875	990028523	subdir2/d
d
###	5	644	1067451875	990028042	subdir2/Makeppfile
#
# This makefile should not be implicitly loaded.
#
c:
	&echo 'Bogus garbage from wrongly loaded makefile' -o $@
###	1	644	1067451875	990028068	subdir2/d_orig
d
###	D	755	1067451875	990028498	subdir2/subsubdir/
###	1	644	1067451875	990028523	subdir2/subsubdir/e
e
###	5	644	1067451875	990028050	subdir2/subsubdir/Makeppfile
#
# This makefile should not be implicitly loaded.
#
e:
	&echo 'Bogus garbage from wrongly loaded makefile' -o $@
###	1	644	1067451875	990028075	subdir2/subsubdir/e_orig
e
###	D	755	1067451875	990028444	answers/
###	D	755	1143323853	1143323853	answers/rootdir/
###	1	644	1143324537	1143323853	answers/rootdir/x
foo bar
###	1	644	1067451875	990028444	answers/a
b
###	2	644	1067451875	990028444	answers/c
d
e
###	1	644	1067451875	1190053838	answers/n_files
3 1 0