File: 2006_09_20_build_cache_none.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 (51 lines) | stat: -rw-r--r-- 1,840 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
###	SPAR <http://www.cpan.org/scripts/>
###	5	755	1067749983	1174084135	is_relevant.pl
#
# Test if unpacking managed to set the timestamp required by SIGNATURE.
#

!no_symlink && (stat 'build_cache/small')[9] == 1103934737
###	13	664	1124224809	1233523265	Makeppfile
# This used to cause an error, so we should test that it works:
build_cache none

perl {
  use Mpp::BuildCacheControl;
}

# Cache entries have no \n, to avoid DOS headaches.
# The --size option used to be messed up, so check for that:
$(phony default):
	&create -e build_cache group_cache # Extend to group.
	&clean -v --build-info-check --size +10 build_cache   # Replicates retained file.
	perl { chdir 'build_cache'; -e and die for qw(big corrupt none wrong) }
###	D	755	1148062992	1103934737	build_cache
###	1	644	1148062992	1180026366	build_cache/build_cache_options.pl
{ SUBDIR_CHARS => [] }
###	D	755	1148062992	1103934737	build_cache/.makepp
###	-1	644	1148062992	1103934737	build_cache/big
This file is too big to survive a cleaning.
###	-2	644	1148062992	1173968421	build_cache/.makepp/big.mk
SIGNATURE=1103934737,43
END=
###	0	644	1148062992	1103934737	build_cache/corrupt
###	1	644	1148062992	1173968421	build_cache/.makepp/corrupt.mk
SIGNATURE=1103934737,0
###	-1	644	1148062992	1103934737	build_cache/none
no info
###	-1	644	1148062992	1103934737	build_cache/small
OK
###	-2	644	1148062992	1173968388	build_cache/.makepp/small.mk
SIGNATURE=1103934737,2
END=
###	0	644	1148062992	1103934737	build_cache/wrong
###	-2	644	1148062992	1173968388	build_cache/.makepp/wrong.mk
SIGNATURE=wrong
END=
###	D	755	1180344749	1180344749	answers
###	D	755	1180344749	1180344749	answers/build_cache
###	-1	644	1180344749	1180344749	answers/build_cache/small
OK
###	D	755	1180344749	1180344749	answers/group_cache
###	-1	644	1180344749	1180344749	answers/group_cache/small
OK