lnav/test/Makefile.am

405 lines
8.8 KiB
Makefile
Raw Normal View History

2009-09-14 01:07:32 +00:00
include $(top_srcdir)/aminclude_static.am
2013-04-19 14:03:42 +00:00
TESTS_ENVIRONMENT = $(SHELL) $(top_builddir)/TESTS_ENVIRONMENT
LOG_COMPILER = $(SHELL) $(top_builddir)/TESTS_ENVIRONMENT
2009-09-14 01:07:32 +00:00
RM_V = $(RM_V_@AM_V@)
RM_V_ = $(RM_V_@AM_DEFAULT_V@)
RM_V_0 = @echo " RM " $@;
AM_LIBS = $(CODE_COVERAGE_LIBS)
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
2009-09-14 01:07:32 +00:00
AM_CPPFLAGS = \
2015-04-05 01:10:57 +00:00
-Wall \
2009-09-14 01:07:32 +00:00
-I$(top_srcdir)/src \
2020-04-25 14:32:05 +00:00
-I$(top_srcdir)/src/fmtlib \
$(CODE_COVERAGE_CPPFLAGS) \
$(LIBARCHIVE_CFLAGS) \
$(READLINE_CFLAGS) \
2009-10-06 21:14:49 +00:00
$(SQLITE3_CFLAGS)
2009-09-14 01:07:32 +00:00
# AM_CFLAGS = -fprofile-arcs -ftest-coverage
# AM_CXXFLAGS = -fprofile-arcs -ftest-coverage
check_PROGRAMS = \
2011-06-13 14:46:03 +00:00
drive_data_scanner \
2009-09-14 01:07:32 +00:00
drive_line_buffer \
drive_grep_proc \
drive_listview \
drive_logfile \
drive_mvwattrline \
2011-06-01 14:28:46 +00:00
drive_sequencer \
drive_shlexer \
drive_sql \
drive_sql_anno \
drive_view_colors \
2009-09-14 01:07:32 +00:00
drive_vt52_curses \
drive_readline_curses \
lnav_doctests \
2009-09-14 01:07:32 +00:00
slicer \
scripty \
test_abbrev \
test_ansi_scrubber \
2009-09-14 01:07:32 +00:00
test_auto_fd \
test_auto_mem \
test_bookmarks \
test_date_time_scanner \
2009-09-14 01:07:32 +00:00
test_grep_proc2 \
test_line_buffer2 \
test_log_accel \
test_ncurses_unicode \
2015-09-14 15:56:42 +00:00
test_reltime \
2019-05-08 12:30:59 +00:00
test_top_status
2009-09-14 01:07:32 +00:00
AM_LDFLAGS = \
$(LIBARCHIVE_LDFLAGS) \
2013-08-28 14:28:31 +00:00
$(STATIC_LDFLAGS) \
2013-08-29 04:22:04 +00:00
$(SQLITE3_LDFLAGS) \
$(READLINE_LDFLAGS) \
$(CURSES_LIB)
2009-09-14 01:07:32 +00:00
CONFIG_OBJS = \
../src/ansi-palette-json.o \
../src/default-config.o \
../src/xterm-palette-json.o
2017-04-05 14:05:19 +00:00
TEXT2C_OBJS = \
../src/builtin-scripts.o \
2020-05-09 20:48:06 +00:00
../src/builtin-sh-scripts.o \
../src/default-formats.o \
../src/help-txt.o \
../src/time_fmts.o
2017-04-05 14:05:19 +00:00
2019-05-08 12:30:59 +00:00
LDADD = \
-lz \
$(CONFIG_OBJS) \
$(TEXT2C_OBJS) \
2019-05-08 16:11:22 +00:00
$(top_builddir)/src/libdiag.a \
2019-05-08 12:30:59 +00:00
$(top_builddir)/src/fmtlib/libcppfmt.a \
$(top_builddir)/src/pcrepp/libpcrepp.a \
$(top_builddir)/src/yajl/libyajl.a \
$(top_builddir)/src/yajlpp/libyajlpp.a \
2019-05-08 16:11:22 +00:00
$(top_builddir)/src/base/libbase.a \
2020-12-23 23:01:21 +00:00
$(top_builddir)/src/pugixml/libpugixml.a \
2019-05-08 16:11:22 +00:00
$(CURSES_LIB) \
$(LIBARCHIVE_LIBS) \
2019-05-08 16:11:22 +00:00
$(SQLITE3_LIBS) \
$(PCRE_LIBS) \
$(READLINE_LIBS) \
$(LIBCURL)
2009-09-14 01:07:32 +00:00
test_ansi_scrubber_SOURCES = test_ansi_scrubber.cc
2009-09-14 01:07:32 +00:00
test_auto_fd_SOURCES = test_auto_fd.cc
test_auto_mem_SOURCES = test_auto_mem.cc
2013-07-28 21:33:11 +00:00
test_bookmarks_SOURCES = test_bookmarks.cc
2009-09-14 01:07:32 +00:00
test_date_time_scanner_SOURCES = test_date_time_scanner.cc
2013-07-28 21:33:11 +00:00
test_grep_proc2_SOURCES = test_grep_proc2.cc
2009-09-14 01:07:32 +00:00
2013-07-28 21:33:11 +00:00
test_line_buffer2_SOURCES = test_line_buffer2.cc
2009-09-14 01:07:32 +00:00
test_log_accel_SOURCES = test_log_accel.cc
test_top_status_SOURCES = test_top_status.cc
test_abbrev_SOURCES = test_abbrev.cc
2014-05-05 13:44:58 +00:00
2015-09-14 15:56:42 +00:00
test_reltime_SOURCES = test_reltime.cc
test_ncurses_unicode_SOURCES = test_ncurses_unicode.cc
lnav_doctests_SOURCES = lnav_doctests.cc
2013-07-28 21:33:11 +00:00
drive_line_buffer_SOURCES = drive_line_buffer.cc
drive_grep_proc_SOURCES = drive_grep_proc.cc
2014-05-05 13:44:58 +00:00
2013-07-28 21:33:11 +00:00
drive_listview_SOURCES = drive_listview.cc
drive_logfile_SOURCES = drive_logfile.cc
2009-09-14 01:07:32 +00:00
2013-07-28 21:33:11 +00:00
drive_sequencer_SOURCES = drive_sequencer.cc
2011-06-01 14:28:46 +00:00
drive_shlexer_SOURCES = drive_shlexer.cc
2011-06-13 14:46:03 +00:00
drive_data_scanner_SOURCES = \
drive_data_scanner.cc
drive_mvwattrline_SOURCES = drive_mvwattrline.cc
2013-07-28 21:33:11 +00:00
drive_view_colors_SOURCES = drive_view_colors.cc
drive_vt52_curses_SOURCES = drive_vt52_curses.cc
drive_readline_curses_SOURCES = drive_readline_curses.cc
2019-05-08 12:30:59 +00:00
drive_sql_SOURCES = drive_sql.cc
drive_sql_anno_SOURCES = drive_sql_anno.cc
2013-07-28 21:33:11 +00:00
slicer_SOURCES = slicer.cc
2009-09-14 01:07:32 +00:00
scripty_SOURCES = scripty.cc
2009-09-29 23:21:33 +00:00
dist_noinst_SCRIPTS = \
parser_debugger.py \
2015-08-20 04:02:26 +00:00
test_cli.sh \
test_cmds.sh \
test_config.sh \
test_curl.sh \
test_data_parser.sh \
test_format_installer.sh \
test_format_loader.sh \
2009-09-29 23:21:33 +00:00
test_grep_proc.sh \
test_json_format.sh \
2009-09-29 23:21:33 +00:00
test_line_buffer.sh \
test_listview.sh \
test_logfile.sh \
test_meta.sh \
test_mvwattrline.sh \
test_scripts.sh \
test_sessions.sh \
test_shlexer.sh \
test_sql.sh \
test_sql_anno.sh \
test_sql_coll_func.sh \
2014-05-05 13:44:58 +00:00
test_sql_json_func.sh \
2013-07-09 13:51:18 +00:00
test_sql_str_func.sh \
2015-10-03 21:58:01 +00:00
test_sql_time_func.sh \
2020-12-23 23:01:21 +00:00
test_sql_xml_func.sh \
test_sql_fs_func.sh \
2021-02-03 05:58:42 +00:00
test_tui.sh \
test_view_colors.sh \
test_vt52_curses.sh \
test_pretty_print.sh
2009-09-29 23:21:33 +00:00
dist_noinst_DATA = \
2013-06-08 14:57:40 +00:00
ansi-colors.0.in \
bad-config/formats/invalid-regex/format.json \
bad-config/formats/invalid-sample/format.json \
2015-11-27 06:19:53 +00:00
bad-config/formats/invalid-sql/init.sql \
bad-config/formats/no-samples/format.json \
2019-05-03 21:29:27 +00:00
bad-config2/formats/invalid-config/config.json \
2019-05-04 17:35:23 +00:00
bad-config2/formats/invalid-config/config.malformed.json \
bad-config2/formats/invalid-config/config.truncated.json \
bad-config-json/formats/invalid-json/format.json \
bad-config-json/formats/invalid-key/format.json \
datafile_simple.0 \
datafile_simple.1 \
datafile_simple.2 \
datafile_simple.3 \
datafile_simple.4 \
datafile_simple.5 \
datafile_simple.6 \
datafile_simple.7 \
2014-03-09 19:55:02 +00:00
datafile_simple.8 \
datafile_simple.9 \
datafile_simple.10 \
2014-03-11 10:49:47 +00:00
datafile_simple.11 \
datafile_simple.12 \
datafile_simple.13 \
datafile_simple.14 \
datafile_simple.15 \
datafile_simple.16 \
datafile_simple.17 \
datafile_simple.18 \
datafile_simple.19 \
datafile_simple.20 \
datafile_xml.0 \
expected_help.txt \
2009-09-29 23:21:33 +00:00
listview_output.0 \
listview_output.1 \
listview_output.2 \
listview_output.3 \
listview_output.4 \
listview_output.5 \
listview_output.6 \
log.clog \
2009-09-29 23:21:33 +00:00
logfile_access_log.0 \
logfile_access_log.1 \
logfile_bad_access_log.0 \
logfile_bad_syslog.0 \
logfile_bro_conn.log.0 \
logfile_bro_http.log.0 \
logfile_blued.0 \
logfile_crlf.0 \
logfile_cxx.0 \
2009-09-29 23:21:33 +00:00
logfile_empty.0 \
logfile_epoch.0 \
2016-11-22 18:02:38 +00:00
logfile_epoch.1 \
logfile_filter.0 \
2014-11-04 04:41:38 +00:00
logfile_for_join.0 \
logfile_generic.0 \
logfile_generic.1 \
logfile_generic.2 \
logfile_generic_with_header.0 \
logfile_glog.0 \
logfile_haproxy.0 \
2019-09-10 05:10:50 +00:00
logfile_invalid_json.json \
2018-08-21 18:21:57 +00:00
logfile_journald.json \
logfile_json.json \
2016-03-27 22:28:47 +00:00
logfile_json2.json \
2017-04-07 06:20:02 +00:00
logfile_json3.json \
logfile_leveltest.0 \
logfile_multiline.0 \
logfile_nested_json.json \
2014-11-04 04:41:38 +00:00
logfile_openam.0 \
logfile_plain.0 \
logfile_pretty.0 \
logfile_rollover.0 \
logfile_rollover.1 \
logfile_strace_log.0 \
2009-09-29 23:21:33 +00:00
logfile_syslog.0 \
logfile_syslog.1 \
2014-11-04 04:41:38 +00:00
logfile_syslog.2 \
logfile_syslog_fr.0 \
logfile_syslog_with_access_log.0 \
logfile_syslog_with_header.0 \
2015-09-14 15:56:42 +00:00
logfile_syslog_with_mixed_times.0 \
logfile_tai64n.0 \
logfile_tcf.0 \
logfile_tcf.1 \
2009-09-29 23:21:33 +00:00
logfile_tcsh_history.0 \
2020-09-24 20:22:42 +00:00
logfile_uwsgi.0 \
logfile_vami.0 \
2014-11-11 16:44:44 +00:00
logfile_vdsm.0 \
2020-12-06 07:33:17 +00:00
logfile_w3c.0 \
logfile_w3c.1 \
logfile_w3c.2 \
logfile_w3c.3 \
logfile_w3c.4 \
logfile_w3c.5 \
logfile_w3c.6 \
logfile_w3c_big.0 \
2009-09-29 23:21:33 +00:00
logfile_with_a_really_long_name_to_test_a_bug_with_long_names.0 \
multiline.lnav \
2015-12-19 14:18:47 +00:00
nested.lnav \
mvwattrline_output.0 \
textfile_json_indented.0 \
textfile_json_one_line.0 \
textfile_quoted_json.0 \
2015-12-19 14:18:47 +00:00
toplevel.lnav \
2018-10-17 14:03:33 +00:00
UTF-8-test.txt \
view_colors_output.0 \
2009-09-29 23:21:33 +00:00
vt52_curses_input.0 \
vt52_curses_input.1 \
vt52_curses_output.0 \
2013-06-03 14:45:19 +00:00
vt52_curses_output.1 \
xpath_tui.0 \
formats/collision/format.json \
formats/customlevel/format.json \
formats/jsontest/format.json \
formats/jsontest/lnav-logstash.json \
2016-12-06 15:14:54 +00:00
formats/jsontest/rewrite-user.lnav \
2016-03-27 22:28:47 +00:00
formats/jsontest2/format.json \
2017-04-07 06:20:02 +00:00
formats/jsontest3/format.json \
formats/nestedjson/format.json \
formats/scripts/multiline-echo.lnav \
formats/scripts/redirecting.lnav \
formats/scripts/nested-redirecting.lnav \
2015-11-27 06:19:53 +00:00
formats/sqldir/init.sql \
formats/timestamp/format.json \
2013-06-03 14:45:19 +00:00
log-samples/sample-27353a72ba4025448f261dcfa6ea16e474187795.txt \
log-samples/sample-70c906b3c1a1cf03f15bde92ee78edfa6f9b7960.txt \
2021-02-03 05:58:42 +00:00
log-samples/sample-ad31f12d2adabd07e3ddda3ad5b0dbf6b49c4c99.txt \
2021-02-06 00:04:34 +00:00
tui-captures/tui_echo.0 \
2021-02-03 05:58:42 +00:00
tui-captures/tui_help.0
2009-09-29 23:21:33 +00:00
TESTS = \
lnav_doctests \
test_abbrev \
test_ansi_scrubber \
2009-09-14 01:07:32 +00:00
test_auto_fd \
test_auto_mem \
test_bookmarks \
test_date_time_scanner \
test_format_installer.sh \
test_format_loader.sh \
2015-08-20 04:02:26 +00:00
test_cli.sh \
test_cmds.sh \
test_config.sh \
test_listview.sh \
test_meta.sh \
test_mvwattrline.sh \
2009-09-14 01:07:32 +00:00
test_grep_proc.sh \
test_grep_proc2 \
test_json_format.sh \
test_log_accel \
test_logfile.sh \
2015-09-14 15:56:42 +00:00
test_reltime \
test_scripts.sh \
test_sessions.sh \
test_shlexer.sh \
test_sql.sh \
test_sql_anno.sh \
test_sql_coll_func.sh \
2014-05-05 13:44:58 +00:00
test_sql_json_func.sh \
test_sql_fs_func.sh \
test_sql_str_func.sh \
2015-10-03 21:58:01 +00:00
test_sql_time_func.sh \
2020-12-23 23:01:21 +00:00
test_sql_xml_func.sh \
2021-02-03 05:58:42 +00:00
test_tui.sh \
test_data_parser.sh \
test_pretty_print.sh \
test_view_colors.sh \
test_vt52_curses.sh
2010-01-02 20:28:14 +00:00
DISABLED_TESTS = \
2021-01-30 05:03:42 +00:00
test_top_status \
test_line_buffer2 \
test_line_buffer.sh
if HAVE_LIBCURL
TESTS += \
test_curl.sh
endif
2010-01-02 20:28:14 +00:00
DISTCLEANFILES = \
*.dat \
*.err \
*.db \
*.dpt \
2013-05-31 15:01:31 +00:00
*.diff \
2010-01-02 20:28:14 +00:00
*.index \
*.tmp \
*.gz \
2014-11-04 04:41:38 +00:00
*.bz2 \
2021-01-11 06:04:55 +00:00
*.xz \
2018-10-12 14:23:28 +00:00
hw.txt \
hw2.txt \
reload_test.0 \
2014-11-04 04:41:38 +00:00
truncfile.0 \
2014-11-07 04:41:25 +00:00
logfile_append.0 \
logfile_changed.0 \
logfile_rollover.1.live \
2015-04-04 22:12:26 +00:00
test.log \
2015-11-15 14:25:08 +00:00
logfile_stdin.log \
2020-12-08 17:29:52 +00:00
logfile_stdin.0.log \
2020-09-04 05:13:21 +00:00
logfile_syslog_test.0 \
logfile_syslog_test.2 \
2020-09-04 05:13:21 +00:00
logfile_syslog_fr_test.0 \
logfile_syslog_with_mixed_times_test.0 \
test-logs.tgz \
test-logs-trunc.tgz \
2020-05-20 05:23:16 +00:00
test_pretty_in.* \
tmp \
2015-11-15 14:25:08 +00:00
unreadable.log \
empty \
scripts-empty
distclean-local:
$(RM_V)rm -rf sessions
$(RM_V)rm -rf tmp
$(RM_V)rm -rf rotmp
2018-05-17 14:37:58 +00:00
$(RM_V)rm -rf meta-sessions
2019-08-11 04:59:43 +00:00
$(RM_V)rm -rf test-config
$(RM_V)rm -rf .lnav
$(RM_V)rm -rf ../installer-test-home