mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
tests/check/: Add ABI checks for PPC32.
Original commit message from CVS: 2007-02-09 Andy Wingo <wingo@pobox.com> * tests/check/Makefile.am (noinst_HEADERS): * tests/check/libs/libsabi.c: * tests/check/libs/struct_ppc32.h: Add ABI checks for PPC32. * tests/check/gst/gstabi.c: * tests/check/gst/struct_ppc32.h: Add ABI checks for PPC32.
This commit is contained in:
parent
1a95191ff5
commit
96d9b88bbc
6 changed files with 116 additions and 0 deletions
|
@ -1,5 +1,11 @@
|
|||
2007-02-09 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* tests/check/Makefile.am (noinst_HEADERS):
|
||||
* tests/check/libs/libsabi.c:
|
||||
* tests/check/libs/struct_ppc32.h: Add ABI checks for PPC32.
|
||||
* tests/check/gst/gstabi.c:
|
||||
* tests/check/gst/struct_ppc32.h: Add ABI checks for PPC32.
|
||||
|
||||
* tests/check/pipelines/simple-launch-lines.c (test_tee): Add
|
||||
tests for push and pull tee behavior.
|
||||
|
||||
|
|
|
@ -104,9 +104,11 @@ TESTS = $(check_PROGRAMS)
|
|||
noinst_HEADERS = \
|
||||
gst/capslist.h \
|
||||
gst/struct_i386.h \
|
||||
gst/struct_ppc32.h \
|
||||
gst/struct_ppc64.h \
|
||||
gst/struct_x86_64.h \
|
||||
libs/struct_i386.h \
|
||||
libs/struct_ppc32.h \
|
||||
libs/struct_ppc64.h \
|
||||
libs/struct_x86_64.h
|
||||
|
||||
|
|
|
@ -26,6 +26,10 @@
|
|||
#include "struct_i386.h"
|
||||
#define HAVE_ABI_SIZES TRUE
|
||||
#else
|
||||
#ifdef HAVE_CPU_PPC
|
||||
#include "struct_ppc32.h"
|
||||
#define HAVE_ABI_SIZES TRUE
|
||||
#else
|
||||
#ifdef HAVE_CPU_PPC64
|
||||
#include "struct_ppc64.h"
|
||||
#define HAVE_ABI_SIZES TRUE
|
||||
|
@ -45,6 +49,7 @@
|
|||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
GST_START_TEST (test_ABI)
|
||||
{
|
||||
|
|
73
tests/check/gst/struct_ppc32.h
Normal file
73
tests/check/gst/struct_ppc32.h
Normal file
|
@ -0,0 +1,73 @@
|
|||
GstCheckABIStruct list[] = {
|
||||
{"GstBin", sizeof (GstBin), 192},
|
||||
{"GstBinClass", sizeof (GstBinClass), 288},
|
||||
{"GstBuffer", sizeof (GstBuffer), 88},
|
||||
{"GstBufferClass", sizeof (GstBufferClass), 16},
|
||||
{"GstBus", sizeof (GstBus), 80},
|
||||
{"GstBusClass", sizeof (GstBusClass), 144},
|
||||
{"GstCaps", sizeof (GstCaps), 32},
|
||||
{"GstStaticCaps", sizeof (GstStaticCaps), 52},
|
||||
{"GstChildProxyInterface", sizeof (GstChildProxyInterface), 40},
|
||||
{"GstClockEntry", sizeof (GstClockEntry), 48},
|
||||
{"GstClock", sizeof (GstClock), 176},
|
||||
{"GstClockClass", sizeof (GstClockClass), 160},
|
||||
{"GstElement", sizeof (GstElement), 136},
|
||||
{"GstElementClass", sizeof (GstElementClass), 248},
|
||||
{"GstElementFactory", sizeof (GstElementFactory), 144},
|
||||
{"GstElementFactoryClass", sizeof (GstElementFactoryClass), 152},
|
||||
{"GstElementDetails", sizeof (GstElementDetails), 32},
|
||||
{"GstEvent", sizeof (GstEvent), 48},
|
||||
{"GstEventClass", sizeof (GstEventClass), 32},
|
||||
{"GstFormatDefinition", sizeof (GstFormatDefinition), 16},
|
||||
{"GstIndexEntry", sizeof (GstIndexEntry), 20},
|
||||
{"GstIndexGroup", sizeof (GstIndexGroup), 16},
|
||||
{"GstIndex", sizeof (GstIndex), 100},
|
||||
{"GstIndexClass", sizeof (GstIndexClass), 156},
|
||||
{"GstIndexAssociation", sizeof (GstIndexAssociation), 16},
|
||||
{"GstIndexFactory", sizeof (GstIndexFactory), 96},
|
||||
{"GstIndexFactoryClass", sizeof (GstIndexFactoryClass), 152},
|
||||
{"GstDebugCategory", sizeof (GstDebugCategory), 16},
|
||||
{"GstImplementsInterfaceClass", sizeof (GstImplementsInterfaceClass), 28},
|
||||
{"GstIterator", sizeof (GstIterator), 52},
|
||||
{"GstMessage", sizeof (GstMessage), 64},
|
||||
{"GstMessageClass", sizeof (GstMessageClass), 32},
|
||||
{"GstMiniObject", sizeof (GstMiniObject), 16},
|
||||
{"GstMiniObjectClass", sizeof (GstMiniObjectClass), 16},
|
||||
{"GstObject", sizeof (GstObject), 40},
|
||||
{"GstObjectClass", sizeof (GstObjectClass), 120},
|
||||
{"GstPad", sizeof (GstPad), 188},
|
||||
{"GstPadClass", sizeof (GstPadClass), 152},
|
||||
{"GstPadTemplate", sizeof (GstPadTemplate), 72},
|
||||
{"GstPadTemplateClass", sizeof (GstPadTemplateClass), 140},
|
||||
{"GstStaticPadTemplate", sizeof (GstStaticPadTemplate), 64},
|
||||
{"GstPipeline", sizeof (GstPipeline), 232},
|
||||
{"GstPipelineClass", sizeof (GstPipelineClass), 304},
|
||||
{"GstPlugin", sizeof (GstPlugin), 152},
|
||||
{"GstPluginClass", sizeof (GstPluginClass), 136},
|
||||
{"GstPluginDesc", sizeof (GstPluginDesc), 56},
|
||||
{"GstPluginFeature", sizeof (GstPluginFeature), 72},
|
||||
{"GstPluginFeatureClass", sizeof (GstPluginFeatureClass), 136},
|
||||
{"GstQueryTypeDefinition", sizeof (GstQueryTypeDefinition), 16},
|
||||
{"GstQuery", sizeof (GstQuery), 28},
|
||||
{"GstQueryClass", sizeof (GstQueryClass), 32},
|
||||
{"GstRegistry", sizeof (GstRegistry), 72},
|
||||
{"GstRegistryClass", sizeof (GstRegistryClass), 144},
|
||||
{"GstSegment", sizeof (GstSegment), 88},
|
||||
{"GstStructure", sizeof (GstStructure), 20},
|
||||
{"GstSystemClock", sizeof (GstSystemClock), 200},
|
||||
{"GstSystemClockClass", sizeof (GstSystemClockClass), 176},
|
||||
{"GstTagSetterIFace", sizeof (GstTagSetterIFace), 8},
|
||||
{"GstTask", sizeof (GstTask), 80},
|
||||
{"GstTaskClass", sizeof (GstTaskClass), 140},
|
||||
{"GstTrace", sizeof (GstTrace), 20},
|
||||
{"GstTraceEntry", sizeof (GstTraceEntry), 128},
|
||||
{"GstAllocTrace", sizeof (GstAllocTrace), 16},
|
||||
{"GstTypeFind", sizeof (GstTypeFind), 32},
|
||||
{"GstTypeFindFactory", sizeof (GstTypeFindFactory), 108},
|
||||
{"GstTypeFindFactoryClass", sizeof (GstTypeFindFactoryClass), 152},
|
||||
{"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 44},
|
||||
{"GstValueTable", sizeof (GstValueTable), 32},
|
||||
{"GstXML", sizeof (GstXML), 64},
|
||||
{"GstXMLClass", sizeof (GstXMLClass), 144},
|
||||
{NULL, 0, 0}
|
||||
};
|
|
@ -39,6 +39,10 @@
|
|||
#include "struct_i386.h"
|
||||
#define HAVE_ABI_SIZES TRUE
|
||||
#else
|
||||
#ifdef HAVE_CPU_PPC
|
||||
#include "struct_ppc32.h"
|
||||
#define HAVE_ABI_SIZES TRUE
|
||||
#else
|
||||
#ifdef HAVE_CPU_PPC64
|
||||
#include "struct_ppc64.h"
|
||||
#define HAVE_ABI_SIZES TRUE
|
||||
|
@ -58,6 +62,7 @@
|
|||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
GST_START_TEST (test_ABI)
|
||||
{
|
||||
|
|
25
tests/check/libs/struct_ppc32.h
Normal file
25
tests/check/libs/struct_ppc32.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
GstCheckABIStruct list[] = {
|
||||
{"GstAdapter", sizeof (GstAdapter), 52},
|
||||
{"GstAdapterClass", sizeof (GstAdapterClass), 84},
|
||||
{"GstBaseSink", sizeof (GstBaseSink), 408},
|
||||
{"GstBaseSinkClass", sizeof (GstBaseSinkClass), 368},
|
||||
{"GstBaseSrc", sizeof (GstBaseSrc), 392},
|
||||
{"GstBaseSrcClass", sizeof (GstBaseSrcClass), 376},
|
||||
{"GstBaseTransform", sizeof (GstBaseTransform), 368},
|
||||
{"GstBaseTransformClass", sizeof (GstBaseTransformClass), 376},
|
||||
{"GstCollectData", sizeof (GstCollectData), 120},
|
||||
{"GstCollectPads", sizeof (GstCollectPads), 92},
|
||||
{"GstCollectPadsClass", sizeof (GstCollectPadsClass), 136},
|
||||
{"GstPushSrc", sizeof (GstPushSrc), 408},
|
||||
{"GstPushSrcClass", sizeof (GstPushSrcClass), 396},
|
||||
{"GstTimedValue", sizeof (GstTimedValue), 32},
|
||||
{"GstValueArray", sizeof (GstValueArray), 24},
|
||||
{"GstController", sizeof (GstController), 40},
|
||||
{"GstControllerClass", sizeof (GstControllerClass), 84},
|
||||
{"GstNetClientClock", sizeof (GstNetClientClock), 256},
|
||||
{"GstNetClientClockClass", sizeof (GstNetClientClockClass), 192},
|
||||
{"GstNetTimePacket", sizeof (GstNetTimePacket), 16},
|
||||
{"GstNetTimeProvider", sizeof (GstNetTimeProvider), 84},
|
||||
{"GstNetTimeProviderClass", sizeof (GstNetTimeProviderClass), 120},
|
||||
{NULL, 0, 0}
|
||||
};
|
Loading…
Reference in a new issue