1
0
mirror of https://github.com/systemd/systemd synced 2025-10-06 12:14:46 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Yaping Li
2e5e17a570 test-web-util.c: Migrate to new assertion MACROs
We recently added a new set of assertion macros such as ASSERT_GE, ASSERT_OK, ASSERT_EQ, ... which show not
only the expression that failed but also the values of the arguments of the expression. Let's use them.
2025-07-18 20:00:40 +01:00
Luca Boccassi
042138fbe7 readme: update ubuntu autopkgtest infra support channels
ubuntu is moving away from IRC
2025-07-18 12:15:46 +01:00
2 changed files with 13 additions and 12 deletions

View File

@ -4,17 +4,17 @@
#include "web-util.h" #include "web-util.h"
TEST(is_valid_documentation_url) { TEST(is_valid_documentation_url) {
assert_se(documentation_url_is_valid("https://www.freedesktop.org/wiki/Software/systemd")); ASSERT_TRUE(documentation_url_is_valid("https://www.freedesktop.org/wiki/Software/systemd"));
assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/binfmt_misc.txt")); /* dead */ ASSERT_TRUE(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/binfmt_misc.txt")); /* dead */
assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst")); ASSERT_TRUE(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst"));
assert_se(documentation_url_is_valid("https://docs.kernel.org/admin-guide/binfmt-misc.html")); ASSERT_TRUE(documentation_url_is_valid("https://docs.kernel.org/admin-guide/binfmt-misc.html"));
assert_se(documentation_url_is_valid("file:/foo/foo")); ASSERT_TRUE(documentation_url_is_valid("file:/foo/foo"));
assert_se(documentation_url_is_valid("man:systemd.special(7)")); ASSERT_TRUE(documentation_url_is_valid("man:systemd.special(7)"));
assert_se(documentation_url_is_valid("info:bar")); ASSERT_TRUE(documentation_url_is_valid("info:bar"));
assert_se(!documentation_url_is_valid("foo:")); ASSERT_TRUE(!documentation_url_is_valid("foo:"));
assert_se(!documentation_url_is_valid("info:")); ASSERT_TRUE(!documentation_url_is_valid("info:"));
assert_se(!documentation_url_is_valid("")); ASSERT_TRUE(!documentation_url_is_valid(""));
} }
DEFINE_TEST_MAIN(LOG_INFO); DEFINE_TEST_MAIN(LOG_INFO);

View File

@ -269,8 +269,9 @@ $ ./mark-suite-dirty -A ppa:upstream-systemd-ci/ubuntu/systemd-ci -s noble
will create an empty 'noble' repository that can be used for 'noble' CI jobs. will create an empty 'noble' repository that can be used for 'noble' CI jobs.
For infrastructure help, reaching out to 'qa-help' via the #ubuntu-quality For infrastructure help (e.g.: Github token refresh) a bug can be filed at:
channel on libera.chat is an effective way to receive support in general. https://launchpad.net/auto-package-testing or an email can be sent to the
ubuntu-quality mailing list: https://lists.ubuntu.com/mailman/listinfo/ubuntu-quality
Given access to the shared secret, tests can be re-run using the generic Given access to the shared secret, tests can be re-run using the generic
retry-github-test tool: retry-github-test tool: