* modules/getdomainname-tests: New file. * tests/test-getdomainname.c: New file, based on tests/test-gethostname.c.