Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [RFC 0/4] suppport/testing: Perl, Lua and their modules
@ 2018-11-17 17:52 Francois Perrad
  2018-11-17 17:52 ` [Buildroot] [RFC 1/4] support/testing: add perl test Francois Perrad
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Francois Perrad @ 2018-11-17 17:52 UTC (permalink / raw)
  To: buildroot

The testing infrastructure seems not yet documented.
So, I use the recent work on Python2/3 modules as example.

On my local machine, I run successfully:
	flake8
	run-tests --list
So, the Python syntax is correct.
But, I don't know how to run a test on Qemu.

As future work, I think that scancpan could generate test for Perl/CPAN packages.
Loading a pure Perl module has no real added value.
So, test will be generated only for XS modules.

luainterpreter is a virtual package, provided by lua or luajit.
lua comes with 3 versions (5.1, 5.2, 5.3), 5.3 is the BR default.
On 32 bits target, BR enables by default the "32 bits numbers" compilation option.
I think that most of upstream authors never test their modules with a "32 bits numbers" lua.
Currently, test_lua uses this worst config (Lua 5.3 "32 bits numbers").
What do you think about shuffle various Lua interpreters ?

Francois Perrad (4):
  support/testing: add perl test
  support/testing: add perl-time-hires test
  support/testing: add lua test
  support/testing: add lpeg test

 .gitlab-ci.yml                                |  4 +++
 support/testing/tests/package/test_lua.py     | 33 +++++++++++++++++++
 .../testing/tests/package/test_lua_lpeg.py    | 13 ++++++++
 support/testing/tests/package/test_perl.py    | 33 +++++++++++++++++++
 .../tests/package/test_perl_time_hires.py     | 12 +++++++
 5 files changed, 95 insertions(+)
 create mode 100644 support/testing/tests/package/test_lua.py
 create mode 100644 support/testing/tests/package/test_lua_lpeg.py
 create mode 100644 support/testing/tests/package/test_perl.py
 create mode 100644 support/testing/tests/package/test_perl_time_hires.py

-- 
2.17.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-11-22  2:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-17 17:52 [Buildroot] [RFC 0/4] suppport/testing: Perl, Lua and their modules Francois Perrad
2018-11-17 17:52 ` [Buildroot] [RFC 1/4] support/testing: add perl test Francois Perrad
2018-11-19  1:11   ` Ricardo Martincoski
2018-11-21 16:26     ` François Perrad
2018-11-22  2:39       ` Ricardo Martincoski
2018-11-17 17:52 ` [Buildroot] [RFC 2/4] support/testing: add perl-time-hires test Francois Perrad
2018-11-19  1:14   ` Ricardo Martincoski
2018-11-19 19:29     ` François Perrad
2018-11-19 22:57       ` Ricardo Martincoski
2018-11-17 17:52 ` [Buildroot] [RFC 3/4] support/testing: add lua test Francois Perrad
2018-11-17 17:52 ` [Buildroot] [RFC 4/4] support/testing: add lpeg test Francois Perrad
2018-11-19  0:27 ` [Buildroot] [RFC 0/4] suppport/testing: Perl, Lua and their modules Ricardo Martincoski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox