diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-09 16:02:10 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-02-12 08:44:11 -0500 |
commit | 51572e9090d19b1f7cff8a10f70f75d7451ffdd4 (patch) | |
tree | d85a81c4a31c04627caab4e7827ce8fec04ce5d0 /common/elapi/elapi_test | |
parent | 1c244b0fd4f2db2fae784a66b2ad48a8aa623a8d (diff) | |
download | sssd-51572e9090d19b1f7cff8a10f70f75d7451ffdd4.tar.gz sssd-51572e9090d19b1f7cff8a10f70f75d7451ffdd4.tar.bz2 sssd-51572e9090d19b1f7cff8a10f70f75d7451ffdd4.zip |
Remove ELAPI from the SSSD repository
ELAPI now lives in its own project at
https://fedorahosted.org/ELAPI
Diffstat (limited to 'common/elapi/elapi_test')
-rw-r--r-- | common/elapi/elapi_test/Makefile.am | 63 | ||||
-rw-r--r-- | common/elapi/elapi_test/configure.ac | 32 | ||||
-rw-r--r-- | common/elapi/elapi_test/elapi_ut.c | 553 | ||||
-rw-r--r-- | common/elapi/elapi_test/elapi_ut.conf | 218 | ||||
-rw-r--r-- | common/elapi/elapi_test/m4/.dir | 0 |
5 files changed, 0 insertions, 866 deletions
diff --git a/common/elapi/elapi_test/Makefile.am b/common/elapi/elapi_test/Makefile.am deleted file mode 100644 index 8a24b9f0..00000000 --- a/common/elapi/elapi_test/Makefile.am +++ /dev/null @@ -1,63 +0,0 @@ -TRACE_LEVEL=@TRACE_VAR@ - -topdir=$(srcdir)/../.. - -AM_CFLAGS = -DELAPI_DEFAULT_CONFIG_DIR=\"$(srcdir)\" \ - -DELAPI_DEFAULT_CONFIG_APP_DIR=\"$(srcdir)\" \ - -DELAPI_DEFAULT_APP_NAME=\"elapi_ut\" \ - -DELAPI_DEFAULT_APP_NAME_SIZE=127 - -if HAVE_GCC - AM_CFLAGS += \ - -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ - -Wcast-align -Wwrite-strings -endif - -AM_CPPFLAGS = -I$(topdir) -I$(topdir)/ini -I$(topdir)/trace -I$(topdir)/collection -I$(topdir)/elapi \ - -I$(topdir)/elapi/providers/file $(TRACE_LEVEL) - -ACLOCAL_AMFLAGS = -I m4 - -dist_noinst_DATA = m4 \ - elapi_ut.conf - -# Build library -noinst_LTLIBRARIES = libelapi_test.la - -libelapi_test_la_SOURCES = \ - ../elapi_event.c \ - ../elapi_log.c \ - ../elapi_internal.c \ - ../elapi_sink.c \ - ../elapi_basic.c \ - ../elapi_basic.h \ - ../elapi_resolve.c \ - ../elapi_async.c \ - ../elapi_subst.c \ - ../elapi_ioctl.c \ - ../elapi_event.h \ - ../elapi_priv.h \ - ../elapi_sink.h \ - ../elapi_log.h \ - ../elapi_async.h \ - ../elapi_ioctl.h \ - ../elapi_net.h \ - ../elapi_fd.h \ - ../elapi_tm.h \ - ../elapi_defines.h \ - ../elapi.h \ - ../providers/file/file_provider.c \ - ../providers/file/file_provider.h \ - ../providers/file/file_util.c \ - ../providers/file/file_util.h \ - ../providers/file/file_fmt_csv.c \ - ../providers/file/file_fmt_csv.h - -# Build unit test -check_PROGRAMS = elapi_ut -elapi_ut_SOURCES = elapi_ut.c -elapi_ut_LDADD = libelapi_test.la ../../ini/libini_config.la ../../collection/libcollection.la -ldl - -TESTS = elapi_ut - -tests: all $(check_PROGRAMS) diff --git a/common/elapi/elapi_test/configure.ac b/common/elapi/elapi_test/configure.ac deleted file mode 100644 index 44524e70..00000000 --- a/common/elapi/elapi_test/configure.ac +++ /dev/null @@ -1,32 +0,0 @@ -AC_INIT([elapi],[0.0.1],[sssd-devel@lists.fedorahosted.org]) -AC_CONFIG_SRCDIR([elapi_ut.c]) -AC_CONFIG_AUX_DIR([build]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) -AC_PROG_CC -AC_PROG_LIBTOOL -AC_CONFIG_MACRO_DIR([m4]) -AC_PROG_INSTALL - -AM_CONDITIONAL([HAVE_GCC], [test "$ac_cv_prog_gcc" = yes]) - -m4_pattern_allow([AM_SILENT_RULES]) -AM_SILENT_RULES - -AC_CONFIG_HEADERS([config.h]) - -# Enable trace build -AC_ARG_ENABLE([trace], - [AS_HELP_STRING([--enable-trace[=LEVEL]],[build with low level tracing enabled])], - [trace_level="$enableval"], - [trace_level="0"]) -AS_IF([test ["$trace_level" -gt "0"] -a ["$trace_level" -lt "8"] ],[AC_SUBST([TRACE_VAR],["-DTRACE_LEVEL=$trace_level"])]) - -# Enable trace build -AC_ARG_ENABLE([verbose], - [AS_HELP_STRING([--enable-verbose],[build with verbose output])], - [AC_DEFINE([ELAPI_VERBOSE],[],[add verbose output])],[]) - -m4_include(../def_macros.m4) - -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT diff --git a/common/elapi/elapi_test/elapi_ut.c b/common/elapi/elapi_test/elapi_ut.c deleted file mode 100644 index 49fe1a26..00000000 --- a/common/elapi/elapi_test/elapi_ut.c +++ /dev/null @@ -1,553 +0,0 @@ -/* - ELAPI - - Unit test for the ELAPI event interface. - - Copyright (C) Dmitri Pal <dpal@redhat.com> 2009 - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or - (at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -#include <stdio.h> -#include <stdarg.h> -#define TRACE_HOME -#include "trace.h" -#include "elapi.h" -#include "collection_tools.h" - -/* THIS IS A PRIVATE HEADER - included for debugging purposes only! */ -#include "elapi_priv.h" - -#define APPNAME "elapi_ut" -#define ELAPI_CONFIG_FILE "elapi_ut.conf" - -typedef int (*test_fn)(void); - -int elapi_init_test(void) -{ - int error = 0; - - printf("elapi_init test START:\n"); - - error = elapi_init(APPNAME, "./"ELAPI_CONFIG_FILE); - if (error) { - printf("elapi_init failed: %d\n", error); - return error; - } - - elapi_close(); - - printf("elapi_init test success!\n"); - return 0; -} - -int elapi_get_default_tplt_test(void) -{ - struct collection_item *tpl; - int error = 0; - - printf("elapi_get_default_tplt_test test START:\n"); - - error = elapi_get_default_tplt(&tpl); - if (error) { - printf("elapi_get_default_tplt failed: %d\n", error); - return error; - } - - printf("elapi_get_default_tplt test success!\n"); - return 0; -} - -int simple_event_test(void) -{ - int error = 0; - struct collection_item *event; - char bin[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; - - printf("Simple test START:\n"); - - error = elapi_set_default_tplt( - E_BASE_DEFV1 | E_BASE_HOSTEXT /* FIXME Ticket #207 */, - "%n( bin )", bin, 8, - " %sb( logical1 )", "false", - "%sb( logical2 )", "YES", - " %db(logical3)", 1, - "%d(int_number),", -200, - "%u(unsigned_number)", 300, - "%ld(long_number)", -1234567, - "%lu(long_unsigned_number)", 123456789, - "%s(just_string)", "string", - "%*s(sub_string)", "truncated string", 10, /* Expect word truncated */ - "%e(double_number)", 3.141592 * 3, - "simple", "value", - "-" E_UTCTIME, /* Remove UTCTIME from the list */ - E_MESSAGE, - "%(stamp), %s(sub_string), %(int_number), %(unsigned_number), %(long_unsigned_number), %(bin), %e(double_number)", - E_EOARG); - - if (error) { - printf("Failed to set default template! %d\n", error); - return error; - } - - error = elapi_create_simple_event( - &event, - " %db(foo_logical)", 0, - "%d(foo_int_number),", -2000, - "%u(foo_unsigned_number)", 3000, - "%ld(foo_long_number)", -7654321, - E_EOARG); - - if (error) { - printf("Failed to create simple event! %d\n", error); - return error; - } - - error = ELAPI_EVT_DEBUG(event); - if (error) { - printf("Failed to log event to debug ! %d\n", error); - elapi_destroy_event(event); - return error; - } - - error = ELAPI_EVT_LOG(event); - if (error) { - printf("Failed to log event to log ! %d\n", error); - elapi_destroy_event(event); - return error; - } - - error = ELAPI_EVT_AUDIT(event); - - if (error) { - printf("Failed to log event to audit ! %d\n", error); - elapi_destroy_event(event); - return error; - } - - elapi_destroy_event(event); - - error = elapi_msg(E_TARGET_DEBUG, NULL, "a", "b", "c", "d", E_EOARG); - if (error) { - printf("Failed to log \"debug\" event! %d\n", error); - return error; - } - - error = elapi_msg(E_TARGET_LOG, NULL, "a", "b", "c", "d", E_EOARG); - if (error) { - printf("Failed to log \"log\" event! %d\n", error); - return error; - } - - error = elapi_msg(E_TARGET_AUDIT, NULL, "a", "b", "c", "d", E_EOARG); - if (error) { - printf("Failed to log \"audit\" event! %d\n", error); - return error; - } - - /* Internal function to print dispatcher guts */ - elapi_print_dispatcher(elapi_get_dispatcher()); - - printf("Simple test success!\n"); - - return error; -} - -int complex_event_test(void) -{ - int error = 0; - struct collection_item *tpl = NULL; - struct collection_item *event = NULL, *event_copy = NULL; - char bin[] = { 1, 2, 3, 4, 5, 6, 7, 8 }; - struct collection_item *col = NULL; - struct elapi_dispatcher *dispatcher = NULL; - - printf("Complex test START:\n"); - - error = elapi_create_event_tplt( - &tpl, - E_BASE_DEFV1 | E_BASE_HOSTEXT, - "%lu(long_unsigned_number)", 123456789, - "%s(just_string)", "string", - "%*s(sub_string)", "truncated string", 10, /* Expect word truncated */ - "%e(double_number)", 3.141592 * 3, - "simple", "value", - "-" E_UTCTIME, /* Remove UTCTIME from the list */ - E_MESSAGE, - "%(stamp), %s(sub_string), %(int_number), %(unsigned_number), %(long_unsigned_number), %(bin), %e(double_number)", - E_EOARG); - - if (error) { - printf("Failed to set create template %d\n", error); - return error; - } - - error = elapi_create_event( - &event, - tpl, - NULL, - 0, - " %db(evt_logical)", 0, - "%d(evt_int_number),", -2000, - "%u(evt_unsigned_number)", 3000, - "%ld(evt_long_number)", -7654321, - E_EOARG); - - if (error) { - printf("Failed to set create template %d\n", error); - elapi_destroy_event_tplt(tpl); - return error; - } - - col_debug_collection(tpl, COL_TRAVERSE_DEFAULT); - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - - error = elapi_log(E_TARGET_DEBUG, event); - - elapi_destroy_event(event); - - if (error) { - printf("Failed to log event! %d\n", error); - return error; - } - - - elapi_destroy_event_tplt(tpl); - - error = elapi_create_event_tplt( - &tpl, - E_BASE_DEFV1 | E_BASE_HOSTEXT, - "%n( bin )", bin, 8, - " %sb( logical1 )", "false", - "%sb( logical2 )", "YES", - " %db(logical3)", 1, - "%d(int_number),", -200, - "%u(unsigned_number)", 300, - "%ld(long_number)", -1234567, - "%lu(long_unsigned)", -1234567, - E_MESSAGE, - "%(stamp), %(sub_string), %(int_number), %(unsigned_number), %(long_unsigned_number), %(bin), %(double_number)", - E_EOARG); - - if (error) { - printf("Failed to set create template %d\n", error); - return error; - } - - if ((error = col_create_collection(&col, "test", 0)) || - /* We are forcing overwrite with different type */ - (error = col_add_int_property(col, NULL, "unsigned_number", 1)) || - (error = col_add_long_property(col, NULL, "bin", 100000000L))) { - elapi_destroy_event_tplt(tpl); - printf("Failed to add property. Error %d\n", error); - return error; - } - - error = elapi_create_event( - &event, - tpl, - col, - COL_ADD_MODE_FLAT, - E_MESSAGE, - "%(stamp) a good message", - "-int_number", - E_EOARG); - - if (error) { - printf("Failed to set create template %d\n", error); - elapi_destroy_event_tplt(tpl); - col_destroy_collection(col); - return error; - } - - col_destroy_collection(col); - - col_debug_collection(tpl, COL_TRAVERSE_DEFAULT); - - printf("\nPRINTING EVENT\n\n"); - printf("\nPRINTING EVENT, removed message added bin\n\n"); - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - - - if ((error = col_create_collection(&col, "test", 0)) || - /* We are forsing overwrite with different type */ - (error = col_add_int_property(col, NULL, "zzz", 1)) || - (error = col_add_long_property(col, NULL, "zzz2", 100000000L))) { - elapi_destroy_event_tplt(tpl); - printf("Failed to add property. Error %d\n", error); - elapi_destroy_event(event); - return error; - } - - error = elapi_modify_event( - event, - col, - COL_ADD_MODE_REFERENCE, - "-"E_MESSAGE, - "bin", "bin-string", - E_EOARG); - - if (error) { - printf("Failed to set create template %d\n", error); - elapi_destroy_event(event); - elapi_destroy_event_tplt(tpl); - col_destroy_collection(col); - return error; - } - - printf("\nPRINTING EVENT, removed message, added bin,\n" - "added test collection with zzz & zzz2\n\n"); - - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - col_destroy_collection(col); - - if ((error = col_create_collection(&col, "flat", 0)) || - /* We are forsing overwrite with different type */ - (error = col_add_int_property(col, NULL, "zzz", 1)) || - (error = col_add_long_property(col, NULL, "zzz2", 100000000L))) { - elapi_destroy_event_tplt(tpl); - printf("Failed to add property. Error %d\n", error); - elapi_destroy_event(event); - return error; - } - - error = elapi_modify_event( - event, - col, - COL_ADD_MODE_FLATDOT, - E_EOARG); - - if (error) { - printf("Failed to set create template %d\n", error); - elapi_destroy_event(event); - elapi_destroy_event_tplt(tpl); - col_destroy_collection(col); - return error; - } - - printf("\nPRINTING EVENT, added flat collection with zzz & zzz2\n\n"); - - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - col_destroy_collection(col); - - error = elapi_copy_event(&event_copy, event); - if (error) { - printf("Failed to set create template %d\n", error); - elapi_destroy_event(event); - elapi_destroy_event_tplt(tpl); - return error; - } - - error = elapi_create_dispatcher(&dispatcher, "elapi_ut", "./sdfdsdf"); - if (error) { - elapi_destroy_event(event); - elapi_destroy_event(event_copy); - elapi_destroy_event_tplt(tpl); - printf("Failed to create dispatcher %d\n", error); - return error; - } - - error = elapi_dsp_log(E_TARGET_DEBUG, dispatcher, event); - - elapi_destroy_event(event); - - if (error) { - elapi_destroy_event(event_copy); - elapi_destroy_event_tplt(tpl); - printf("Failed to log event! %d\n", error); - return error; - } - - error = elapi_dsp_log(E_TARGET_DEBUG, dispatcher, event_copy); - - elapi_destroy_event(event_copy); - - if (error) { - elapi_destroy_event_tplt(tpl); - printf("Failed to log event! %d\n", error); - return error; - } - - error = elapi_dsp_msg(E_TARGET_DEBUG, dispatcher, tpl, "a", "b", "c", "d", E_EOARG); - if (error) { - elapi_destroy_event_tplt(tpl); - printf("Failed to log event! %d\n", error); - return error; - } - - error = elapi_dsp_msg(E_TARGET_DEBUG, dispatcher, NULL, "a", "b", "c", "d", E_EOARG); - if (error) { - elapi_destroy_event_tplt(tpl); - printf("Failed to log event! %d\n", error); - return error; - } - - error = elapi_dsp_msg(E_TARGET_DEBUG, - dispatcher, - tpl, - E_MESSAGE, - "date = %(R_stamp__), pid = %(__pid__), " - "hostname = %(__host__), %(__halias__), " - "ip = %(__ip__), [%(__iplist__); %(!__iplist__); %(__iplist__)]" , - E_EOARG); - if (error) { - elapi_destroy_event_tplt(tpl); - printf("Failed to log event! %d\n", error); - return error; - } - - error = elapi_dsp_msg(E_TARGET_DEBUG, - dispatcher, - tpl, - E_MESSAGE, - "date = %(R_stamp__), pid = %(__pid__), " - "hostname = %(__host__), %(__halias__), " - "ip = %(__ip__), [%(__iplist__); %(__iplist__); %(__iplist__)]" , - E_EOARG); - if (error) { - elapi_destroy_event_tplt(tpl); - printf("Failed to log event! %d\n", error); - return error; - } - - elapi_destroy_event_tplt(tpl); - - elapi_print_dispatcher(dispatcher); - - elapi_destroy_dispatcher(dispatcher); - - return error; -} - - -int template_test(void) -{ - int error = 0; - struct collection_item *event; - - printf("Template test START:\n"); - - error = elapi_set_default_tplt( - E_HAVE_HOSTNAME, - E_EOARG); - - if (error) { - printf("Failed to set default template! %d\n", error); - return error; - } - - error = elapi_create_simple_event( - &event, - E_EOARG); - - if (error) { - printf("Failed to create simple event! %d\n", error); - return error; - } - - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - elapi_destroy_event(event); - - error = elapi_set_default_tplt( - E_HAVE_HOSTALIAS, - E_EOARG); - - if (error) { - printf("Failed to set default template! %d\n", error); - return error; - } - - error = elapi_create_simple_event( - &event, - E_EOARG); - - if (error) { - printf("Failed to create simple event! %d\n", error); - return error; - } - - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - elapi_destroy_event(event); - - error = elapi_set_default_tplt( - E_HAVE_HOSTIP, - E_EOARG); - - if (error) { - printf("Failed to set default template! %d\n", error); - return error; - } - - error = elapi_create_simple_event( - &event, - E_EOARG); - - if (error) { - printf("Failed to create simple event! %d\n", error); - return error; - } - - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - elapi_destroy_event(event); - - error = elapi_set_default_tplt( - E_HAVE_HOSTIPS, - E_EOARG); - - if (error) { - printf("Failed to set default template! %d\n", error); - return error; - } - - error = elapi_create_simple_event( - &event, - E_EOARG); - - if (error) { - printf("Failed to create simple event! %d\n", error); - return error; - } - - col_debug_collection(event, COL_TRAVERSE_DEFAULT); - elapi_destroy_event(event); - - return EOK; -} - - -/* Main function of the unit test */ - -int main(int argc, char *argv[]) -{ - int error = 0; - test_fn tests[] = { elapi_init_test, - elapi_get_default_tplt_test, - simple_event_test, - complex_event_test, - template_test, - NULL }; - test_fn t; - int i = 0; - - printf("Start\n"); - - while ((t = tests[i++])) { - error = t(); - if (error) { - printf("Failed!\n"); - return error; - } - } - - printf("Success!\n"); - return 0; -} diff --git a/common/elapi/elapi_test/elapi_ut.conf b/common/elapi/elapi_test/elapi_ut.conf deleted file mode 100644 index a42045a2..00000000 --- a/common/elapi/elapi_test/elapi_ut.conf +++ /dev/null @@ -1,218 +0,0 @@ -; This is a sample configuration file for ELAPI - -; The dispatcher section defines general configuration -; for the ELAPI. It has following configuration parameters: -; -; targets - (required) -; Defines possible logical destinations where message can be sent. -; It is one of the arguments of the calling interface. It is numeric. -; It is done this way for performance reasons so it is faster to compare. -; But in the configuration it is easier to deal with targets as strings. -; To overcome this issue each target is assigned a number in the INI file. -; The ELAPI convention is to have three default targets: -; "debug", "audit" and "log" but application developers can add others as needed. -; The default value for debug target is 1, for audit 2 and log is 4. -; Changing the value defined for debug to be 7 ( logical OR of 1, 2 and 4) -; will result in all messages sent into debug log. -; This might be convenient during troubleshooting and would allow seeing all -; events emitted by the application in one place. -; If you want the event to be sent into two targets at the same time -; add a target with different name but same value. -; For example if the log events need to go to local and remote files -; in parallel you would create another target: logremote -; and give it same value as log (which by convention is 4) - - - -[dispatcher] -targets=debug, audit, log - -; Inside section for each target the following parameters can be defined: -; -; value - (optional) -; Stores the value associated with this target. -; If the bit-wise AND of this value and the value provided by caller -; of the interface is greater than 0 the event is logged into the -; target destination. If omitted all events are sent to this target. -; sinks - (required) -; Defines the list of the sink names that need to be loaded -; each will have its own section. -; Only one of the sinks is active - first in the list. -; The list contains sinks in the fail over order. -; - -[debug] -value = 1 -sinks = debugfile, screen - -[audit] -value = 2 -sinks = auditfile, syslog - -[log] -value = 4 -sinks = logfile, syslog - -; Each sink needs to have it's own section. -; -; COMMON FOR EVERY SINK -; -; provider - (required) -; Defines the name of the sink or the special reserved word to -; indicate that it is a sink provided by ELAPI library. -; -; Special sinks provided by ELAPI are: -; file -; syslog -; -; Example: -; provider=file -; -; this would mean the destination for this sink is a file. -; -; If the sink is provided as an external plugin -; the syntax should be the following: -; -; provider=custom_audit -; -; In this case the ELAPI will try to load shared library with the name -; constructed using specified value. In the given example -; ELAPI will try to load libelapi_sink_custom_audit.so library. -; The general pattern is: libelapi_sink_<provider>.so -; -; required - (optional) -; Defines whether it is a required sink? -; If not present the dispatcher will return error at load time. -; -; onerror - if the sink got an error what should dispatcher do? -; 0 - retry (default) -; 1 - disable -; -; timeout - for how long one should wait before trying to revive the sink -; default is 60 seconds -; -; synch - yes/no (default no) - a flag that forces the sink to act synchronously -; even if it can support async operations. -; If application needs to have some events with guaranteed delivery -; and wishes to block for those the implementation should -; send such events to a special target that would consist -; of the sinks that act in the synch mode and guarantee -; the delivery or return failure. - -; SPECIFIC CONFIGURATION PARAMETERS FOR DIFFERENT PROVIDERS -; -; 1) FILE PROVIDER -; -; filename - name of the log file. If not specified <appname>.log will be used. -; Avoid using the same name of the file for different sinks, -; the result might be unpredictable. -; If file name is "stderr" the output will be sent to file descriptor 2. -; If application closed file descriptor 2 the log attempt will -; cause error and onerror value for the sink will be ignored. -; The sink will be permanently disabled causing ELAPI to skip -; it. -; The "keepopen" and "fsyncmode" parameters are ignored for -; "stderr" sink. -; -; keepopen - yes/no (default no) - keep file open -; -; outmode - 0 - CSV like (default) -; 1 - use format specifier -; 2 - HTML -; 3 - XML -; 4 - JSON -; 5 - key-value pairs -; -; set - use only specific subset of fields in the given order -; comma separated list of field names that are expected from -; an event -; The set can optionally end with an item: -; @ - this would indicate that all the rest of the fields need to -; be added at the end as separate fields. -; @n - where n is one of the modes from "outmode" list. -; in this case the all remaining fields will be jammed into one field -; using specified format. In case of CSV jammed into CSV it is recommended -; to use qualifier and set cvsescape to true -; If the @ sign is absent only fields from the specified set will be -; included into the output. -; If event does not contain a specific field it will be empty in the output. -; -; fsyncmode - Defines if the data needs to be flushed to disk and how frequently -; If this value is missing or 0 - no flushing. -; If it is positive it denotes the number of events before next flush. -; If it is negative it denotes the number of seconds before next flush. -; Ignored if file is opened and closed each time. -; -; marker - (optional) -; Default is "\n". -; Marker specifies a line that will be inserted into the file to denote -; the beginning of a new run. The provided string is used as is -; as a format argument for the strftime() function. The string can -; contain zero or one time stamp format specifier listed in a man page -; for the strftime function(). Providing an invalid marker can -; potentially cause your application to crash. -; -; -; Format specific parameters: -; -; CSV related parameters (all optional): -; -; csvqual - what to use as string qualifier for CSV outmode. -; One character string. -; If empty no qualifier is used. -; If not specified then double quote is used. -; csvsep - what to use as CSV field separator. -; One character string. -; If empty no separator is used. -; If not specified comma is used. -; csvescsym - which symbol to use as escape symbol. -; One character string. -; If empty or no qualifier no escaping is done. -; If missing the "\" (backslash) is used. -; Escaping is done only if both the qualifier -; and the escape symbol are not empty. -; csvspace - what to use as space after the separator. Default is space. -; use "space" for space -; use "tab" for tab -; use "cr" for new line -; Other value would cause an error. -; csvnumsp - number of space characters to use. Default is 1. -; csvheader - yes/no (default no). Include header into csv file. -; Respected only if the "set" is explicitely defined. -; -; -; HTML related parameters -; -; htmlheader - create header row -; ... TO BE Continued... - -[debugfile] -provider=file -required=true -onerror=1 -timeout=90 - -[logfile] -provider=file -required=true -onerror=0 -timeout=60 - -[auditfile] -provider=file -required=true -onerror=1 -timeout=90 - -[screen] -provider=file -filename=stderr -keepopen=false -synch=false -onerror=0 -fsyncmode=-10 -set=a, b, c, @0 - -[syslog] -provider=syslog -synch=yes diff --git a/common/elapi/elapi_test/m4/.dir b/common/elapi/elapi_test/m4/.dir deleted file mode 100644 index e69de29b..00000000 --- a/common/elapi/elapi_test/m4/.dir +++ /dev/null |