- Mar 27, 2018
-
-
Luis Araujo authored
New LAVA version will check kernel messages to make sure the kernel can start correctly. This commit adds the kernel_start_message variable to the job templates to test for any string as a valid kernel message after the bootloader is properly matched. Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Reviewed-by:
Guillaume Tucker <guillaume.tucker@collabora.com> Differential Revision: https://phabricator.apertis.org/D7638
-
- Feb 01, 2018
-
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk>
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk>
-
- Jan 31, 2018
-
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk>
-
Andrej Shadura authored
Ifconfig's output format has changed recently, leading to parsing failures. Use iproute's output, as it's more stable. Apertis: T4500 Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Luis Araujo <luis.araujo@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7549
-
- Jan 30, 2018
-
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk>
-
Andrej Shadura authored
Apertis: T4500 Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7544
-
- Jan 29, 2018
-
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk>
-
Andrej Shadura authored
Apertis: T4500 Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Sjoerd Simons <sjoerd.simons@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7539
-
- Jan 26, 2018
-
-
Luis Araujo authored
There is no need to test for all locales in minimal images. Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Reviewed-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7527
-
Andrej Shadura authored
Move tests requiring bash to the bottom, so it's installed after all non-bash-requiring tests have been performed. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7528
-
Andrej Shadura authored
These are quite difficult to port to dash fully right now, revert to bash. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7523
-
- Jan 25, 2018
-
-
Luis Araujo authored
This test actually requires some locale po files installed by the apertis-tests package in a data dir to execute the tests. So revert the previous change to execute this test from git, and instead keep using the apertis-test package. Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Reviewed-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7509
-
- Jan 24, 2018
-
-
Andrej Shadura authored
This code is unmaintainable as is, and is buggy. If run with set -e, it would not detect failures properly and fail only because test would fail with an unquoted $s argument, which would be unset because echo would fail to run after the command failed. Instead, let's just drop this horrific wizardry and use plain simple || return $? to pass the return code further on. Also, reduce the function of DEBUG to enabling all output, defaulting to disabling both stdout and stderr. The original code didn't do what it said it was doing anyway. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7506
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Martyn Welch <martyn.welch@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7504
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Martyn Welch <martyn.welch@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7503
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Martyn Welch <martyn.welch@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7502
-
Andrej Shadura authored
- Use sed instead of bash replacing substitutions - Use = instead of == in [. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Martyn Welch <martyn.welch@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7501
-
Before creating the temporary directory for tests, create the baseworkdir path for it. Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Reviewed-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7500
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk>
-
- Jan 23, 2018
-
-
Andrej Shadura authored
Add bash as a dependency and move to the SDK template. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7498
-
This commit gets the librest, libsoup and glib-gio-fs tests to run directly from git. It also removes the unneeded package dependency on chaiwala-tests. Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Reviewed-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7494
-
Andrej Shadura authored
The only tests remaining not ported are tumbler tests and a few SDK tests. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7497
-
Andrej Shadura authored
SDK images should have bash preinstalled anyway, but we mark these tests in their definition for clarity so that it's not forgotten if anything changes. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7495
-
Andrej Shadura authored
POSIX shell doesn't support RANDOM variable getting a new random number on each read. In fact, we don't need it in most places, as creating temporary directories is better done by mktemp, and we don't really need to randomise the port number. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Luis Araujo <luis.araujo@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7496
-
Luis Araujo authored
The recommended way to run tests is from the git repository directly since most of the scripts are adapted to run tests this way. This commit also removes the unneeded chaiwala-tests package dependency. Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Reviewed-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7493
-
Luis Araujo authored
The recommended way to run tests is from the git repository directly since most of the scripts are adapted to run tests this way. This commit also removes the unneeded chaiwala-tests package dependency. Signed-off-by:
Luis Araujo <luis.araujo@collabora.co.uk> Reviewed-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7492
-
Andrej Shadura authored
-
- Jan 22, 2018
-
-
Andrej Shadura authored
As dash doesn't support trapping on ERR, we should ignore the error when we cannot remove the trap. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7489
-
Andrej Shadura authored
Testing variables for emptiness (-z) on non-emptiness (-n) needs variables to be properly quoted, otherwise it may not work correctly. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7488
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7487
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7486
-
Andrej Shadura authored
"Test failed! 0 > 0" in the logs looks really confusing. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7485
-
- Jan 19, 2018
-
-
Andrej Shadura authored
Fix some more bashishms, and actually change the hashbang. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Denis Pynkin <denis.pynkin@collabora.com> Differential Revision: https://phabricator.apertis.org/D7474
-
- Jan 18, 2018
-
-
Andrej Shadura authored
Instead of iterating over the titles etc twice, first to run tests, second to print the results, just print the results immediately after running the tests. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Denis Pynkin <denis.pynkin@collabora.com> Differential Revision: https://phabricator.apertis.org/D7478
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Denis Pynkin <denis.pynkin@collabora.com> Differential Revision: https://phabricator.apertis.org/D7477
-
Andrej Shadura authored
Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Denis Pynkin <denis.pynkin@collabora.com> Differential Revision: https://phabricator.apertis.org/D7476
-
Andrej Shadura authored
- lists, not arrays - [, not [[ - $$, not $BASHPID - put each local on its own line - which from debianutils, not type -P Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Denis Pynkin <denis.pynkin@collabora.com> Differential Revision: https://phabricator.apertis.org/D7475
-
- Jan 17, 2018
-
-
Andrej Shadura authored
POSIX doesn't allow trapping on ERR, trap on EXIT instead and check $?. Where cleanup is necessary before handling errors, save the exit code and pass it to test_failure a bit later. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7470
-
Andrej Shadura authored
Checking the return code inside the *_failure functions makes it possible to use it with either ERR or EXIT trap. Replace previously deployed workarounds to use *_failure as is. Signed-off-by:
Andrew Shadura <andrew.shadura@collabora.co.uk> Reviewed-by:
Emanuele Aina <emanuele.aina@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D7472
-