diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-20 12:02:14 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-20 12:11:57 +0100 |
commit | 72df7f09ecb0dc0bb6352aa9ec30728ba896341d (patch) | |
tree | 5c8f38e8030708a1ff269704b8e2b8d7ee3cf6e2 /tests/mtp | |
parent | ebd4f4563c819e36544759aef85fc6836c244c88 (diff) |
tests: Run the existing tests with GNU Autotest
SCCP: Use DST/SRC Ref instead of the pointer value to create
stable releases.
Diffstat (limited to 'tests/mtp')
-rw-r--r-- | tests/mtp/Makefile.am | 2 | ||||
-rw-r--r-- | tests/mtp/mtp_parse_test.c | 4 | ||||
-rw-r--r-- | tests/mtp/mtp_parse_test.ok | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/tests/mtp/Makefile.am b/tests/mtp/Makefile.am index 1f364b6..9e9292c 100644 --- a/tests/mtp/Makefile.am +++ b/tests/mtp/Makefile.am @@ -1,4 +1,6 @@ INCLUDES = $(all_includes) -I$(top_srcdir)/include -Wall noinst_PROGRAMS = mtp_parse_test +EXTRA_DIST = mtp_parse_test.ok + mtp_parse_test_SOURCES = mtp_parse_test.c diff --git a/tests/mtp/mtp_parse_test.c b/tests/mtp/mtp_parse_test.c index 434f825..0e38077 100644 --- a/tests/mtp/mtp_parse_test.c +++ b/tests/mtp/mtp_parse_test.c @@ -583,6 +583,8 @@ int main(int argc, char **argv) uint32_t addr; int i; + printf("Basic MTP Structure testing.\n"); + /* set the addresses here due big endian MTP_ADDRESS macro */ tests[0].hdr.addr = MTP_ADDR(0x00, 136, 91); tests[1].hdr.addr = MTP_ADDR(0x00, 136, 91); @@ -624,6 +626,6 @@ int main(int argc, char **argv) } } - fprintf(stderr, "SUCCESS\n"); + printf("All tests passed.\n"); return 0; } diff --git a/tests/mtp/mtp_parse_test.ok b/tests/mtp/mtp_parse_test.ok new file mode 100644 index 0000000..cee2aeb --- /dev/null +++ b/tests/mtp/mtp_parse_test.ok @@ -0,0 +1,2 @@ +Basic MTP Structure testing. +All tests passed. |