summaryrefslogtreecommitdiff
path: root/tests/test_cases/deps/TARGETS
blob: b1047a8836b4d76407a239059a0fb90f5050af3c (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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
{ "private":
  { "type": ["test_rules", "test_case"]
  , "name": ["deps_private"]
  , "targets":
    [ "+foo"
    , "-main_includes_foo"
    , "+main_links_foo"
    , "+main_links_bar_foo"
    , "+install_bar"
    ]
  , "asserts":
    [ "test -f foo/foo/libfoo.a"
    , "test -f foo/foo/foo.hpp"
    , "! test -f foo/bar/bar.hpp"
    , "./main_links_foo/main | grep foo"
    , "./main_links_bar_foo/main | grep bar"
    , "./main_links_bar_foo/main | grep foo"
    , "test -f install_bar/lib/bar/libbar.a"
    , "test -f install_bar/include/bar/bar.hpp"
    , "test -f install_bar/lib/foo/libfoo.a"
    , "! test -f install_bar/include/foo/foo.hpp"
    ]
  , "data": [["TREE", null, "private"]]
  }
, "public":
  { "type": ["test_rules", "test_case"]
  , "name": ["deps_public"]
  , "targets":
    [ "+foo"
    , "+main_includes_foo"
    , "+main_links_foo"
    , "+main_links_bar_foo"
    , "+install_bar"
    ]
  , "asserts":
    [ "test -f foo/foo/libfoo.a"
    , "test -f foo/foo/foo.hpp"
    , "! test -f foo/bar/bar.hpp"
    , "./main_includes_foo/main | grep main"
    , "./main_links_foo/main | grep foo"
    , "./main_links_bar_foo/main | grep bar"
    , "./main_links_bar_foo/main | grep foo"
    , "test -f install_bar/lib/bar/libbar.a"
    , "test -f install_bar/include/bar/bar.hpp"
    , "test -f install_bar/lib/foo/libfoo.a"
    , "test -f install_bar/include/foo/foo.hpp"
    ]
  , "data": [["TREE", null, "public"]]
  }
, "shared":
  { "type": ["test_rules", "test_case"]
  , "name": ["deps_shared"]
  , "targets":
    [ "+foo"
    , "+bar"
    , "+main_uses_foo"
    , "+test_uses_foo"
    , "+main_uses_bar"
    , "+test_uses_bar"
    , "+test_uses_bar_s"
    , "+test_uses_baz"
    , "+test_uses_main"
    , "+test_diamond"
    , "+install_foo"
    , "+install_bar_s"
    , "+install_baz"
    , "+install_main"
    ]
  , "asserts":
    [ "test -f foo/libfoo.so.1.2.3"
    , "test -f foo/foo/foo.hpp"
    , "test -f bar/libbar.so"
    , "test -f bar/bar/bar.hpp"
    , "! test -f bar/foo/foo.hpp"
    , "test -f install_foo/lib/libfoo.so.1.2.3"
    , "test -f install_foo/include/foo/foo.hpp"
    , "grep 'Name: foo' install_foo/lib/pkgconfig/foo.pc"
    , "grep 'Version: 1.2.3' install_foo/lib/pkgconfig/foo.pc"
    , "grep -- '-L${libdir}' install_foo/lib/pkgconfig/foo.pc"
    , "grep -- '-l:libfoo.so.1.2.3' install_foo/lib/pkgconfig/foo.pc"
    , "test -f install_bar_s/lib/bar/libbar.a"
    , "test -f install_bar_s/include/bar/bar.hpp"
    , "test -f install_bar_s/lib/libfoo.so.1.2.3"
    , "! test -f install_bar_s/include/foo/foo.hpp"
    , "grep 'Name: bar' install_bar_s/lib/pkgconfig/bar.pc"
    , "grep '${libdir}/bar/libbar.a' install_bar_s/lib/pkgconfig/bar.pc"
    , "grep '${libdir}/libfoo.so.1.2.3' install_bar_s/lib/pkgconfig/bar.pc"
    , "test -f install_baz/lib/libbaz.so"
    , "test -f install_baz/include/baz/baz.hpp"
    , "! test -f install_baz/lib/foo/libfoo.a"
    , "! test -f install_baz/include/foo/foo.hpp"
    , "./install_main/bin/main_uses_bar | grep main"
    , "./install_main/bin/main_uses_bar | grep bar"
    , "./install_main/bin/main_uses_bar | grep foo"
    , "! test -d install_main/include"
    ]
  , "data": [["TREE", null, "shared"]]
  }
, "object":
  { "type": ["test_rules", "test_case"]
  , "name": ["deps_object"]
  , "targets": ["+foo", "+bar", "+baz", "+main", "+test_main", "+install_main"]
  , "asserts":
    [ "[ -f ./foo/libfoo.so ]"
    , "[ -f ./bar/bar/bar.o ]"
    , "[ -f ./baz/libbaz.so ]"
    , "[ -f ./install_main/lib/libfoo.so ]"
    , "[ ! -f ./install_main/lib/bar/bar.o ]"
    , "[ \"$(./install_main/bin/main)\" = 'Hello World and Galaxy' ]"
    ]
  , "data": [["TREE", null, "object"]]
  }
, "prebuilt_tests":
  { "type": "tree"
  , "deps":
    [ ["test_cases/deps/prebuilt", "foo.hpp"]
    , ["test_cases/deps/prebuilt", "bar.hpp"]
    , ["test_cases/deps/prebuilt", "TARGETS"]
    , ["TREE", null, "shared"]
    ]
  }
, "prebuilt":
  { "type": ["test_rules", "test_case"]
  , "name": ["deps_prebuilt"]
  , "targets":
    [ "+foo"
    , "+bar"
    , "+main_uses_foo"
    , "+test_uses_foo"
    , "+main_uses_bar"
    , "+test_uses_bar"
    , "+test_uses_bar_s"
    , "+test_uses_main"
    , "+install_foo"
    , "+install_bar"
    , "+install_main"
    , "+test_uses_foobar"
    , "+test_uses_foobar_s"
    , "+install_foobar"
    ]
  , "asserts":
    [ "test -f foo/libfoo.so.1.2.3"
    , "test -f foo/foo/foo.hpp"
    , "test -f bar/libbar.so"
    , "test -f bar/bar/bar.hpp"
    , "test -f install_foo/lib/pkgconfig/foo/foo.cflags"
    , "test -f install_foo/lib/pkgconfig/foo/foo.ldflags"
    , "test -f install_bar/lib/pkgconfig/foo/foo.cflags"
    , "test -f install_bar/lib/pkgconfig/foo/foo.ldflags"
    , "test -f install_bar/lib/pkgconfig/bar/bar.cflags"
    , "test -f install_bar/lib/pkgconfig/bar/bar.ldflags"
    , "./install_main/bin/main_uses_bar | grep main"
    , "./install_main/bin/main_uses_bar | grep bar"
    , "./install_main/bin/main_uses_bar | grep foo"
    , "test -f install_foobar/lib/libfoo.so.1.2.3"
    , "test -f install_foobar/lib/libbar.so"
    , "test -f install_foobar/lib/pkgconfig/foobar.pc"
    , "grep 'Cflags:.*@${prefix}/lib/pkgconfig/bar/foobar.cflags' install_foobar/lib/pkgconfig/foobar.pc"
    , "grep -- '-DUSE_BAR=1 -DUSE_FOO=1' install_foobar/lib/pkgconfig/bar/foobar.cflags"
    , "grep 'Libs:.*@${prefix}/lib/pkgconfig/bar/foobar.ldflags' install_foobar/lib/pkgconfig/foobar.pc"
    , "grep -- '-lm -lpthread' install_foobar/lib/pkgconfig/bar/foobar.ldflags"
    ]
  , "data": ["prebuilt_tests"]
  }
, "cmake":
  { "type": ["test_rules", "test_case"]
  , "name": ["deps_cmake"]
  , "libs": ["googletest", "libz", "libcurl"]
  , "targets":
    [ "+gtest"
    , "+test"
    , "+gtest_main"
    , "+testbin"
    , "+shell_test"
    , "+install_gtest"
    , "+install_gtest_main"
    , "+install_testbin"
    , "+install_libcurl"
    ]
  , "asserts":
    [ "test -f gtest/libgtest.a"
    , "test -f gtest/gtest/gtest.h"
    , "grep 'PASSED.*1 test' test/stdout"
    , "test -f gtest_main/libgtest.so.1.13.0"
    , "test -f gtest_main/libgtest_main.so.1.13.0"
    , "test -f gtest_main/gtest/gtest.h"
    , "test -f ./testbin/test"
    , "grep 'PASSED.*1 test' shell_test/stdout"
    , "test -f install_gtest/lib/libgtest.a"
    , "test -f install_gtest/include/gtest/gtest.h"
    , "grep 'Cflags.*lib/pkgconfig/gtest.cflags' install_gtest/lib/pkgconfig/gtest.pc"
    , "grep 'Libs.*libgtest.a' install_gtest/lib/pkgconfig/gtest.pc"
    , "grep 'Libs.*lib/pkgconfig/gtest.ldflags' install_gtest/lib/pkgconfig/gtest.pc"
    , "test -f install_gtest_main/lib/libgtest.so.1.13.0"
    , "test -f install_gtest_main/lib/libgtest_main.so.1.13.0"
    , "test -f install_gtest_main/include/gtest/gtest.h"
    , "grep 'Cflags.*lib/pkgconfig/gtest_main.cflags' install_gtest_main/lib/pkgconfig/gtest_main.pc"
    , "grep 'Libs.*libgtest.so.1.13.0' install_gtest_main/lib/pkgconfig/gtest_main.pc"
    , "grep 'Libs.*libgtest_main.so.1.13.0' install_gtest_main/lib/pkgconfig/gtest_main.pc"
    , "grep 'Libs.*lib/pkgconfig/gtest_main.ldflags' install_gtest_main/lib/pkgconfig/gtest_main.pc"
    , "./install_testbin/bin/test | grep 'PASSED.*1 test'"
    , "path=$(ldd install_libcurl/lib/libcurl.so.4.8.0 | awk '/libz/{print $3}') && test -z \"${path##$(pwd)*}\""
    ]
  , "data": [["TREE", null, "cmake"]]
  }
, "install":
  { "type": ["test_rules", "test_case"]
  , "name": ["deps_install"]
  , "targets":
    [ "+install_bar_release"
    , "+install_main_release"
    , "+install_bar_debug"
    , "+install_main_debug"
    , "+install_bar_debug_slim"
    , "+install_main_debug_slim"
    ]
  , "asserts":
    [ "test -f install_bar_release/lib/bar/libbar.a"
    , "test -f install_bar_release/lib/foo/libfoo.a"
    , "test -f install_bar_release/lib/baz/libbaz.a"
    , "test -f install_bar_release/lib/pkgconfig/bar.pc"
    , "test -f install_bar_release/include/bar/bar.hpp"
    , "test -f install_bar_release/include/foo/foo.hpp"
    , "! test -f install_bar_release/include/baz/baz.hpp"
    , "! test -d install_bar_release/work"
    , "test -f install_main_release/bin/main"
    , "! test -f install_main_release/lib/bar/libbar.a"
    , "! test -f install_main_release/lib/foo/libfoo.a"
    , "! test -f install_main_release/lib/baz/libbaz.a"
    , "! test -d install_main_release/lib/pkgconfig"
    , "! test -d install_main_release/include"
    , "! test -d install_main_release/work"
    , "test -f install_bar_debug/lib/bar/libbar.a"
    , "test -f install_bar_debug/lib/foo/libfoo.a"
    , "test -f install_bar_debug/lib/baz/libbaz.a"
    , "test -f install_bar_debug/lib/pkgconfig/bar.pc"
    , "test -f install_bar_debug/include/bar/bar.hpp"
    , "test -f install_bar_debug/include/foo/foo.hpp"
    , "test -f install_bar_debug/include/baz/baz.hpp"
    , "test -f install_bar_debug/work/bar/bar.cpp"
    , "test -f install_bar_debug/work/bar/bar.hpp"
    , "test -f install_bar_debug/work/foo/foo.cpp"
    , "test -f install_bar_debug/work/foo/foo.hpp"
    , "test -f install_bar_debug/work/foo/qux.hpp"
    , "test -f install_bar_debug/work/baz/baz.cpp"
    , "test -f install_bar_debug/work/baz/baz.hpp"
    , "test -f install_main_debug/bin/main"
    , "test -f install_main_debug/include/bar/bar.hpp"
    , "test -f install_main_debug/include/foo/foo.hpp"
    , "test -f install_main_debug/include/baz/baz.hpp"
    , "test -f install_main_debug/work/bar/bar.cpp"
    , "test -f install_main_debug/work/bar/bar.hpp"
    , "test -f install_main_debug/work/foo/foo.cpp"
    , "test -f install_main_debug/work/foo/foo.hpp"
    , "test -f install_main_debug/work/foo/qux.hpp"
    , "test -f install_main_debug/work/baz/baz.cpp"
    , "test -f install_main_debug/work/baz/baz.hpp"
    , "test -f install_main_debug/work/main.cpp"
    , "! test -f install_main_debug/lib/bar/libbar.a"
    , "! test -f install_main_debug/lib/foo/libfoo.a"
    , "! test -f install_main_debug/lib/baz/libbaz.a"
    , "! test -d install_main_debug/lib/pkgconfig"
    , "test -f install_bar_debug_slim/lib/bar/libbar.a"
    , "test -f install_bar_debug_slim/lib/foo/libfoo.a"
    , "test -f install_bar_debug_slim/lib/baz/libbaz.a"
    , "test -f install_bar_debug_slim/lib/pkgconfig/bar.pc"
    , "test -f install_bar_debug_slim/include/bar/bar.hpp"
    , "test -f install_bar_debug_slim/include/foo/foo.hpp"
    , "! test -f install_bar_debug_slim/include/baz/baz.hpp"
    , "! test -d install_bar_debug_slim/work"
    , "test -f install_main_debug_slim/bin/main"
    , "! test -f install_main_debug_slim/lib/bar/libbar.a"
    , "! test -f install_main_debug_slim/lib/foo/libfoo.a"
    , "! test -f install_main_debug_slim/lib/baz/libbaz.a"
    , "! test -d install_main_debug_slim/lib/pkgconfig"
    , "! test -d install_main_debug_slim/include"
    , "! test -d install_main_debug_slim/work"
    ]
  , "data": [["TREE", null, "install"]]
  }
, "ALL":
  { "type": "install"
  , "deps":
    ["private", "public", "shared", "object", "prebuilt", "cmake", "install"]
  , "tainted": ["test"]
  }
}