Tests are broken
Created by: alatiera
Due to various reasons tests are failing. Some of them are bugs on gir
some have to do with gst
(I think?).
Sadly, haven't found an easy way to run tests of all modules, no matter if they fail or not. So here are two current error I could extract.
- This seems to be a bug in
gir
which adds an extra whitespace in the a string constant.
running 2 tests
test cross_validate_layout_with_c ... ok
test cross_validate_constants_with_c ... FAILED
failures:
---- cross_validate_constants_with_c stdout ----
constants ... 25 passed; 0 failed (compilation errors: 0)
constants ... 50 passed; 0 failed (compilation errors: 0)
constants ... 75 passed; 0 failed (compilation errors: 0)
Constant value mismatch for GST_AUDIO_FORMATS_ALL
Rust: " { S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }"
C: "{ S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }"
constants ... 99 passed; 1 failed (compilation errors: 0)
constants ... 124 passed; 1 failed (compilation errors: 0)
constants ... 149 passed; 1 failed (compilation errors: 0)
constants ... 174 passed; 1 failed (compilation errors: 0)
thread 'cross_validate_constants_with_c' panicked at 'FAILED: 192 passed; 1 failed (compilation errors: 0)', gstreamer-audio-sys/tests/abi.rs:126:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
cross_validate_constants_with_c
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed, to rerun pass '-p gstreamer-audio-sys --test abi'
- Not really sure what seems to be causing this one
running 2 tests
test cross_validate_layout_with_c ... ok
tests/constant.c: In function ‘main’:
<command-line>: error: ‘GST_GL_DISPLAY_EGL_NAME’ undeclared (first use in this function); did you mean ‘GST_GL_DISPLAY_TYPE_NONE’?
tests/constant.c:9:22: note: in expansion of macro ‘ABI_CONSTANT_NAME’
printf(_Generic((ABI_CONSTANT_NAME),
^~~~~~~~~~~~~~~~~
<command-line>: note: each undeclared identifier is reported only once for each function it appears in
tests/constant.c:9:22: note: in expansion of macro ‘ABI_CONSTANT_NAME’
printf(_Generic((ABI_CONSTANT_NAME),
^~~~~~~~~~~~~~~~~
test cross_validate_constants_with_c ... FAILED
failures:
---- cross_validate_constants_with_c stdout ----
constants ... 25 passed; 0 failed (compilation errors: 0)
constants ... 50 passed; 0 failed (compilation errors: 0)
Constant value mismatch for GST_GL_COLOR_CONVERT_VIDEO_CAPS
Rust: "video/x-raw("
C: "video/x-raw(memory:GLMemory), format = (string) { RGBA, RGB, RGBx, BGR, BGRx, BGRA, xRGB, xBGR, ARGB, ABGR, Y444, I420, YV12, Y42B, Y41B, NV12, NV21, YUY2, UYVY, AYUV, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16 }, width = (int) [ 1, max ], height = (int) [ 1, max ], framerate = (fraction) [ 0, max ], texture-target = (string) { 2D, rectangle, external-oes } ; video/x-raw(memory:GLMemory,meta:GstVideoOverlayComposition), format = (string) { RGBA, RGB, RGBx, BGR, BGRx, BGRA, xRGB, xBGR, ARGB, ABGR, Y444, I420, YV12, Y42B, Y41B, NV12, NV21, YUY2, UYVY, AYUV, GRAY8, GRAY16_LE, GRAY16_BE, RGB16, BGR16 }, width = (int) [ 1, max ], height = (int) [ 1, max ], framerate = (fraction) [ 0, max ], texture-target = (string) { 2D, rectangle, external-oes }"
compilation command "cc" "-Wno-deprecated-declarations" "-D__USE_MINGW_ANSI_STDIO" "-I/usr/include/gstreamer-1.0" "-I/usr/lib64/gstreamer-1.0/include" "-I/usr/include/libdrm" "-I/usr/include/glib-2.0" "-I/usr/lib64/glib-2.0/include" "-I/usr/include/orc-0.4" "-pthread" "-DABI_CONSTANT_NAME=GST_GL_DISPLAY_EGL_NAME" "tests/constant.c" "-o" "/tmp/abi.PVz7tBNYjkSX/constant" failed, exit code: 1
constants ... 73 passed; 2 failed (compilation errors: 1)
constants ... 98 passed; 2 failed (compilation errors: 1)
constants ... 123 passed; 2 failed (compilation errors: 1)
thread 'cross_validate_constants_with_c' panicked at 'FAILED: 123 passed; 2 failed (compilation errors: 1)', gstreamer-gl-sys/tests/abi.rs:126:13
note: Run with `RUST_BACKTRACE=1` for a backtrace.
failures:
cross_validate_constants_with_c
test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out
error: test failed, to rerun pass '-p gstreamer-gl-sys --test abi'
Edited by Jordan Petridіs