summaryrefslogtreecommitdiff
path: root/test/inet/tst-ethers.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:29:21 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:31:55 +0200
commit99ef2719fb3d703fe38c4113cd7f5adec516dd3a (patch)
tree2c1f77cb41b60ccbf8faa77a3640491a3546b546 /test/inet/tst-ethers.c
parent543308f6c46cf2edf8a524bc9c631e472570fe72 (diff)
test: remove test suite
The test suite is now a developed in a separate git repository. See here: http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git The test suite should be just like every other software compiled with the cross-toolchain. In the past strange problems where found when the test suite got build in the toolchain creation step.
Diffstat (limited to 'test/inet/tst-ethers.c')
-rw-r--r--test/inet/tst-ethers.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/inet/tst-ethers.c b/test/inet/tst-ethers.c
deleted file mode 100644
index f12813aec..000000000
--- a/test/inet/tst-ethers.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#include <netinet/ether.h>
-#include <stdio.h>
-
-#define ETHER_LINE_LEN 256
-
-/* This test requires /etc/ethers to exist
- * and to have host "teeth". For example:
- * 00:11:22:33:44:55 teeth
- * You should create /etc/ethers file with
- * host "teeth" manually, if it doesn't exist.
- */
-
-int main(void)
-{
- struct ether_addr addr;
- char host[ETHER_LINE_LEN];
- int i;
- int res = ether_hostton("teeth", &addr);
-
- if (res) {
- printf("Either /etc/ethers is missing or it has incorrect contents\n");
- return 1;
- }
-
- for (i = 0; i < 6; i++) {
- printf("%02x", addr.ether_addr_octet[i]);
- if (i < 5)
- printf(":");
- }
-
- res = ether_ntohost(host, &addr);
- if (res)
- return 1;
- printf(" %s\n", host);
-
- return 0;
-}