Ricardo Martincoski
a565917046
support/testing: provide entropy to perl tests
...
Newer versions of perl-io-socket-ssl require entropy.
Switch to use armv5 builtin kernel that already provides entropy for all
perl tests.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139402
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Cc: Francois Perrad <francois.perrad@gadz.org >
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-08-11 14:17:28 +02:00
Ricardo Martincoski
eb6b0fd87a
support/testing: provide entropy to lua tests
...
Newer versions of lua-http require entropy.
Switch to use armv5 builtin kernel that already provides entropy for all
lua tests.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139374
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139376
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Cc: Francois Perrad <francois.perrad@gadz.org >
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-08-11 14:17:28 +02:00
Ricardo Martincoski
d23056ffe1
support/testing: make crossbar to use umsgpack
...
Since version 19.3.3, python-autobahn assumes that when CPython is used
msgpack will be used as well [1]. But it still allows the user to
override this behavior by setting an environment variable [2] to use
umsgpack.
Make the test to explicitly use umsgpack since it is part of the minimal
config (python-crossbar selects python-u-msgpack).
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139430
[1] ea019b8042
[2] fe70ceebe0
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
Cc: Yegor Yefremov <yegorslists@googlemail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-08-11 14:17:28 +02:00
Ricardo Martincoski
ef5e87bb92
support/testing: make treq tests to ignore warning
...
Newer versions of python-treq display a warning at runtime when
service_identity is not installed:
"Without the service_identity module, Twisted can perform only
rudimentary TLS client hostname verification."
This warning message confuses the test that looks for another string in
stdout. Make the test ignore other messages while still expecting
"Connection refused".
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139449
https://gitlab.com/buildroot.org/buildroot/-/jobs/269139450
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
Cc: Yegor Yefremov <yegorslists@googlemail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-08-11 14:17:28 +02:00
Ricardo Martincoski
9609a7c2c2
support/testing: test atop with builtin kernel
...
Use the new builtin armv5 4.19 kernel to test atop.
The atop package cannot be tested using BASIC_TOOLCHAIN_CONFIG because
it needs kernel headers >= 3.14. So use an updated version of it,
copying the config fragment from
support/config-fragments/autobuild/br-arm-full.config
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-08-03 14:53:05 +02:00
Ricardo Martincoski
650e9903a9
support/testing: drop haveged for python tests
...
The new builtin armv5 kernel 4.19 uses VirtIORNG to provide entropy, so we
no longer need haveged.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/264508536
https://gitlab.com/buildroot.org/buildroot/-/jobs/264508537
https://gitlab.com/buildroot.org/buildroot/-/jobs/264508542
https://gitlab.com/buildroot.org/buildroot/-/jobs/264508543
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
[Peter: reword]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-08-03 14:53:05 +02:00
Ricardo Martincoski
56e38a705e
support/testing: test syslog-ng with builtin kernel
...
Use the new builtin kernel 4.19 with VirtIORNG to provide entropy to
test syslog-ng.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-08-03 14:53:05 +02:00
Francois Perrad
1a49dcb528
support/testing: improve test_luasyslog
...
Lua has a builtin lsyslog module, so let's test this one as well.
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be >
2019-08-02 17:35:44 +02:00
Ricardo Martincoski
450863097f
support/testing: use virtio-rng-pci to test syslog-ng
...
Recent versions of syslog-ng need some entropy on startup.
So use VirtIORNG to provide it. In order to accomplish this:
- build the kernel containing the driver;
- pass '-device virtio-rng-pci' to qemu.
Use the same kernel version and kernel config as qemu_arm_versatile.
It already has PCI enabled but it does not have HW_RANDOM_VIRTIO, so add
a defconfig fragment to enable the drivers.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/259856394
At the same time, fix a typo (missing '#') that resulted in the
generation of root.tar. This file is not used in the test.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-08-01 20:31:54 +02:00
Francois Perrad
0b32cd888e
package/luaposix: bump to version 34.1.1
...
the module std.normalize is no longer a dependency
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-08-01 18:11:33 +02:00
Francois Perrad
a0b0976c93
support/testing: add luaposix test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-08-01 10:11:18 +02:00
Daniel J. Leach
6aee78c894
support/testing: openjdk JNI test cases
...
This test case builds a native library and ensures a Java class can load
and interact with the native library. The test also verifies Java code
can make system calls via the native library.
Signed-off-by: Daniel J. Leach <dleach@belcan.com >
Acked-by: Matthew Weber <matthew.weber@rockwellcollins.com >
Tested-by: Adam Duskett <aduskett@gmail.com >
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be >
2019-06-30 17:32:34 +02:00
Francois Perrad
c8ba0f7488
package/luasyslog: new package
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-06-20 18:25:15 +02:00
Thomas Petazzoni
17809276b5
support/testing/tests: drop Python 2.x test in test_ipython
...
Since commit 6ebaef3818
("package/python-ipython: bump to version 7.4.0"), ipython is no
longer available for Python 2.x, as it requires Python 3.x.
However, the corresponding test case that was testing iPython under
Python 2.x was not removed at the same time, causing a failure of
TestIPythonPy2 test. Let's drop the test that is no longer relevant.
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/210208754
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com >
Cc: Andrey Smirnov <andrew.smirnov@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-05-18 22:41:22 +02:00
Romain Naour
ec68531774
support/testing: add test for xserver/Mesa OpenGL/glxinfo
...
This test allow to check if the xserver with GLX is working properly.
This is a basic test but it allow to trigger the current bug reported
by [1].
To test if the glxinfo test is working, you can change "-display :0" by
"-display :1" in the glxinfo command line.
[1] https://bugs.buildroot.org/show_bug.cgi?id=11591
Signed-off-by: Romain Naour <romain.naour@gmail.com >
Cc: "Yann E. MORIN" <yann.morin.1998@free.fr >
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
Signed-off-by: Romain Naour <romain.naour@smile.fr >
Signed-off-by: Youssef Harmouch <youssef.harmouch@smile.fr >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-04-11 18:23:40 +02:00
Francois Perrad
47db24b93a
support/testing/tests/package/test_perl_*: regeneration
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-31 14:01:50 +02:00
Francois Perrad
6aaba51f3b
support/testing/tests/package/test_lua*: regeneration
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-31 12:15:02 +02:00
Francois Perrad
5593ed554f
support/testing: add lua-http test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 19:01:00 +01:00
Francois Perrad
6de6f21dc3
support/testing: add rings test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
7ad1a47f9f
support/testing: add luasocket test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
97032e2f4f
support/testing: add luasec test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
d2db91b334
support/testing: add luaossl test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
3a3a661303
support/testing: add luafilesystem test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
596465e61a
support/testing: add luaexpat test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
f4dc945fbc
support/testing: add lua-utf8 test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
f830d89121
support/testing: add lua-curl test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
e7e6b2478d
support/testing: add lsqlite3 test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Francois Perrad
ac2bfe7643
support/testing: add lpeg test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-28 17:20:00 +01:00
Adam Duskett
df7bf8fb41
support/testing/tests/package/test_openjdk: new test
...
This test is a simple "Hello, World" integration test of the OpenJDK
package.
It compiles the Java app on the host, then runs it on an emulated
AARCH64 target and verifies "Hello, World" is printed.
Signed-off-by: Adam Duskett <Aduskett@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2019-03-17 14:02:18 +01:00
Peter Korsgaard
11c55c94da
support/testing: build a glibc toolchain for docker / docker-compose tests
...
runc (which is a reverse dependency of docker-engine) is about to gain a
!uclibc dependency, so move to a glibc toolchain instead.
There are currently no prebuilt x86_64 / core2 / glibc toolchains available,
so instead use the internal toolchain backend to build one.
While we are at it, drop the infra.basetest.BASIC_TOOLCHAIN_CONFIG
reference, as that ARM toolchain configuration doesn't make any sense for
this x86-64 based test.
add docker / docker-compose tests
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-02-12 20:03:46 +01:00
Peter Korsgaard
a9219660d3
support/testing: add docker / docker-compose tests
...
Build for x86-64 as public containers in general are only available for
x86-64. Docker needs a number of kernel options enabled, so use a custom
kernel config based on the qemu one.
Docker needs entropy at startup, so enable the virtio-rng-pci device to
expose entropy to the guest. The default RAM amount (128M) is not enough to
run docker / docker-compose, so bump to 512MB.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
Reviewed-by: Matthew Weber <matthew.weber@rockwellcollins.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-02-05 23:05:00 +01:00
Peter Korsgaard
092b2b5ada
support/testing: test_dropbear.py: drop ssh port forward to the host
...
It is not used and may conflict with other services running on port 2222 on
the host machine.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-02-05 19:04:07 +01:00
Peter Korsgaard
cc84a0dac6
support/testing: test_dropbear.py: add test for ssh connection to localhost
...
Use sshpass to pass the password on the command line.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-02-05 19:01:55 +01:00
Peter Korsgaard
a34005699b
support/testing: test_dropbear.py: use a constant for the password
...
The password is used in multiple places, so add a constant for it instead of
hardcoding it multiple times.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-02-05 19:01:42 +01:00
Ricardo Martincoski
e2b98dfede
support/testing: add atop test
...
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2019-01-28 10:00:45 +01:00
Thomas Petazzoni
ba99ccaae4
support/testing: drop docstring in TestPythonPackageBase::test_run()
...
Having a docstring in the test_run() method clutters the "run-tests
-l" output:
test_run (tests.package.test_python_crossbar.TestPythonPy3Crossbar)
Test a python package. ... ok
[...]
test_run (tests.package.test_python_pexpect.TestPythonPy2Pexpect)
Test a python package. ... ok
test_run (tests.package.test_python_pexpect.TestPythonPy3Pexpect)
Test a python package. ... ok
test_run (tests.package.test_python_twisted.TestPythonPy2Twisted)
Test a python package. ... ok
test_run (tests.package.test_python_twisted.TestPythonPy3Twisted)
Test a python package. ... ok
test_run (tests.package.test_python_pynacl.TestPythonPy2Pynacl)
Test a python package. ... ok
test_run (tests.package.test_python_pynacl.TestPythonPy3Pynacl)
Test a python package. ... ok
So let's simply drop this docstring that is not particularly useful.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
Signed-off-by: Peter Korsgaard <peter@korsgaard.com >
2018-12-08 20:50:08 +01:00
Francois Perrad
9d08630128
support/testing: add prosody test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-06 23:08:59 +01:00
Francois Perrad
bcfbf6437a
support/testing: add lua test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-06 22:37:10 +01:00
Francois Perrad
2d1f32f084
support/testing: add perl-io-socket-ssl test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-06 22:30:46 +01:00
Francois Perrad
35c858bd82
support/testing: add perl-io-socket-multicast test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-06 22:30:40 +01:00
Francois Perrad
d5196b8ee9
support/testing: add perl-encode-decode test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-06 22:30:36 +01:00
Francois Perrad
7046c20476
support/testing: add perl-dbd-mysql test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-06 22:30:30 +01:00
Francois Perrad
fe4b91db57
support/testing/tests/packages/test_perl_*: regeneration
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-06 22:19:59 +01:00
Francois Perrad
a03f66f431
support/testing: add perl-xml-libxml test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
[https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/124872335 ]
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-03 20:52:15 +01:00
Francois Perrad
d9f5748a07
support/testing: add perl-x10 test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
[https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/124872334 ]
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-03 20:52:10 +01:00
Francois Perrad
d48dc64c7d
support/testing: add perl-mail-dkim test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
[https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/124872333 ]
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-03 20:52:05 +01:00
Francois Perrad
1ac4178f2f
support/testing: add perl-libwww-perl test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
[https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/124872332 ]
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-03 20:50:40 +01:00
Francois Perrad
80196db1f4
support/testing: add perl-gdgraph test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
[https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/124872330 ]
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-03 20:50:25 +01:00
Francois Perrad
78f4fad3cf
support/testing: add perl-class-load test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
[https://gitlab.com/RicardoMartincoski/buildroot/-/jobs/124872329 ]
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-03 20:50:21 +01:00
Francois Perrad
e729bf722b
support/testing: add perl test
...
Signed-off-by: Francois Perrad <francois.perrad@gadz.org >
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Tested-by: Ricardo Martincoski <ricardo.martincoski@gmail.com >
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com >
2018-12-03 20:48:49 +01:00