1 //
2 // Copyright (c) 2023 The Khronos Group Inc.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 #include "harness/compat.h"
17 #include <stdio.h>
18 #include <stdlib.h>
19
20 #include <string.h>
21 #include "procs.h"
22 #include "harness/testHarness.h"
23
24 #if !defined(_WIN32)
25 #include <unistd.h>
26 #endif
27
28 test_definition test_list[] = {
29 ADD_TEST_VERSION(semaphores_simple_1, Version(1, 2)),
30 ADD_TEST_VERSION(semaphores_simple_2, Version(1, 2)),
31 ADD_TEST_VERSION(semaphores_reuse, Version(1, 2)),
32 ADD_TEST_VERSION(semaphores_cross_queues_ooo, Version(1, 2)),
33 ADD_TEST_VERSION(semaphores_cross_queues_io, Version(1, 2)),
34 ADD_TEST_VERSION(semaphores_multi_signal, Version(1, 2)),
35 ADD_TEST_VERSION(semaphores_multi_wait, Version(1, 2)),
36 ADD_TEST_VERSION(semaphores_queries, Version(1, 2)),
37 ADD_TEST_VERSION(semaphores_import_export_fd, Version(1, 2)),
38 };
39
40 const int test_num = ARRAY_SIZE(test_list);
41
main(int argc,const char * argv[])42 int main(int argc, const char *argv[])
43 {
44 return runTestHarness(argc, argv, test_num, test_list, false, 0);
45 }
46