-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

W dniu 15.04.2013 15:32, Antonio Terceiro pisze:

>> > How I can write one test which will cover different distributions with
>> > names of dependencies written for each of them?
>> > 
>> > For example I want to run "hrw-test-umbaumbau" test under Fedora,
>> > OpenEmbedded, Ubuntu. It requires working toolchain on device and SLang
>> > development headers. Each distro needs other names...  Today I would
>> > write a copy for each distribution.

> There is ongoing to work to push dependency installation to a helper
> script that is provided by the distro-specific support scripts:
> 
> https://code.launchpad.net/~terceiro/lava-dispatcher/modularize-distro-support
> 
> Basically, when you list deps p1, p2 and p3, lava will call
> `lava-install-packages p1 p2 p3` on the target, where
> lava-install-packages is a script that does the right thing for that
> distro.
> 
> When you have packages with different names, though, this approach does
> not work. In this case you have to remember that lava-test-shell allows
> you to run whatever you want on the target, and handle the different
> cases for each distro in your test script.
> 
> In that case, perhaps we could provide a binary called `lava-distro`
> that prints the name of the distro where the test is being run, so that
> nobody needs to duplicate distro-detection logic. What do you think?

What about this:

======================
metadata:
 name: hrw-umba-umba2
 format: "Lava-Test-Shell Test Definition 1.0"
 description: "Test to check Umba on Umba Umba"

 os:
 - ubuntu
 - fedora
 - openembedded

 install:
     deps:

     deps-ubuntu:
         - linux-libc-dev
         - build-essential

     deps-fedora:
         - glibc-devel
         - build-essential-like-package

 devices:
 - vexpress64
 - umbaumba

 run:
        steps:
                - "sh run-test.sh"
                - "sh gather-results.sh"
======================

LAVA has list of supported systems (ubuntu, fedora, openembedded in that
test) and has a list of deps for ubuntu, separate one for fedora and
empty fallback just in case (can be omitted). OpenEmbedded skips install
part because all required components are in image already.

This way if we will add for example Slackware to the list you have to
add it to 'lava-install-package' script and test authors may decide do
they want to support it or not.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJRbAtHAAoJECbKqQEReiUejcEP/2Sca/rCtteaWZs3YsFBaoes
iKzGJvnCKLpd4HwOSio79hLYUZbB4uf0FIobRWuo9w4juZRFY7Z3U9Xlld0449KE
dTLz16A4c36+fatFwj7np5Sp4hyqkvi8ABRvItAEC8vANOH2XODhisPLDlHPYH4i
myZnv29LES2AQRQnSkXx+3yR18BzA3NJ6xmzr/QkEGMQpYAGh6OlmtE/txrjkl9W
2jAmEA6tPnJiQFlhbqzZIheG2Nncqg9n1UnLGJWvSm3ATjX4eDivFTO0fh2qAlbK
TDbrqnQR4rObJ8RphnitLNCpGcx1xYaygasPeC7GcEps+F5iDs26jCLVHxeLReLn
rNLoWa5QT2DjzRT8u6TptksnmOOOmZBE9F39lhzZMFN8Zm/5VhuQgWzezFzRc8UZ
ajO3nR/VsZ2ixDfBDQ1BkJK0llzW3SjCc4EkvakMltKn+/JYaXkwinl2J8aQZL7D
QPjYXWPYXsdWqKx8izQDKuKcnGSI09/sAbBN4M3jmg8GUf3kXJ2RB41ATFOkWTlE
m7NhAg/K8C4VE9y65Ds2Yf9lDyCm/ZvMfyQchvGoF6YUtG7SvvwD3yqt3XC4bGtU
HGXCGnm0ms5lHV1VJdvg4Bl3V/GYJrijTuVXf54wIWcce5EOaHxECKFAbNdpKpWO
0JjWsER/p2iyfHPS+2Wj
=/A/P
-----END PGP SIGNATURE-----

_______________________________________________
linaro-validation mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-validation

Reply via email to