2 * Copyright (C) 2005 Wim Taymans <wim@fluendo.com>
4 * libsabi.c: Unit test for ABI compatibility
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
23 #include <gst/check/gstcheck.h>
25 #include <gst/base/gstadapter.h>
26 #include <gst/base/gstbasesink.h>
27 #include <gst/base/gstbasesrc.h>
28 #include <gst/base/gstbasetransform.h>
29 #include <gst/base/gstcollectpads.h>
30 #include <gst/base/gstpushsrc.h>
31 #include <gst/base/gsttypefindhelper.h>
32 #include <gst/controller/gstcontroller.h>
33 #include <gst/net/gstnet.h>
34 #include <gst/net/gstnetclientclock.h>
35 #include <gst/net/gstnettimepacket.h>
36 #include <gst/net/gstnettimeprovider.h>
39 #include "struct_i386.h"
40 #define HAVE_ABI_SIZES TRUE
43 #include "struct_ppc64.h"
44 #define HAVE_ABI_SIZES TRUE
47 #include "struct_ppc32.h"
48 #define HAVE_ABI_SIZES TRUE
50 #ifdef HAVE_CPU_X86_64
51 #include "struct_x86_64.h"
52 #define HAVE_ABI_SIZES TRUE
55 #include "struct_hppa.h"
56 #define HAVE_ABI_SIZES TRUE
58 /* in case someone wants to generate a new arch */
59 #include "struct_i386.h"
60 #define HAVE_ABI_SIZES FALSE
67 GST_START_TEST (test_ABI)
69 gst_check_abi_list (list, HAVE_ABI_SIZES);
77 Suite *s = suite_create ("LibsABI");
78 TCase *tc_chain = tcase_create ("size check");
80 tcase_set_timeout (tc_chain, 0);
82 suite_add_tcase (s, tc_chain);
83 tcase_add_test (tc_chain, test_ABI);
87 GST_CHECK_MAIN (libsabi);