Commit 975d35e3 authored by Pekka Pessi's avatar Pekka Pessi

Renamed test modules and programs.

Renamed msg_test.c as test_msg.c.
Renamed msg_test_class.[hc] as test_class.[hc],
        msg_test_protos.h(.in) as test_protos.h(.in),
	msg_test_table.c(.in) as test_table.c(.in).

darcs-hash:20051108102532-65a35-490146c7c8f95c74c20c13bddf15971faec8b557.gz
parent 3dc4ee7f
2005-11-08 Pekka Pessi <Pekka.Pessi@nokia.com>
* Renamed msg_test.c as test_msg.c.
* Renamed msg_test_class.[hc] as test_class.[hc],
msg_test_protos.h(.in) as test_protos.h(.in),
msg_test_table.c(.in) as test_table.c(.in).
2005-10-12 Pekka Pessi <Pekka.Pessi@nokia.com>
* Fixed msg_home() macro.
......
......@@ -13,8 +13,8 @@ INCLUDES = -I$(srcdir)/../bnf \
# Build targets
noinst_LTLIBRARIES = libmsg.la
noinst_LIBRARIES = libmsg_test.a
noinst_PROGRAMS = msg_name_hash msg_test
noinst_LIBRARIES = libtest_msg.a
noinst_PROGRAMS = msg_name_hash test_msg
# ----------------------------------------------------------------------
# Rules for building the targets
......@@ -24,11 +24,11 @@ PUBLIC_H = msg.h msg_header.h msg_types.h \
msg_mclass.h msg_mclass_hash.h msg_parser.h msg_bnf.h \
msg_auth.h msg_addr.h msg_date.h msg_buffer.h \
msg_tag_class.h msg_dll.h msg_mime.h
INTERNAL_H = msg_internal.h msg_test_class.h
INTERNAL_H = msg_internal.h test_class.h
include_HEADERS = $(GENERATED_H) $(PUBLIC_H)
BUILT_SOURCES = $(GENERATED_H) msg_test_table.c msg_test_protos.h
BUILT_SOURCES = $(GENERATED_H) test_table.c test_protos.h
libmsg_la_SOURCES = $(INTERNAL_H) \
msg.c msg_tag.c \
......@@ -40,14 +40,14 @@ libmsg_la_SOURCES = $(INTERNAL_H) \
COVERAGE_INPUT = $(libmsg_la_SOURCES) $(include_HEADERS)
libmsg_test_a_SOURCES = msg_test_class.c msg_test_table.c msg_test_protos.h
libtest_msg_a_SOURCES = test_class.c test_table.c test_protos.h
LDADD = libmsg_test.a libmsg.la \
LDADD = libtest_msg.a libmsg.la \
../bnf/libbnf.la \
../url/liburl.la \
../su/libsu.la
msg_test_LDFLAGS = -static
test_msg_LDFLAGS = -static
msg_name_hash_LDFLAGS = -static
......@@ -62,39 +62,47 @@ EXTRA_DIST = Doxyfile msg.docs \
msg_mime_protos.h.in \
msg_mime_table.c.in \
msg_protos.h.in \
msg_test_protos.h.in \
msg_test_table.c.in
test_protos.h.in \
test_table.c.in
# ----------------------------------------------------------------------
# Tests
TESTS = msg_test
TESTS = test_msg
# ----------------------------------------------------------------------
# Sofia specific rules
include ../sofia.am
s=$(srcdir)
MSG_PARSER_AWK = $(srcdir)/msg_parser.awk
$s/msg_test_%.h: $s/msg_parser.awk $s/msg_test_%.h.in $s/msg_test_class.h
$(AWK) -f $s/msg_parser.awk module=msg_test PR=$@ NO_MIDDLE=1 NO_LAST=1 $s/msg_test_class.h
AWK_MSG_AWK = $(AWK) -f $(MSG_PARSER_AWK)
$s/msg_test_table.c: $s/msg_test_class.h $s/msg_test_table.c.in \
$s/msg_parser.awk
$(AWK) -f $s/msg_parser.awk module=msg_test prefix=msg PT=$@ \
MC_HASH_SIZE=127 multipart=msg_multipart \
$s/msg_test_class.h
test_protos.h test_table.c: $(MSG_PARSER_AWK)
$s/msg_mime_table.c: $s/msg_mime.h $s/msg_mime_table.c.in $s/msg_parser.awk
$(AWK) -f $s/msg_parser.awk \
module=msg_multipart tprefix=msg prefix=mp PT=$@ \
MC_HASH_SIZE=127 $s/msg_mime.h
test_protos.h: test_protos.h.in
test_table.c: test_table.c.in
$s/msg_protos.h: $s/msg_parser.awk $s/msg_protos.h.in $s/msg_mime.h
$(AWK) -f $s/msg_parser.awk PR=$@ module=msg NO_FIRST=1 NO_MIDDLE=1 \
$s/msg_mime.h
test_protos.h: test_class.h
$(AWK_MSG_AWK) module=msg_test PR=$@ NO_MIDDLE=1 NO_LAST=1 $<
$s/msg_mime_protos.h: $s/msg_parser.awk $s/msg_mime_protos.h.in $s/msg_mime.h
$(AWK) -f $s/msg_parser.awk PR=$@ module=msg NO_FIRST=1 NO_LAST=1 \
$s/msg_mime.h
test_table.c: test_class.h
$(AWK_MSG_AWK) module=msg_test prefix=msg PT=$@ \
MC_HASH_SIZE=127 multipart=msg_multipart $<
msg_protos.h msg_mime_protos.h msg_mime_table.c: $(MSG_PARSER_AWK)
msg_protos.h: msg_protos.h.in
msg_mime_protos.h: msg_mime_protos.h.in
msg_mime_table.c: msg_mime_table.c.in
msg_protos.h: msg_mime.h
$(AWK_MSG_AWK) PR=$@ module=msg NO_FIRST=1 NO_MIDDLE=1 $<
msg_mime_protos.h: msg_mime.h
$(AWK_MSG_AWK) PR=$@ module=msg NO_FIRST=1 NO_LAST=1 $<
msg_mime_table.c: msg_mime.h
$(AWK_MSG_AWK) module=msg_multipart tprefix=msg prefix=mp PT=$@ \
MC_HASH_SIZE=127 $<
......@@ -491,7 +491,7 @@ encountered.
*/
/**
* @defgroup msg_test Testing Parser
* @defgroup test_msg Testing Parser
*
* This submodule contains the functions and types for building a
* parser objects for testing purposes.
......
......@@ -22,7 +22,7 @@
*
*/
/**@ingroup msg_test
/**@ingroup test_msg
* @CFILE msg_name_hash.c
*
* Calculate hash for given header name.
......
......@@ -22,8 +22,8 @@
*
*/
/**@ingroup msg_test
* @file msg_test_class.c
/**@ingroup test_msg
* @file test_class.c
*
* Message class for testing parser and transports.
*
......@@ -42,10 +42,10 @@
#define TAG_NAMESPACE "tst"
#include <msg_test_class.h>
#include <test_class.h>
#include <msg_parser.h>
#include <msg_mclass.h>
#include <msg_test_protos.h>
#include <test_protos.h>
#include <msg_addr.h>
extern msg_mclass_t const msg_test_mclass[1];
......@@ -55,8 +55,8 @@ extern msg_mclass_t const *msg_test_default(void)
return msg_test_mclass;
}
/**@ingroup msg_test
* @defgroup test_msg_request Request Line for Testing
/**@ingroup test_msg
* @defgroup msg_test_request Request Line for Testing
*/
static msg_xtra_f msg_request_dup_xtra;
......@@ -123,8 +123,8 @@ char *msg_request_dup_one(msg_header_t *dst, msg_header_t const *src,
return b;
}
/**@ingroup msg_test
* @defgroup test_msg_status Status Line for Testing
/**@ingroup test_msg
* @defgroup msg_test_status Status Line for Testing
*/
static msg_xtra_f msg_status_dup_xtra;
......
......@@ -23,12 +23,12 @@
*/
#ifndef MSG_TEST_CLASS_H
/** Defined when msg_test_class.h has been included. */
/** Defined when test_class.h has been included. */
#define MSG_TEST_CLASS_H
/**@ingroup msg_test
* @file msg_test_class.h
/**@ingroup test_msg
* @file test_class.h
* @brief Message and header classes for testing.
*
* @author Pekka Pessi <Pekka.Pessi@nokia.com>
......
......@@ -22,9 +22,9 @@
*
*/
/**@ingroup msg_test
/**@ingroup test_msg
*
* @CFILE msg_test.c
* @CFILE test_msg.c
*
* Torture tests for message parser.
*
......@@ -42,8 +42,8 @@
#include <stdio.h>
#include <assert.h>
#include "msg_test_class.h"
#include "msg_test_protos.h"
#include "test_class.h"
#include "test_protos.h"
#include "msg.h"
#include "msg_addr.h"
#include "msg_date.h"
......@@ -58,7 +58,7 @@ static int test_flags = 0;
#include <tstdef.h>
char const name[] = "msg_test";
char const name[] = "test_msg";
void usage(void)
{
......
......@@ -24,16 +24,16 @@
/**-*- c -*-
* @ingroup msg
* @internal @file msg_test_protos.h.in
* @internal @file test_protos.h.in
*
* Template for "msg_test_protos.h".
* Template for "test_protos.h".
*/
#ifndef MSG_TEST_PROTOS_H /** Defined when msg_test_protos.h has been included. */
#define MSG_TEST_PROTOS_H
#ifndef TEST_PROTOS_H /** Defined when test_protos.h has been included. */
#define TEST_PROTOS_H
/**@ingroup msg_test
* @file msg_test_protos.h
/**@ingroup test_msg
* @file test_protos.h
*
* Prototypes and macros for dummy testing protocol headers.
*
......@@ -351,4 +351,4 @@ su_inline msg_#xxxxxx#_t *msg_#xxxxxx#_format(su_home_t *home, char const *fmt,
#endif /* !defined(MSG_TEST_PROTOS_H) */
#endif /* !defined(TEST_PROTOS_H) */
/**@ingroup msg_test
* @IFILE msg_test_table.c.in
/**@ingroup test_msg
* @IFILE test_table.c.in
*
* Template for <msg_test_table.c>.
* Template for <test_table.c>.
*
* @date Created: Wed Feb 21 11:01:45 2001 ppessi
*/
......@@ -30,9 +30,9 @@
*
*/
/**@ingroup msg_test
/**@ingroup test_msg
*
* @CFILE msg_test_table.c
* @CFILE test_table.c
* @brief Parser table used for testing.
*
* #AUTO#
......@@ -47,8 +47,8 @@
#include <stddef.h>
#include <string.h>
#include <msg_test_class.h>
#include <msg_test_protos.h>
#include <test_class.h>
#include <test_protos.h>
#include <msg_mime_protos.h>
#include <msg_mclass.h>
......
......@@ -50,8 +50,8 @@ typedef struct tp_test_s tp_test_t;
#include <su_wait.h>
#include <su_md5.h>
#include "msg_test_class.h"
#include "msg_test_protos.h"
#include "test_class.h"
#include "test_protos.h"
#include "msg.h"
#include "msg_mclass.h"
#include "msg_addr.h"
......
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