- identification_t supports now almost all id types
[strongswan.git] / Source / testing / Makefile.testcases
1 # Copyright (C) 2005 Jan Hutter, Martin Willi
2 # Hochschule fuer Technik Rapperswil
3 #
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
8 #
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12 # for more details.
13 #
14
15 TESTCASES_DIR= $(MAIN_DIR)testing/
16
17
18 $(BUILD_DIR)testcases.o :                       $(TESTCASES_DIR)testcases.c
19                                                                         $(CC) $(CFLAGS) -c -o $@ $<
20
21 TEST_OBJS+= $(BUILD_DIR)aes_cbc_crypter_test.o
22 $(BUILD_DIR)aes_cbc_crypter_test.o :    $(TESTCASES_DIR)aes_cbc_crypter_test.c $(TESTCASES_DIR)aes_cbc_crypter_test.h
23                                                                         $(CC) $(CFLAGS) -c -o $@ $<
24
25 TEST_OBJS+= $(BUILD_DIR)diffie_hellman_test.o
26 $(BUILD_DIR)diffie_hellman_test.o :     $(TESTCASES_DIR)diffie_hellman_test.c $(TESTCASES_DIR)diffie_hellman_test.h
27                                                                         $(CC) $(CFLAGS) -c -o $@ $<
28
29 TEST_OBJS+= $(BUILD_DIR)event_queue_test.o
30 $(BUILD_DIR)event_queue_test.o :        $(TESTCASES_DIR)event_queue_test.c $(TESTCASES_DIR)event_queue_test.h
31                                                                         $(CC) $(CFLAGS) -c -o $@ $<
32
33 TEST_OBJS+= $(BUILD_DIR)generator_test.o
34 $(BUILD_DIR)generator_test.o :          $(TESTCASES_DIR)generator_test.c $(TESTCASES_DIR)generator_test.h
35                                                                         $(CC) $(CFLAGS) -c -o $@ $<
36
37 TEST_OBJS+= $(BUILD_DIR)ike_sa_id_test.o
38 $(BUILD_DIR)ike_sa_id_test.o :          $(TESTCASES_DIR)ike_sa_id_test.c $(TESTCASES_DIR)ike_sa_id_test.h
39                                                                         $(CC) $(CFLAGS) -c -o $@ $<
40
41 TEST_OBJS+= $(BUILD_DIR)job_queue_test.o
42 $(BUILD_DIR)job_queue_test.o :          $(TESTCASES_DIR)job_queue_test.c $(TESTCASES_DIR)job_queue_test.h
43                                                                         $(CC) $(CFLAGS) -c -o $@ $<
44
45 TEST_OBJS+= $(BUILD_DIR)parser_test.o
46 $(BUILD_DIR)parser_test.o :                     $(TESTCASES_DIR)parser_test.c $(TESTCASES_DIR)parser_test.h
47                                                                         $(CC) $(CFLAGS) -c -o $@ $<
48
49 TEST_OBJS+= $(BUILD_DIR)hasher_test.o
50 $(BUILD_DIR)hasher_test.o :                     $(TESTCASES_DIR)hasher_test.c $(TESTCASES_DIR)hasher_test.h
51                                                                         $(CC) $(CFLAGS) -c -o $@ $<
52
53 TEST_OBJS+= $(BUILD_DIR)ike_sa_manager_test.o
54 $(BUILD_DIR)ike_sa_manager_test.o :     $(TESTCASES_DIR)ike_sa_manager_test.c $(TESTCASES_DIR)ike_sa_manager_test.h
55                                                                         $(CC) $(CFLAGS) -c -o $@ $<
56
57 TEST_OBJS+= $(BUILD_DIR)linked_list_test.o
58 $(BUILD_DIR)linked_list_test.o :        $(TESTCASES_DIR)linked_list_test.c $(TESTCASES_DIR)linked_list_test.h
59                                                                         $(CC) $(CFLAGS) -c -o $@ $<
60
61 TEST_OBJS+= $(BUILD_DIR)hmac_test.o
62 $(BUILD_DIR)hmac_test.o :                       $(TESTCASES_DIR)hmac_test.c $(TESTCASES_DIR)hmac_test.h
63                                                                         $(CC) $(CFLAGS) -c -o $@ $<
64
65 TEST_OBJS+= $(BUILD_DIR)hmac_signer_test.o
66 $(BUILD_DIR)hmac_signer_test.o :                $(TESTCASES_DIR)hmac_signer_test.c $(TESTCASES_DIR)hmac_signer_test.h
67                                                                         $(CC) $(CFLAGS) -c -o $@ $<
68                                                                                         
69 TEST_OBJS+= $(BUILD_DIR)scheduler_test.o
70 $(BUILD_DIR)scheduler_test.o :          $(TESTCASES_DIR)scheduler_test.c $(TESTCASES_DIR)scheduler_test.h
71                                                                         $(CC) $(CFLAGS) -c -o $@ $<
72                                                                         
73 TEST_OBJS+= $(BUILD_DIR)prf_plus_test.o
74 $(BUILD_DIR)prf_plus_test.o :           $(TESTCASES_DIR)prf_plus_test.c $(TESTCASES_DIR)prf_plus_test.h
75                                                                         $(CC) $(CFLAGS) -c -o $@ $<
76                                                                         
77 TEST_OBJS+= $(BUILD_DIR)send_queue_test.o
78 $(BUILD_DIR)send_queue_test.o :         $(TESTCASES_DIR)send_queue_test.c $(TESTCASES_DIR)send_queue_test.h
79                                                                         $(CC) $(CFLAGS) -c -o $@ $<
80                                                                         
81 TEST_OBJS+= $(BUILD_DIR)socket_test.o
82 $(BUILD_DIR)socket_test.o :                     $(TESTCASES_DIR)socket_test.c $(TESTCASES_DIR)socket_test.h
83                                                                         $(CC) $(CFLAGS) -c -o $@ $<
84                                                                         
85 TEST_OBJS+= $(BUILD_DIR)packet_test.o
86 $(BUILD_DIR)packet_test.o :                     $(TESTCASES_DIR)packet_test.c $(TESTCASES_DIR)packet_test.h
87                                                                         $(CC) $(CFLAGS) -c -o $@ $<
88                                                                         
89 TEST_OBJS+= $(BUILD_DIR)receiver_test.o
90 $(BUILD_DIR)receiver_test.o :           $(TESTCASES_DIR)receiver_test.c $(TESTCASES_DIR)receiver_test.h
91                                                                         $(CC) $(CFLAGS) -c -o $@ $<
92                                                                         
93 TEST_OBJS+= $(BUILD_DIR)ike_sa_test.o
94 $(BUILD_DIR)ike_sa_test.o :                     $(TESTCASES_DIR)ike_sa_test.c $(TESTCASES_DIR)ike_sa_test.h
95                                                                         $(CC) $(CFLAGS) -c -o $@ $<
96                                                                         
97 TEST_OBJS+= $(BUILD_DIR)sender_test.o
98 $(BUILD_DIR)sender_test.o :                     $(TESTCASES_DIR)sender_test.c $(TESTCASES_DIR)sender_test.h
99                                                                         $(CC) $(CFLAGS) -c -o $@ $<
100                                                                         
101 TEST_OBJS+= $(BUILD_DIR)thread_pool_test.o
102 $(BUILD_DIR)thread_pool_test.o :        $(TESTCASES_DIR)thread_pool_test.c $(TESTCASES_DIR)thread_pool_test.h
103                                                                         $(CC) $(CFLAGS) -c -o $@ $<
104                                                                         
105 TEST_OBJS+= $(BUILD_DIR)encryption_payload_test.o
106 $(BUILD_DIR)encryption_payload_test.o : $(TESTCASES_DIR)encryption_payload_test.c $(TESTCASES_DIR)encryption_payload_test.h
107                                                                         $(CC) $(CFLAGS) -c -o $@ $<
108
109 TEST_OBJS+= $(BUILD_DIR)connection_test.o
110 $(BUILD_DIR)connection_test.o :         $(TESTCASES_DIR)connection_test.c $(TESTCASES_DIR)connection_test.h
111                                                                         $(CC) $(CFLAGS) -c -o $@ $<
112
113 TEST_OBJS+= $(BUILD_DIR)policy_test.o
114 $(BUILD_DIR)policy_test.o :                     $(TESTCASES_DIR)policy_test.c $(TESTCASES_DIR)policy_test.h
115                                                                         $(CC) $(CFLAGS) -c -o $@ $<
116
117 TEST_OBJS+= $(BUILD_DIR)proposal_test.o
118 $(BUILD_DIR)proposal_test.o :           $(TESTCASES_DIR)proposal_test.c $(TESTCASES_DIR)proposal_test.h
119                                                                         $(CC) $(CFLAGS) -c -o $@ $<
120
121 TEST_OBJS+= $(BUILD_DIR)rsa_test.o
122 $(BUILD_DIR)rsa_test.o :                        $(TESTCASES_DIR)rsa_test.c $(TESTCASES_DIR)rsa_test.h
123                                                                         $(CC) $(CFLAGS) -c -o $@ $<
124
125 TEST_OBJS+= $(BUILD_DIR)kernel_interface_test.o
126 $(BUILD_DIR)kernel_interface_test.o :   $(TESTCASES_DIR)kernel_interface_test.c $(TESTCASES_DIR)kernel_interface_test.h
127                                                                         $(CC) $(CFLAGS) -c -o $@ $<
128
129 TEST_OBJS+= $(BUILD_DIR)child_sa_test.o
130 $(BUILD_DIR)child_sa_test.o :           $(TESTCASES_DIR)child_sa_test.c $(TESTCASES_DIR)child_sa_test.h
131                                                                         $(CC) $(CFLAGS) -c -o $@ $<
132
133 TEST_OBJS+= $(BUILD_DIR)certificate_test.o
134 $(BUILD_DIR)certificate_test.o :        $(TESTCASES_DIR)certificate_test.c $(TESTCASES_DIR)certificate_test.h
135                                                                         $(CC) $(CFLAGS) -c -o $@ $<
136
137 TEST_OBJS+= $(BUILD_DIR)leak_detective_test.o
138 $(BUILD_DIR)leak_detective_test.o :     $(TESTCASES_DIR)leak_detective_test.c $(TESTCASES_DIR)leak_detective_test.h
139                                                                         $(CC) $(CFLAGS) -c -o $@ $<
140
141 TEST_OBJS+= $(BUILD_DIR)identification_test.o
142 $(BUILD_DIR)identification_test.o :     $(TESTCASES_DIR)identification_test.c $(TESTCASES_DIR)identification_test.h
143                                                                         $(CC) $(CFLAGS) -c -o $@ $<