[5a7baa]: subsystemTests / rtr / Makefile.am Maximize Restore History

Download this file

Makefile.am    66 lines (57 with data), 1.9 kB

 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
AUTOMAKE_OPTIONS = 1.6 foreign
TESTS = ./runRTRTest.sh
check_SCRIPTS = runRTRTest.sh
check_DATA = \
root.cer \
as-1.roa \
as-2.roa \
as-3.roa \
as-4.roa \
as-5.roa \
as-6.roa
%.key:
../../cg/tools/gen_key "$@" 2048
root.cer: root.key root.options
cd ../../testbed/src && ./create_object CERT \
-f ../../subsystemTests/rtr/root.options \
outputfilename=../../subsystemTests/rtr/"$@" \
subjkeyfile=../../subsystemTests/rtr/"$<"
as-%.ee.cer: ee-%.key root.key root.cer ee.options
IP4="`printf '%u.0.1.0-%u.0.%u.255,%u.1.0.0-%u.%u.255.255' '$*' '$*' '$*' '$*' '$*' '$*'`"; \
IP6="`printf '%x::100-%x::%xff,%x:1::-%x:%x:ffff:ffff:ffff:ffff:ffff:ffff' '$*' '$*' '$*' '$*' '$*' '$*'`"; \
cd ../../testbed/src && ./create_object CERT \
-f ../../subsystemTests/rtr/ee.options \
outputfilename=../../subsystemTests/rtr/"$@" \
parentcertfile=../../subsystemTests/rtr/root.cer \
parentkeyfile=../../subsystemTests/rtr/root.key \
subjkeyfile=../../subsystemTests/rtr/"$<" \
serial="$*" \
subject="as$*" \
ipv4="$$IP4" \
ipv6="$$IP6" \
as="$*"
as-%.roa: as-%.ee.cer ee-%.key
IP4=""; IP6=""; \
for IP_OCTET in `seq 1 "$*"`; do \
IP4="$$IP4,`printf '%u.0.%u.0/24%%25' '$*' $$IP_OCTET`"; \
IP6="$$IP6,`printf '%x::%x00/120' '$*' $$IP_OCTET`"; \
done; \
for IP_OCTET in `seq 1 "$*"`; do \
IP4="$$IP4,`printf '%u.%u.0.0/16' '$*' $$IP_OCTET`"; \
IP6="$$IP6,`printf '%x:%x::/32%%127' '$*' $$IP_OCTET`"; \
done; \
IP4=`echo "$$IP4" | cut -c 2-`; \
IP6=`echo "$$IP6" | cut -c 2-`; \
cd ../../testbed/src && ./create_object ROA \
outputfilename=../../subsystemTests/rtr/"$@" \
eecertlocation=../../subsystemTests/rtr/"$<" \
eekeylocation=../../subsystemTests/rtr/"ee-$*.key" \
asid="$*" \
roaipv4="$$IP4" \
roaipv6="$$IP6"
EXTRA_DIST = \
*.options \
badPDUs.py \
*.correct \
querySpecs
CLEANFILES = *.log *.diff *.key *.cer *.roa