File: 2003_11_14_timestamp_md5.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 (35 lines) | stat: -rw-r--r-- 926 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
###	SPAR <http://www.cpan.org/scripts/>
###	11	755	1119251973	1342865688	makepp_test_script.pl
{ open my $fh, '>', 'raw' }

# There is no guarantee that a bug will actually show up here, because it
# might always take long enough to load makepp that the timestamps always
# change on generated targets. If the environment is conducive to exposing
# such a bug, then it will usually happen by the 4th run.
makepp "X=$_" for 1..4;

c_grep '-v', '/^makepp[: ]/', 'raw', '-ocommands';

1;
###	1	644	1119251973	1208342214	makeppextra.pm
open STDOUT, '>>', 'raw';	# Doing this in run_tests can prevent raw from being deleted.
###	9	644	1163099047	1068849106	Makeppfile
override signature md5

$(phony default): y

x:
	&echo -o $(output) $(X)

y: x
	&cp $< $@
###	D	755	1068849350	1068849350	answers
###	8	644	1119253233	1068849337	answers/commands
&echo -o x 1
&cp x y
&echo -o x 2
&cp x y
&echo -o x 3
&cp x y
&echo -o x 4
&cp x y