~sbeattie/qa-regression-testing:moar-ci-tests

Last commit made on 2023-07-20
Get this branch:
git clone -b moar-ci-tests https://git.launchpad.net/~sbeattie/qa-regression-testing
Only Steve Beattie can upload to this branch. If you are Steve Beattie please log in for upload directions.

Branch merges

Branch information

Name:
moar-ci-tests
Repository:
lp:~sbeattie/qa-regression-testing

Recent commits

1e1122e... by Steve Beattie

[WIP] .launchpad.yaml: enable util-linux tests

Signed-off-by: Steve Beattie <email address hidden>

Failed
[SUCCEEDED] imagemagick:0 (build)
[SUCCEEDED] imagemagick:1 (build)
[SUCCEEDED] imagemagick:2 (build)
[SUCCEEDED] gcc-security:0 (build)
[SUCCEEDED] gcc-security:1 (build)
[SUCCEEDED] gcc-security:2 (build)
[SUCCEEDED] glibc:0 (build)
[SUCCEEDED] glibc:1 (build)
[SUCCEEDED] glibc:2 (build)
[SUCCEEDED] gnupg:0 (build)
[SUCCEEDED] gnupg:1 (build)
[SUCCEEDED] gnupg:2 (build)
[SUCCEEDED] sudo:0 (build)
[SUCCEEDED] sudo:1 (build)
[SUCCEEDED] sudo:2 (build)
[SUCCEEDED] git:0 (build)
[SUCCEEDED] git:1 (build)
[SUCCEEDED] git:2 (build)
[SUCCEEDED] ghostscript:0 (build)
[SUCCEEDED] ghostscript:1 (build)
[SUCCEEDED] ghostscript:2 (build)
[SUCCEEDED] busybox:0 (build)
[SUCCEEDED] busybox:1 (build)
[SUCCEEDED] busybox:2 (build)
[FAILED] util-linux:0 (build)
[FAILED] util-linux:1 (build)
[FAILED] util-linux:2 (build)
127 of 27 results
53ff97c... by Steve Beattie

test-util-linux.py: convert logger test to use journalctl output

In launchpad-ci, the syslog file is not present at all in the container
environment; however, in Ubuntu releases that use systemd as init, we
can query journalctl for the specific string.

Thus, we do that for systems where systemd is the init daemon. For
trusty / Ubuntu 14.04 LTS, we'll fall back to reading /var/log/syslog
directly, but only if that file exists. When trusty goes out of extended
support, we can drop the test_logger_syslog() test entirely.

Signed-off-by: Steve Beattie <email address hidden>

c587b13... by Steve Beattie

testlib.py: report which init daemon is running in the test system

Also, set this so that this info is available to test scripts.

Signed-off-by: Steve Beattie <email address hidden>

e2eb916... by Jorge Sancho Larraz

Add qrt for ecdsautils, including poc for CVE-2022-24884

4b4e34a... by Marc Deslauriers

test-curl.py: fix deprecation warning

98c0c98... by Marc Deslauriers

convert another script to py3

f704e52... by Steve Beattie

test-util-linux.py: wall test left a file handle open

... so close() it. Ideally, we'd convert testlib.mkstemp_fill to also
act as a context manager, to get auto-closing of file handles.

Signed-off-by: Steve Beattie <email address hidden>

5acee6a... by Steve Beattie

test-util-linux.py: add dependency on fdisk package

At some point in or before bionic, the *fdisk utilities were split out
into a separate fdisk package; add QRT-Alternatives entries to ensure it
is installed.

Signed-off-by: Steve Beattie <email address hidden>

4952dbf... by Steve Beattie

test-util-linux.py: fix getopt test on jammy and newer

The getopt example test script got renamed at some point between focal
and jammy to /usr/share/doc/util-linux/examples/getopt-example.bash;
take that into account.

Also convert to using the testlib assertShellOutputContains() method for
the test, to reduce the amount of needed boilerplate code.

Signed-off-by: Steve Beattie <email address hidden>

4fe3eea... by Steve Beattie

test-util-linux.py: require root privileges when running

Signed-off-by: Steve Beattie <email address hidden>