Commit Graph
19 Commits
Author SHA1 Message Date
Laurent Cheylus e9ef08622d hostname: enable test test_hostname_ip on OpenBSD
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2025-11-13 09:42:14 +01:00
Sylvestre Ledru 2a8a7b36e3 silent some tests for openbsd for now 2025-11-09 00:12:39 +01:00
alexanderandGitHub 517b5fb8b3 hostname: fix -d flag (#8657)
* hostname: fix -d flag

* tests/hostname: test -d when no domain
2025-10-15 22:07:54 -04:00
Dorian Peron 6e23d4e979 tests: patch tests to simplify imports 2025-07-01 03:36:46 +02:00
Sylvestre Ledru a0179ea239 uutests: adjust the tests to use them 2025-03-28 21:40:31 +01:00
Sylvestre Ledru 18cb7dcf9e Use the new function fails_with_code
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Laurent CheylusandSylvestre Ledru 4b3e039118 hostname: enable test test_hostname_ip for FreeBSD and OpenBSD
Signed-off-by: Laurent Cheylus <foxy@free.fr>
2024-07-09 22:44:16 +02:00
Laurent Cheylus 2faab59aa4 tests/hostname: disable failing test_hostname::test_hostname_ip on OpenBSD
- On OpenBSD, test_hostname::test_hostname_ip fails with "failed to lookup address information:
    Name does not resolve" error

Signed-off-by: Laurent Cheylus <foxy@free.fr>
2023-12-11 12:45:16 +01:00
Sylvestre Ledru bfca6bf70f Add license headers on all files 2023-08-21 10:49:27 +02:00
Daniel Hofstetter 6988eb7ec6 tests: expand wildcard imports 2023-03-20 15:32:35 +01:00
Terts Diepraam 9177cb7b24 all: add tests for usage error exit code 2022-09-10 20:59:42 +02:00
Sylvestre Ledru 697dca25cb silent the failed tests for now on freebsd 2021-08-24 09:32:27 +02:00
Gilad Naaman b91fadd8f4 Refactored tests for more utilities 2021-04-18 02:32:43 +03:00
Sylvestre LedruandSylvestre Ledru c5b43c0994 rustfmt the recent change 2021-04-17 13:21:30 +02:00
Gilad Naaman 81d42aa2b3 Fix some tests to not use CmdResult fields 2021-04-10 23:30:50 +03:00
aspen 4e29b693f8 uutils: change every target_os = "macos" to target_vendor = "apple" 2021-03-18 08:42:53 -04:00
Roy Ivy III 6dfe2dd4a3 tests ~ disable failing 'test_hostname::test_hostname_ip' test on MacOS
- also adds FixME to prompt future correction
2020-06-14 23:38:30 -05:00
Roy Ivy III cbac6cc903 tests ~ increase test detail to diagnose MacOS hostname test failure 2020-06-14 23:38:30 -05:00
Roy Ivy III de0375f909 tests ~ reorganize tests 2020-06-01 18:30:04 -05:00