-
-
Notifications
You must be signed in to change notification settings - Fork 225
/
ltp.mk
508 lines (487 loc) · 24 KB
/
ltp.mk
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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
#── vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi ──────────────────────┘
.PRECIOUS: third_party/ltp/%.gz
third_party/ltp/%.gz: third_party/ltp/%.gz.sha256 o/tool/sha256sum
curl -so $@ https://justine.storage.googleapis.com/ltp/$(subst third_party/ltp/,,$@)
o/tool/sha256sum -c $<
.PRECIOUS: third_party/ltp/bin/%.elf
third_party/ltp/bin/%.elf: third_party/ltp/bin/%.elf.gz
gzip -dc <$< >$@
chmod +x $@
o/$(MODE)/third_party/ltp/bin/%.elf.ok: \
third_party/ltp/bin/%.elf \
o/lib/ld-musl-x86_64.so.1 \
o/$(MODE)/blink/blink \
o/proc/cpuinfo \
o/proc/meminfo
@mkdir -p $(@D)
o/$(MODE)/blink/blink $< $(LTP_ARGS)
@touch $@
o/$(MODE)/third_party/ltp/bin/1/growfiles.elf.ok: private LTP_ARGS = -f "$(TMPDIR)/gf"
.PRECIOUS: o/proc/%
o/proc/%: third_party/ltp/%
@mkdir -p $(@D)
cp -f $< $@
chmod +x $@
LTP_TESTS = \
o/$(MODE)/third_party/ltp/bin/2/hackbench.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/accept01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/accept4_01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/alarm03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/alarm05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/alarm06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/alarm07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/atof01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/bind01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/bind03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/brk02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/chown01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/clock_getres01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/clock_nanosleep04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/close01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/close02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/close_range02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/confstr01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/creat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/creat03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/dup03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup201.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup202.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup203.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup204.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/dup205.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup206.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup207.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup3_01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/dup3_02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/exit01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/exit02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/exit_group01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchdir01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchdir02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchmod01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchown01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchownat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl01_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl02_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl03_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl04_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl08.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl08_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl09_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl10.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl10_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl11.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl11_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl14.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl14_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl15.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl15_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl16.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl16_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl17.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl17_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl19.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl19_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl20.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl20_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl21.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl21_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl22.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl22_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl27.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl27_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl28.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl28_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl29.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fcntl29_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fdatasync01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fdatasync02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/flock01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/flock02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/flock03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/flock04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/flock06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork08.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork10.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork11.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fsync03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/ftruncate01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/ftruncate01_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/ftruncate03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/ftruncate03_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/futex_wait01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/futex_wait04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/futex_wake01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getcwd02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getcwd03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getdents01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/getdents02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getdomainname01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getegid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getegid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/geteuid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/geteuid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getgid03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/gethostname01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getitimer01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getpagesize01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getpgid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getpgrp01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getpid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getppid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getpriority02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/getrandom01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getrandom02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getrandom03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getrlimit02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getrusage01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getsid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/gettid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/gettimeofday01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getuid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/growfiles.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/hackbench.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/in6_01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/inode01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/kill06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/kill08.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/kill09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/link02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/link03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/link05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/listen01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/llseek01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/llseek02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/llseek03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/locktests.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/lseek01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/lseek02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/lseek07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap08.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap19.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmapstress04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mprotect02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mprotect03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/msync01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/msync02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/munmap01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/munmap02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/munmap03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/nanosleep02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fstat02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/open03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/open06.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/open07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/open09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe08.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe10.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe11.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pipe13.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/poll01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pread01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pread01_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pread02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pread02_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/preadv01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/preadv01_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pselect02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pselect02_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pselect03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pselect03_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/pwrite01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwrite01_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwrite02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwrite02_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwrite03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwrite03_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwrite04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwrite04_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwritev01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pwritev01_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/read01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/read02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/read03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/read04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/readdir01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/readv01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/recvmsg02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/rmdir01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/sbrk02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/select01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/select04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/set_robust_list01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/set_tid_address01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setpgid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setpgid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setpgrp01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setpgrp02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setsid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sigaction01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/sigaction02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/rt_sigaction02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/rt_sigaction03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/sigaltstack01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/sigaltstack02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/signal01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/signal02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/signal04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/signal06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/sigprocmask01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/rt_sigprocmask02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sigsuspend01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/socket01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/socket02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/socketpair01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/socketpair02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/stat02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/stat02_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/symlink01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/symlink02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/symlink04.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/symlink05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/symlinkat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/tkill01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/tkill02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/truncate02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/truncate02_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/unlink05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/wait01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/wait02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/wait401.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/wait402.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/wait403.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid03.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/waitpid04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid08.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid10.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid11.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid12.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/waitpid13.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/write01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/write02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/write03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/write04.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/write05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/write06.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/writetest.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/writev01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/writev02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/writev05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/writev06.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/writev07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/sendto01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setitimer02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/unlinkat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/futimesat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/unlink07.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/send01.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/sendmsg01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sched_yield01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/readlinkat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/readlinkat02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/readv02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/realpath01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/openat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/recvmmsg01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendmmsg01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendmmsg02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/recvfrom01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile03.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile04.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile05.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile06.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile07.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile08.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/sendfile09.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/openfile.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/connect01.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/chdir04.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll-ltp.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_create01.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_create02.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_create1_01.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_create1_02.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_ctl01.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_ctl02.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_ctl03.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_ctl04.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_ctl05.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_pwait01.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_pwait02.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_pwait04.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_pwait05.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_wait01.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_wait03.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_wait04.elf.ok
ifneq ($(HOST_SYSTEM), FreeBSD)
# These tests make the system get wrekt.
LTP_TESTS += \
o/$(MODE)/third_party/ltp/bin/1/pause02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/creat05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fork09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/inode02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/open04.elf.ok
endif
ifneq ($(HOST_SYSTEM), FreeBSD)
# Something weird about the sticky bit.
LTP_TESTS += o/$(MODE)/third_party/ltp/bin/1/open01.elf.ok
endif
ifneq ($(HOST_SYSTEM), FreeBSD)
# The FreeBSD manual states "The maximum number of seconds allowed for
# it_interval and it_value in setitimer() is 100000000", but this test
# needs the platform to support values like INT_MAX.
LTP_TESTS += o/$(MODE)/third_party/ltp/bin/1/alarm02.elf.ok
endif
ifneq ($(HOST_SYSTEM), FreeBSD)
# This passes but complains about an EXDEV errno mismatch (possibly with
# procfs) and therefore would be expensive and/or tricky to polyfill.
LTP_TESTS += o/$(MODE)/third_party/ltp/bin/1/linkat01.elf.ok
endif
# These tests won't pass unless Linux-specific rlimits are present,
# RLIMIT_LOCKS, RLIMIT_MSGQUEUE, RLIMIT_RTTIME, etc.
ifneq ($(HOST_SYSTEM), FreeBSD)
LTP_TESTS += \
o/$(MODE)/third_party/ltp/bin/1/getrlimit01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getrlimit03.elf.ok
endif
# These tests require procfs which currently isn't simulated.
ifneq ($(HOST_SYSTEM), FreeBSD)
LTP_TESTS += \
o/$(MODE)/third_party/ltp/bin/1/clock_gettime04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/futex_wait02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/futex_wait03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/nanosleep04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getpgid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getppid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getuid03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getsid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getpid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pause03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pause01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fsync02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap12.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/kill03.elf.ok
endif
ifeq ($(shell id -u), 0)
LTP_TESTS += \
o/$(MODE)/third_party/ltp/bin/1/setegid02.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/open08.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/open10.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/stat03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/rename09.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/access01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/access02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/access03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/autogroup01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/chmod07.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/chown02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/chown05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/clock_gettime01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchmod02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchmod04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchown02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/fchown05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/futex_wake04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getgid01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getgroups03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getrandom04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/hugemmap06.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mkdir05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap10.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap11.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/nice04.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/open02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/open11.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/open14.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/openat03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/readlink01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setgroups01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setgroups02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setgroups04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setpriority02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setrlimit03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/setsockopt03.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/stat01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/stat01_64.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/futex_wait05.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/poll02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/unlink08.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/bind02.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_pwait03.elf.ok \
o/$(MODE)/third_party/ltp/bin/3/epoll_wait02.elf.ok
endif
# TODO: Cygwin doesn't properly raise an EACCES errno.
ifneq ($(HOST_OS), Cygwin)
LTP_TESTS += o/$(MODE)/third_party/ltp/bin/2/readlink03.elf.ok
endif
ifneq ($(HOST_OS), Cygwin)
# partial failure only on cygwin
# chmod01.c:50: TFAIL: stat(testfile) mode=0000
# chmod01.c:50: TFAIL: stat(testdir_1) mode=0000
# chmod01.c:50: TFAIL: stat(testdir_1) mode=0777
# chmod01.c:50: TFAIL: stat(testdir_1) mode=4777
LTP_TESTS += o/$(MODE)/third_party/ltp/bin/1/chmod01.elf.ok
endif
################################################################################
# MEDIUM TESTS
LTP_TESTS_MEDIUM = \
o/$(MODE)/third_party/ltp/bin/1/clock_nanosleep02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/getcwd04.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/gettimeofday02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/kill02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap-corruption01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmap001.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/mmapstress01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/nanosleep01.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/rename14.elf.ok \
o/$(MODE)/third_party/ltp/bin/2/mmap2.elf.ok
ifeq ($(shell id -u), 0)
LTP_TESTS_MEDIUM += \
o/$(MODE)/third_party/ltp/bin/2/select02.elf.ok \
o/$(MODE)/third_party/ltp/bin/1/pty06.elf.ok
endif
################################################################################
o/$(MODE)/third_party/ltp: $(LTP_TESTS)
@mkdir -p $(@D)
@touch $@
o/$(MODE)/third_party/ltp/medium: $(LTP_TESTS_MEDIUM)
@mkdir -p $(@D)
@touch $@