diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 20:29:21 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-10-28 20:31:55 +0200 |
commit | 99ef2719fb3d703fe38c4113cd7f5adec516dd3a (patch) | |
tree | 2c1f77cb41b60ccbf8faa77a3640491a3546b546 /test/inet/tst-ether_aton.c | |
parent | 543308f6c46cf2edf8a524bc9c631e472570fe72 (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-ether_aton.c')
-rw-r--r-- | test/inet/tst-ether_aton.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/test/inet/tst-ether_aton.c b/test/inet/tst-ether_aton.c deleted file mode 100644 index 67cb43540..000000000 --- a/test/inet/tst-ether_aton.c +++ /dev/null @@ -1,46 +0,0 @@ -#include <stdio.h> -#include <stdint.h> -#include <string.h> -#include <netinet/ether.h> - -static struct tests -{ - const char *input; - int valid; - uint8_t result[6]; -} tests[] = -{ - { "", 0, {0, 0, 0, 0, 0, 0} }, - { "AB:CD:EF:01:23:45", 1, {171, 205, 239, 1, 35, 69} }, - { "\022B:BB:BB:BB:BB:BB", 0, {0, 0, 0, 0, 0, 0} } -}; - - -int -main (int argc, char *argv[]) -{ - int result = 0; - size_t cnt; - - for (cnt = 0; cnt < sizeof (tests) / sizeof (tests[0]); ++cnt) - { - struct ether_addr *addr; - - if (!!(addr = ether_aton (tests[cnt].input)) != tests[cnt].valid) - { - if (tests[cnt].valid) - printf ("\"%s\" not seen as valid MAC address\n", tests[cnt].input); - else - printf ("\"%s\" seen as valid MAC address\n", tests[cnt].input); - result = 1; - } - else if (tests[cnt].valid - && memcmp(addr, &tests[cnt].result, sizeof(struct ether_addr))) - { - printf ("\"%s\" not converted correctly\n", tests[cnt].input); - result = 1; - } - } - - return result; -} |