Jakub Grajciar | 7c5c40d | 2017-08-30 10:13:25 +0200 | [diff] [blame] | 1 | /* |
| 2 | *------------------------------------------------------------------ |
| 3 | * Copyright (c) 2017 Cisco and/or its affiliates. |
| 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 | */ |
| 17 | |
| 18 | #include <main_test.h> |
| 19 | #include <socket_test.h> |
| 20 | |
| 21 | int |
| 22 | on_connect (memif_conn_handle_t conn, void *ctx) |
| 23 | { |
| 24 | return 0; |
| 25 | } |
| 26 | |
| 27 | int |
| 28 | on_disconnect (memif_conn_handle_t conn, void *ctx) |
| 29 | { |
| 30 | return 0; |
| 31 | } |
| 32 | |
| 33 | int |
| 34 | on_interrupt (memif_conn_handle_t conn, void *ctx, uint16_t qid) |
| 35 | { |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | int |
| 40 | control_fd_update (int fd, uint8_t events) |
| 41 | { |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | int |
| 46 | main (void) |
| 47 | { |
| 48 | int num_fail; |
| 49 | Suite *main, *socket; |
| 50 | SRunner *sr; |
| 51 | |
| 52 | main = main_suite (); |
| 53 | socket = socket_suite (); |
| 54 | |
| 55 | sr = srunner_create (main); |
| 56 | |
| 57 | srunner_add_suite (sr, socket); |
| 58 | |
| 59 | srunner_run_all (sr, CK_VERBOSE); |
| 60 | num_fail = srunner_ntests_failed (sr); |
| 61 | srunner_free (sr); |
| 62 | return (num_fail == 0) ? EXIT_SUCCESS : EXIT_FAILURE; |
| 63 | } |