summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/make/archives/t2/Makefile
blob: be58a91019399db4f0e3bcb0cb1f94ba83f8a209 (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
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
# $FreeBSD$
# This test checks the code reading archive files. The archive file
# is an old BSD file with __.SYMTAB and no long file names. Filenames
# are truncated to 16 characters.

all:
	-@make test_ok1 && echo "1 ok"
	-@make test_ok2 && echo "2 ok"
	-@make test_ok3 && echo "3 ok"
	-@make test_ok4 && echo "4 ok"
	-@make test_fail5 && echo "5 ok"
	-@make test_fail6 || echo "6 ok"
	-@make test_fail7 || echo "7 ok"

#############################################################################

test_ok1: libtest.a(short.o)
	@:

libtest.a(short.o): ood
	@:

#############################################################################

test_ok2: libtest.a(exactly15char.o)
	@:

libtest.a(exactly15char.o): ood
	@:

#############################################################################

test_ok3: libtest.a(exactly16chars.o)
	@:

libtest.a(exactly16chars.o): ood
	@:

#############################################################################

test_ok4: libtest.a(verylongobjectname.o)
	@:

libtest.a(verylongobjectname.o): ood
	@:

#############################################################################

# Truncated to 16 characters
test_fail5: libtest.a(verylongobjectna)
	@:

#############################################################################

# Truncated to 15 characters
test_fail6: libtest.a(verylongobjectn)
	@:

#############################################################################

test_fail7: libtest.a(\#1/20)
	@:

ood:
OpenPOWER on IntegriCloud