kumquat-buildroot/support/testing/tests/package
Adam Duskett 207d276d98 support/testing: fix test_gst1_python
The config is missing the following packages:
  - BR2_PACKAGE_GST1_PLUGINS_BASE
    This is needed for the videotestsrc plugin which provides
    videotestsrc.

  - BR2_PACKAGE_GST1_PLUGINS_BAD
    This is needed for the debugutils plugin which provides
    fakevideosink.

  - BR2_PACKAGE_GST1_PLUGINS_BASE_PLUGIN_VIDEOTESTSRC
    videotestsrcplugin used by the example pipeline.

  - BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_DEBUGUTILS
    fakevideosink plugin used by the example pipeline.

The sample was also amended to fix:
  - no call to main.

  - using autovideosink instead of fakevideosink. Using Fakevideoskink
    is preferred because its primary purpose is for debugging and sample
    pipelines. Autovideosink does not work because there is no video
    output device.

  - No function on_message. Without this function, the script fails
    because of the missing function.

  - The script sets the pipeline to Gst.State.EOS instead of
    Gst.State.NULL which results in a failed pipeline state. When the
    state is set to NULL, gstreamer automatically calls EOS. Manually
    setting the pipeline state to EOS results in the following error:

        Trying to dispose element sink, but it is in PLAYING instead of
        the NULL state. You need to explicitly set elements to the NULL
        state before dropping the final reference, to allow them to
        clean up. A refcounting bug may also cause this problem in the
        application or some element.

In addition, the default timeout is set too low and would result in a
test failure, this has been changed to 200 seconds.

These issues are now properly fixed, and the sample script passes.

Signed-off-by: Adam Duskett <Aduskett@gmail.com>
[yann.morin.1998@free.fr:
  - meld the two patches together
  - add the print() in the on_demand callback
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-03-27 18:31:45 +01:00
..
br2-external/openjdk support/testing: openjdk JNI test cases 2019-06-30 17:32:34 +02:00
test_lxc support/testing: add lxc test 2019-11-20 22:38:25 +01:00
test_opkg support/testing: new opkg test case 2020-02-03 22:17:42 +01:00
__init__.py
copy-sample-script-to-target.sh support/testing: create default test case for python packages 2018-11-13 20:55:45 +01:00
sample_gst1_python.py support/testing: fix test_gst1_python 2020-03-27 18:31:45 +01:00
sample_libftdi1.py support/testing: add libftdi1 test case 2020-02-23 11:12:09 +01:00
sample_python_argh.py support/testing: add python-argh tests 2018-11-23 22:05:46 +01:00
sample_python_attrs.py support/testing: add python-attrs tests 2018-11-23 22:05:46 +01:00
sample_python_autobahn.py support/testing: use TestPythonPackageBase for python-autobahn 2018-11-13 20:55:45 +01:00
sample_python_automat.py support/testing: add python-automat tests 2018-11-23 22:05:46 +01:00
sample_python_avro.py support/testing: add test for python-avro 2019-12-29 21:38:33 +01:00
sample_python_bitstring.py support/testing: add python-bitstring tests 2018-11-23 22:05:46 +01:00
sample_python_can.py support/testing: add python-can test case 2020-01-31 08:05:21 +01:00
sample_python_cbor_dec.py support/testing: add python-cbor tests 2018-11-23 22:05:46 +01:00
sample_python_cbor_enc.py support/testing: do not print non-utf-8 chars on cbor test 2019-08-11 22:11:55 +02:00
sample_python_click.py support/testing: add python-click tests 2018-11-23 22:05:46 +01:00
sample_python_constantly.py support/testing: add python-constantly tests 2018-11-23 22:05:46 +01:00
sample_python_crossbar.py support/testing: make crossbar to use umsgpack 2019-08-11 14:17:28 +02:00
sample_python_cryptography.py support/testing: use TestPythonPackageBase for python-cryptography 2018-11-13 20:55:45 +01:00
sample_python_django.py support/testing: add python-django test 2019-12-05 23:02:14 +01:00
sample_python_gitdb2.py support/testing: really fix python-gitdb2 test 2020-01-04 09:29:36 +01:00
sample_python_gobject.py support/testing/tests/package/sample_python_gobject.py: fix flake8 warnings 2020-03-24 15:54:29 +01:00
sample_python_incremental.py support/testing: use TestPythonPackageBase for python-incremental 2018-11-13 20:55:45 +01:00
sample_python_passlib.py support/testing: add python-passlib tests 2018-11-23 22:05:46 +01:00
sample_python_pexpect.py support/testing: add python-pexpect tests 2018-11-23 22:05:46 +01:00
sample_python_pynacl.py support/testing: add python-pynacl tests 2018-11-23 22:05:46 +01:00
sample_python_pyyaml_dec.py support/testing: add python-pyyaml tests 2018-11-23 22:05:46 +01:00
sample_python_pyyaml_enc.py support/testing: add python-pyyaml tests 2018-11-23 22:05:46 +01:00
sample_python_service_identity.py support/testing: add python-service-identity tests 2018-11-23 22:05:46 +01:00
sample_python_smmap2.py support/testing: add smmap2 test 2019-12-16 23:28:08 +01:00
sample_python_subprocess32.py support/testing: add python-subprocess32 test 2018-11-23 22:05:46 +01:00
sample_python_treq.py support/testing: add python-treq tests 2018-11-23 22:05:46 +01:00
sample_python_twisted.py support/testing: use TestPythonPackageBase for python-twisted 2018-11-13 20:55:45 +01:00
sample_python_txaio_asyncio.py support/testing: use TestPythonPackageBase for python-txaio 2018-11-13 20:55:45 +01:00
sample_python_txaio_twisted.py support/testing: use TestPythonPackageBase for python-txaio 2018-11-13 20:55:45 +01:00
sample_python_txtorcon.py support/testing: use TestPythonPackageBase for python-txtorcon 2018-11-13 20:55:45 +01:00
sample_python_ubjson_dec.py support/testing: add python-ubjson tests 2018-11-23 22:05:46 +01:00
sample_python_ubjson_enc.py support/testing: add python-ubjson tests 2018-11-23 22:05:46 +01:00
test_atop.py support/testing: test atop with builtin kernel 2019-08-03 14:53:05 +02:00
test_crudini.py support/testing: add runtime test for Crudini (py2 and py3) 2020-02-05 16:23:42 +01:00
test_docker_compose.py package/docker-compose: bump version to 1.24.1 2019-10-26 20:17:14 +02:00
test_dropbear.py support/testing: test_dropbear.py: drop ssh port forward to the host 2019-02-05 19:04:07 +01:00
test_glxinfo.py support/testing/glxinfo: explicitely enable GLX 2020-02-15 11:59:13 +01:00
test_gst1_python.py support/testing: fix test_gst1_python 2020-03-27 18:31:45 +01:00
test_ipython.py support/testing/tests: drop Python 2.x test in test_ipython 2019-05-18 22:41:22 +02:00
test_libftdi1.py support/testing: add libftdi1 test case 2020-02-23 11:12:09 +01:00
test_lpeg.py support/testing/tests/package/test_lua*: regeneration 2019-03-31 12:15:02 +02:00
test_lsqlite3.py support/testing: add lsqlite3 test 2019-03-28 17:20:00 +01:00
test_lua_cqueues.py support/testing: add lua-cqueues test 2019-09-29 09:15:08 +02:00
test_lua_curl.py support/testing/tests/package/test_lua*: regeneration 2019-03-31 12:15:02 +02:00
test_lua_gd.py support/testing: add lua-gd test 2019-10-26 16:31:03 +02:00
test_lua_http.py support/testing: add lua-http test 2019-03-28 19:01:00 +01:00
test_lua_lyaml.py package/lua-lyaml: new package 2020-03-20 23:00:30 +01:00
test_lua_sdl2.py support/testing: add lua-sdl2 test 2019-10-26 16:31:36 +02:00
test_lua_utf8.py support/testing: add lua-utf8 test 2019-03-28 17:20:00 +01:00
test_lua.py support/testing: provide entropy to lua tests 2019-08-11 14:17:28 +02:00
test_luaexpat.py support/testing: add luaexpat test 2019-03-28 17:20:00 +01:00
test_luafilesystem.py support/testing: add luafilesystem test 2019-03-28 17:20:00 +01:00
test_luaossl.py support/testing/tests/package/test_lua*: regeneration 2019-03-31 12:15:02 +02:00
test_luaposix.py package/luaposix: bump to version 34.1.1 2019-08-01 18:11:33 +02:00
test_luasec.py support/testing: add luasec test 2019-03-28 17:20:00 +01:00
test_luasocket.py support/testing/tests/package/test_lua*: regeneration 2019-03-31 12:15:02 +02:00
test_luasyslog.py support/testing: improve test_luasyslog 2019-08-02 17:35:44 +02:00
test_luvi.py support/testing: add luvi test 2019-10-26 16:33:12 +02:00
test_lxc.py support/testing: test_lxc.py: fix code style 2019-11-25 21:40:41 +01:00
test_lzlib.py support/testing: add lzlib test 2019-10-26 16:30:58 +02:00
test_netdata.py support/testing: add netdata test 2020-03-24 22:25:40 +01:00
test_openjdk.py support/testing: openjdk JNI test cases 2019-06-30 17:32:34 +02:00
test_opkg.py support/testing: new opkg test case 2020-02-03 22:17:42 +01:00
test_perl_class_load.py support/testing/tests/package/test_perl_*: regeneration 2019-03-31 14:01:50 +02:00
test_perl_dbd_mysql.py support/testing: add perl-dbd-mysql test 2018-12-06 22:30:30 +01:00
test_perl_encode_detect.py support/testing: add perl-encode-decode test 2018-12-06 22:30:36 +01:00
test_perl_gdgraph.py support/testing/tests/packages/test_perl_*: regeneration 2018-12-06 22:19:59 +01:00
test_perl_html_parser.py support/testing: add missing test file for perl-html-parser 2020-03-15 21:38:56 +01:00
test_perl_io_socket_multicast.py support/testing: add perl-io-socket-multicast test 2018-12-06 22:30:40 +01:00
test_perl_io_socket_ssl.py support/testing: add perl-io-socket-ssl test 2018-12-06 22:30:46 +01:00
test_perl_libwww_perl.py support/testing/tests/package/test_perl_*: regeneration 2019-03-31 14:01:50 +02:00
test_perl_lwp_protocol_https.py package/perl-lwp-protocol-https: new package 2020-03-15 21:38:56 +01:00
test_perl_mail_dkim.py support/testing/tests/package/test_perl_*: regeneration 2019-03-31 14:01:50 +02:00
test_perl_x10.py support/testing/tests/package/test_perl_*: regeneration 2019-03-31 14:01:50 +02:00
test_perl_xml_libxml.py support/testing/tests/packages/test_perl_*: regeneration 2018-12-06 22:19:59 +01:00
test_perl.py support/testing: provide entropy to perl tests 2019-08-11 14:17:28 +02:00
test_prosody.py support/testing: add prosody test 2018-12-06 23:08:59 +01:00
test_python_argh.py support/testing: add python-argh tests 2018-11-23 22:05:46 +01:00
test_python_attrs.py support/testing: add python-attrs tests 2018-11-23 22:05:46 +01:00
test_python_autobahn.py support/testing: use TestPythonPackageBase for python-autobahn 2018-11-13 20:55:45 +01:00
test_python_automat.py support/testing: add python-automat tests 2018-11-23 22:05:46 +01:00
test_python_avro.py support/testing: add test for python-avro 2019-12-29 21:38:33 +01:00
test_python_bitstring.py support/testing: add python-bitstring tests 2018-11-23 22:05:46 +01:00
test_python_can.py support/testing: add python-can test case 2020-01-31 08:05:21 +01:00
test_python_cbor.py support/testing: add python-cbor tests 2018-11-23 22:05:46 +01:00
test_python_click.py support/testing: add python-click tests 2018-11-23 22:05:46 +01:00
test_python_constantly.py support/testing: add python-constantly tests 2018-11-23 22:05:46 +01:00
test_python_crossbar.py support/testing: drop haveged for python tests 2019-08-03 14:53:05 +02:00
test_python_cryptography.py support/testing: use TestPythonPackageBase for python-cryptography 2018-11-13 20:55:45 +01:00
test_python_django.py support/testing: test_python_django: add missing line 2019-12-06 00:32:34 +01:00
test_python_gitdb2.py support/testing: add gitdb2 test 2019-12-16 23:36:45 +01:00
test_python_gobject.py support/testing/tests/package/test_python_gobject.py: fix flake8 warning 2020-03-24 15:54:29 +01:00
test_python_incremental.py support/testing: use TestPythonPackageBase for python-incremental 2018-11-13 20:55:45 +01:00
test_python_passlib.py support/testing: add python-passlib tests 2018-11-23 22:05:46 +01:00
test_python_pexpect.py support/testing: add python-pexpect tests 2018-11-23 22:05:46 +01:00
test_python_pynacl.py support/testing: drop haveged for python tests 2019-08-03 14:53:05 +02:00
test_python_pyyaml.py support/testing: add python-pyyaml tests 2018-11-23 22:05:46 +01:00
test_python_service_identity.py support/testing: add python-service-identity tests 2018-11-23 22:05:46 +01:00
test_python_smmap2.py support/testing: add smmap2 test 2019-12-16 23:28:08 +01:00
test_python_subprocess32.py support/testing: add python-subprocess32 test 2018-11-23 22:05:46 +01:00
test_python_treq.py support/testing: make treq tests to ignore warning 2019-08-11 14:17:28 +02:00
test_python_twisted.py support/testing: use TestPythonPackageBase for python-twisted 2018-11-13 20:55:45 +01:00
test_python_txaio.py support/testing: use TestPythonPackageBase for python-txaio 2018-11-13 20:55:45 +01:00
test_python_txtorcon.py support/testing: use TestPythonPackageBase for python-txtorcon 2018-11-13 20:55:45 +01:00
test_python_ubjson.py support/testing: add python-ubjson tests 2018-11-23 22:05:46 +01:00
test_python.py support/testing: drop docstring in TestPythonPackageBase::test_run() 2018-12-08 20:50:08 +01:00
test_rings.py support/testing: add rings test 2019-03-28 17:20:00 +01:00
test_rust.py support/testing/test_rust: use standard defconfig fragment style 2018-11-20 09:01:08 +01:00
test_syslog_ng.py support/testing: test_syslog_ng: improve commands 2019-10-16 21:33:04 +02:00
test_tmux.py support/testing: add tmux test 2019-10-12 15:37:51 +02:00
test_turbolua.py support/testing: add turbolua test 2019-10-02 20:57:08 +02:00