Richard Maw
8799346862
test: mount overlayfs over /usr in some tests
...
Most of the integration tests have been made to not write to /usr
but some genuinely need to do so.
Because mkosi creates images with a read-only /usr
it is not normally writeable.
By mounting an overlayfs with /usr as the lower dir
and upper and working dirs in /var tests may write to /usr.
2023-12-13 17:55:45 +00:00
Frantisek Sumsal
07268394d6
test: unify /testok & /failed handling
...
And drop it where not necessary.
2023-07-12 16:03:40 +02:00
Frantisek Sumsal
b60d910d12
test: abstract the test case logic into a shared function
2023-05-22 16:02:49 +02:00
Frantisek Sumsal
a9ec30ab7e
test: check if we correctly handle locales with leading spaces
...
Provides coverage for #27179 .
2023-05-19 21:35:47 +02:00
Frantisek Sumsal
305aa43815
tests: run all functions with testcase_ prefix automagically
2023-05-19 20:03:34 +02:00
Frantisek Sumsal
cb153b4fe9
test: rename assert.sh to util.sh
...
So we can extend it with additional utility functions without making it
confusing.
No functional change.
2023-05-16 22:43:52 +02:00
Franck Bui
fd34e27fb9
test: dont use anchor char '$' to match a part of a string
...
When anchoring the pattern using '$' regular expression operator it forces '=~'
operator to match the entire string.
2023-04-27 22:42:51 +08:00
Luca Boccassi
66a0ee55d8
Merge pull request #27355 from fbuihuu/kbd-improve-vc2x11-conversion
...
locale: improve vc -> x11 keyboard conversion
2023-04-26 23:37:53 +01:00
Franck Bui
b35f71ac1a
locale: when no xvariant match select the entry with an empty xvariant
...
When doing a conversion and the specified 'xc->xvariant' has no match, select
the x11 layout entry with a matching layout and an empty xvariant if such entry
exists. It's still better than no conversion at all.
2023-04-26 08:15:17 +02:00
Zbigniew Jędrzejewski-Szmek
4481a30855
test: use idiomatic bash loop iteration
...
In a few cases, also avoid a sleep in the last (failed) iteration of the loop.
It doesn't matter too much, but it's still ugly.
2023-04-24 21:59:28 +02:00
Frantisek Sumsal
94d82b5980
tree-wide: code spelling fixes
...
As reported by Fossies.
2023-04-20 21:54:59 +02:00
Franck Bui
f9a23d428a
test: use kbd-mode-map we ship in TEST-73-LOCALE
...
The rational is the same as the one described in commit
be0cc2ce6c .
2023-04-05 19:58:57 +01:00
Yu Watanabe
fcf8b80d1d
test: add test for invalid keymap setting
2023-03-25 15:36:53 +09:00
Zbigniew Jędrzejewski-Szmek
7a17e41dcf
test: drop whitespace after shell redirection operators
...
(The one case that is left unchanged is '< <(subcommand)'.)
This way, the style with no gap was already dominant. This way, the reader
immediately knows that ' < ' is a comparison operator and ' << ' is a shift.
In a few cases, replace custom EOF replacement by just EOF. There is no point
in using someting like "_EOL" unless "EOF" appears in the text.
2023-02-06 09:19:04 +01:00
Yu Watanabe
21a9c92625
test: add tests for localectl --no-convert
2023-01-28 15:06:00 +09:00
Luca Boccassi
1fd579061a
locale: rename new XKB variables to match Debian/Ubuntu's
...
Debian/Ubuntu use almost the same variables, but without '_'. Given
our usage is new, rename them so that they match and downstream tech
debt can be removed.
Follow-up for https://github.com/systemd/systemd/pull/25805
See:
https://github.com/systemd/systemd/issues/24228
https://github.com/systemd/systemd/pull/25412
2023-01-24 22:09:58 +01:00
Luca Boccassi
deeebc95af
Merge pull request #25805 from yuwata/locale-xkb-save-vconsole
...
locale: also save X11 keyboard settings to /etc/vconsole.conf
2023-01-23 19:40:12 +00:00
Michael Biebl
a4bc35740a
test: fix TEST-73-LOCALE on Debian
...
Fix incorrection assumption about the Debian patch being buggy and
actually making TEST-73-LOCALE fail on Debian.
```
# localectl set-locale LANG=C.UTF-8
# cat /etc/default/locale
LANG=C.UTF-8
```
2023-01-23 11:41:14 +00:00
Yu Watanabe
8589823f9d
locale: also save XKB settings to vconsole.conf
...
Closes #24228 .
Replaces #25412 .
2023-01-23 11:30:03 +00:00
Franck Bui
b1afa5a67b
test: update TEST-73-LOCALE to define several locale settings in initial PID1 environment
2022-12-02 12:18:18 +01:00
Zbigniew Jędrzejewski-Szmek
639405b934
hostnamectl,localectl: use "(unset)" in empty fields
...
"n/a" is more ambiguous: not available or not set or maybe we didn't check it.
Let's just say directly that the field is not set.
2022-09-21 14:48:28 +02:00
Yu Watanabe
47ba157cc0
test: import localed tests from debian/ubuntu test suite
2022-06-14 20:59:36 +09:00