Commit 61b03200 authored by Pekka Pessi's avatar Pekka Pessi

sip/Makefile.am: renamed date_test.c as test_date.c

darcs-hash:20061221192804-65a35-da7085681f58fbedc44162872d954575e6bd39b1.gz
parent 50200415
......@@ -17,7 +17,7 @@ INCLUDES = -I$(srcdir)/../bnf -I../bnf \
noinst_LTLIBRARIES = libsip.la
check_PROGRAMS = torture_sip \
test_sip_msg validator date_test
test_sip_msg validator test_date
# ----------------------------------------------------------------------
# Rules for building the targets
......@@ -58,8 +58,8 @@ LDADD = libsip.la \
../su/libsu.la
torture_sip_LDFLAGS = -static
sip_test_msg_LDFLAGS = -static
date_test_LDFLAGS = -static
test_sip_msg_LDFLAGS = -static
test_date_LDFLAGS = -static
# ----------------------------------------------------------------------
# Install and distribution rules
......@@ -93,9 +93,9 @@ EXTRA_DIST = Doxyfile sip.docs sip_parser.docs sip.doxyaliases \
# ----------------------------------------------------------------------
# Tests
TESTS = torture_sip run_test_sip_msg run_date_test
TESTS = torture_sip run_test_sip_msg run_test_date
dist_noinst_SCRIPTS = run_test_sip_msg run_date_test
dist_noinst_SCRIPTS = run_test_sip_msg run_test_date
# ----------------------------------------------------------------------
# Sofia specific rules
......
#!/bin/sh
./date_test "Sun, 18 Mar 2001 23:01:00 GMT"
#!/bin/sh
./test_date "Sun, 18 Mar 2001 23:01:00 GMT"
......@@ -24,7 +24,7 @@
/**@internal
*
* @CFILE date_test.c
* @CFILE test_date.c
*
* Tester for SIP date parser
*
......@@ -45,7 +45,7 @@
void usage(void)
{
fprintf(stderr,
"usage: date_test [SIP-date] "
"usage: test_date [SIP-date] "
"[YYYYy][DDd][HHh][MMm][SS[s]]\n");
exit(1);
}
......@@ -65,7 +65,7 @@ int main(int ac, char *av[])
if ((s = av[1])) {
if (msg_date_d(&s, &t) < 0) {
fprintf(stderr, "date_test: %s is not valid time\n", s);
fprintf(stderr, "test_date: %s is not valid time\n", s);
exit(1);
}
......@@ -82,7 +82,7 @@ int main(int ac, char *av[])
case '\0': --s; /* FALLTHROUGH */
case 's': delta += t2; break;
default:
fprintf(stderr, "date_test: %s is not valid time offset\n" , av[2]);
fprintf(stderr, "test_date: %s is not valid time offset\n" , av[2]);
usage();
break;
}
......@@ -100,12 +100,12 @@ int main(int ac, char *av[])
s = buf, t2 = 0;
if (msg_date_d(&s, &t2) < 0) {
fprintf(stderr, "date_test: decoding %s failed\n", buf);
fprintf(stderr, "test_date: decoding %s failed\n", buf);
retval = 1;
break;
}
else if (t2 != t) {
fprintf(stderr, "date_test: %lu != %lu\n", t, t2);
fprintf(stderr, "test_date: %lu != %lu\n", t, t2);
retval = 1;
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment