This website requires JavaScript.
Explore
Help
Sign In
BusyBox
/
busybox
mirror of
https://github.com/mirror/busybox.git
Watch
1
Star
0
Fork
You've already forked busybox
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
de3cae1348
busybox
/
testsuite
/
hostname
/
hostname-d-works
4 lines
82 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Improved portability of tests Removed assumptions about umask and locale. Fixed hostname tests to work even when the host has no DNS domain set. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-11 06:33:57 +00:00
f=$(busybox hostname -f).
randomtest fixes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-05-12 13:59:32 +00:00
d=$(busybox hostname -d)
Improved portability of tests Removed assumptions about umask and locale. Fixed hostname tests to work even when the host has no DNS domain set. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-11 06:33:57 +00:00
test x"${f#*.}" = x"$d${d:+.}"