2009-09-14 01:07:32 +00:00
|
|
|
|
2013-04-19 14:03:42 +00:00
|
|
|
TESTS_ENVIRONMENT = $(SHELL) $(top_builddir)/TESTS_ENVIRONMENT
|
2013-04-19 05:46:49 +00:00
|
|
|
LOG_COMPILER = $(SHELL) $(top_builddir)/TESTS_ENVIRONMENT
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2015-03-25 09:13:18 +00:00
|
|
|
DBGEN_V = $(DBGEN_V_@AM_V@)
|
|
|
|
DBGEN_V_ = $(DBGEN_V_@AM_DEFAULT_V@)
|
|
|
|
DBGEN_V_0 = @echo " DBGEN " $@;
|
|
|
|
|
|
|
|
RM_V = $(RM_V_@AM_V@)
|
|
|
|
RM_V_ = $(RM_V_@AM_DEFAULT_V@)
|
|
|
|
RM_V_0 = @echo " RM " $@;
|
|
|
|
|
2013-06-08 13:10:18 +00:00
|
|
|
simple-db.db: simple-db.sql
|
2015-03-25 09:13:18 +00:00
|
|
|
$(RM_V)rm -f $@
|
|
|
|
$(DBGEN_V)$(SQLITE3_CMD) $@ < $(srcdir)/simple-db.sql
|
2013-06-08 13:10:18 +00:00
|
|
|
|
2009-09-14 01:07:32 +00:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
-I$(top_srcdir)/src \
|
2015-03-29 08:19:51 +00:00
|
|
|
$(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 \
|
2014-05-05 13:44:58 +00:00
|
|
|
drive_json_op \
|
|
|
|
drive_json_ptr_walk \
|
2009-09-14 01:07:32 +00:00
|
|
|
drive_listview \
|
|
|
|
drive_logfile \
|
2014-03-08 13:26:49 +00:00
|
|
|
drive_mvwattrline \
|
2011-06-01 14:28:46 +00:00
|
|
|
drive_sequencer \
|
2013-05-29 14:28:57 +00:00
|
|
|
drive_sql \
|
2012-06-05 20:18:59 +00:00
|
|
|
drive_view_colors \
|
2009-09-14 01:07:32 +00:00
|
|
|
drive_vt52_curses \
|
|
|
|
drive_readline_curses \
|
|
|
|
slicer \
|
|
|
|
scripty \
|
2013-06-08 17:51:54 +00:00
|
|
|
test_ansi_scrubber \
|
2009-09-14 01:07:32 +00:00
|
|
|
test_auto_fd \
|
|
|
|
test_auto_mem \
|
|
|
|
test_bookmarks \
|
2014-09-29 05:36:07 +00:00
|
|
|
test_chunky_index \
|
2014-04-20 17:40:28 +00:00
|
|
|
test_concise \
|
2014-03-22 15:02:48 +00:00
|
|
|
test_date_time_scanner \
|
2009-09-14 01:07:32 +00:00
|
|
|
test_grep_proc2 \
|
2012-06-05 20:18:59 +00:00
|
|
|
test_hist_source \
|
2014-05-05 13:44:58 +00:00
|
|
|
test_json_ptr \
|
2009-09-14 01:07:32 +00:00
|
|
|
test_line_buffer2 \
|
2014-03-16 22:07:08 +00:00
|
|
|
test_log_accel \
|
2010-04-26 04:12:25 +00:00
|
|
|
test_pcrepp \
|
2013-06-26 01:52:51 +00:00
|
|
|
test_top_status \
|
|
|
|
test_yajlpp
|
2009-09-14 01:07:32 +00:00
|
|
|
|
|
|
|
AM_LDFLAGS = \
|
2013-08-28 14:28:31 +00:00
|
|
|
$(STATIC_LDFLAGS) \
|
2013-08-29 04:22:04 +00:00
|
|
|
$(SQLITE3_LDFLAGS) \
|
2015-03-29 08:19:51 +00:00
|
|
|
$(READLINE_LDFLAGS) \
|
2013-08-29 04:22:04 +00:00
|
|
|
-pthread
|
2009-09-14 01:07:32 +00:00
|
|
|
|
|
|
|
LDADD = -lz
|
|
|
|
|
2013-06-08 17:51:54 +00:00
|
|
|
test_ansi_scrubber_SOURCES = test_ansi_scrubber.cc
|
|
|
|
test_ansi_scrubber_LDADD = ../src/libdiag.a $(CURSES_LIB)
|
|
|
|
|
2009-09-14 01:07:32 +00:00
|
|
|
test_auto_fd_SOURCES = test_auto_fd.cc
|
2014-03-06 14:58:49 +00:00
|
|
|
test_auto_fd_LDADD = ../src/libdiag.a
|
2009-09-14 01:07:32 +00:00
|
|
|
|
|
|
|
test_auto_mem_SOURCES = test_auto_mem.cc
|
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
test_bookmarks_SOURCES = test_bookmarks.cc
|
|
|
|
test_bookmarks_LDADD = ../src/libdiag.a
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2014-09-29 05:36:07 +00:00
|
|
|
test_chunky_index_SOURCES = test_chunky_index.cc
|
|
|
|
test_chunky_index_LDADD = ../src/libdiag.a
|
|
|
|
|
2014-03-22 15:02:48 +00:00
|
|
|
test_date_time_scanner_SOURCES = test_date_time_scanner.cc
|
2014-04-06 05:56:02 +00:00
|
|
|
test_date_time_scanner_LDADD = ../src/libdiag.a $(SQLITE3_LIBS)
|
2014-03-22 15:02:48 +00:00
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
test_grep_proc2_SOURCES = test_grep_proc2.cc
|
|
|
|
test_grep_proc2_LDADD = ../src/libdiag.a $(PCRE_LIBS) -lz
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
test_hist_source_SOURCES = test_hist_source.cc
|
|
|
|
test_hist_source_LDADD = ../src/libdiag.a $(CURSES_LIB) -lz
|
2012-06-05 20:18:59 +00:00
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
test_line_buffer2_SOURCES = test_line_buffer2.cc
|
|
|
|
test_line_buffer2_LDADD = ../src/libdiag.a
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2014-03-16 22:07:08 +00:00
|
|
|
test_log_accel_SOURCES = test_log_accel.cc
|
|
|
|
test_log_accel_LDADD = ../src/libdiag.a
|
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
test_pcrepp_SOURCES = test_pcrepp.cc
|
2013-08-28 14:28:31 +00:00
|
|
|
test_pcrepp_LDADD = ../src/libdiag.a $(PCRE_LIBS) -lz
|
2010-04-26 04:12:25 +00:00
|
|
|
|
2013-06-08 17:51:54 +00:00
|
|
|
test_top_status_SOURCES = test_top_status.cc
|
2014-02-07 04:45:46 +00:00
|
|
|
test_top_status_LDADD = ../src/libdiag.a $(CURSES_LIB) $(PCRE_LIBS) $(SQLITE3_LIBS) -lz
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2013-06-26 01:52:51 +00:00
|
|
|
test_yajlpp_SOURCES = test_yajlpp.cc
|
|
|
|
test_yajlpp_LDADD = ../src/libdiag.a
|
|
|
|
|
2014-04-20 17:40:28 +00:00
|
|
|
test_concise_SOURCES = test_concise.cc
|
|
|
|
test_concise_LDADD = ../src/libdiag.a
|
|
|
|
|
2014-05-05 13:44:58 +00:00
|
|
|
test_json_ptr_SOURCES = test_json_ptr.cc
|
|
|
|
test_json_ptr_LDADD = ../src/libdiag.a
|
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
drive_line_buffer_SOURCES = drive_line_buffer.cc
|
|
|
|
drive_line_buffer_LDADD = ../src/libdiag.a $(CURSES_LIB) -lz
|
|
|
|
|
|
|
|
drive_grep_proc_SOURCES = drive_grep_proc.cc
|
|
|
|
drive_grep_proc_LDADD = ../src/libdiag.a $(PCRE_LIBS) -lz
|
|
|
|
|
2014-05-05 13:44:58 +00:00
|
|
|
drive_json_op_SOURCES = drive_json_op.cc
|
|
|
|
drive_json_op_LDADD = ../src/libdiag.a $(PCRE_LIBS) -lz
|
|
|
|
|
|
|
|
drive_json_ptr_walk_SOURCES = drive_json_ptr_walk.cc
|
|
|
|
drive_json_ptr_walk_LDADD = ../src/libdiag.a $(PCRE_LIBS) -lz
|
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
drive_listview_SOURCES = drive_listview.cc
|
|
|
|
drive_listview_LDADD = ../src/libdiag.a $(CURSES_LIB) -lz
|
|
|
|
|
|
|
|
drive_logfile_SOURCES = drive_logfile.cc
|
2013-09-10 13:20:37 +00:00
|
|
|
drive_logfile_LDADD = \
|
|
|
|
../src/libdiag.a \
|
2014-03-15 11:40:58 +00:00
|
|
|
../src/default-log-formats-json.o \
|
|
|
|
../src/dump-pid-sh.o \
|
2013-09-10 13:20:37 +00:00
|
|
|
$(CURSES_LIB) \
|
|
|
|
$(SQLITE3_LIBS) \
|
|
|
|
$(PCRE_LIBS) \
|
|
|
|
-lpcrecpp
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
drive_sequencer_SOURCES = drive_sequencer.cc
|
2014-02-07 04:45:46 +00:00
|
|
|
drive_sequencer_LDADD = ../src/libdiag.a $(CURSES_LIB) $(SQLITE3_LIBS)
|
2011-06-01 14:28:46 +00:00
|
|
|
|
2011-06-13 14:46:03 +00:00
|
|
|
drive_data_scanner_SOURCES = \
|
|
|
|
drive_data_scanner.cc
|
2013-06-29 18:00:34 +00:00
|
|
|
drive_data_scanner_LDADD = \
|
|
|
|
../src/libdiag.a \
|
|
|
|
../src/default-log-formats-json.o \
|
2013-10-11 13:22:29 +00:00
|
|
|
../src/dump-pid-sh.o \
|
2013-09-10 13:20:37 +00:00
|
|
|
$(PCRE_LIBS) \
|
2013-06-30 23:43:08 +00:00
|
|
|
$(SQLITE3_LIBS) \
|
2013-09-10 13:20:37 +00:00
|
|
|
-lpcrecpp \
|
2013-06-29 18:00:34 +00:00
|
|
|
$(CURSES_LIB)
|
2011-06-13 14:46:03 +00:00
|
|
|
|
2014-03-08 13:26:49 +00:00
|
|
|
drive_mvwattrline_SOURCES = drive_mvwattrline.cc
|
|
|
|
drive_mvwattrline_LDADD = ../src/libdiag.a $(CURSES_LIB)
|
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
drive_view_colors_SOURCES = drive_view_colors.cc
|
|
|
|
drive_view_colors_LDADD = ../src/libdiag.a $(CURSES_LIB)
|
|
|
|
|
|
|
|
drive_vt52_curses_SOURCES = drive_vt52_curses.cc
|
|
|
|
drive_vt52_curses_LDADD = ../src/libdiag.a $(CURSES_LIB)
|
|
|
|
|
|
|
|
drive_readline_curses_SOURCES = drive_readline_curses.cc
|
2013-08-29 04:22:04 +00:00
|
|
|
drive_readline_curses_LDADD = ../src/libdiag.a $(READLINE_LIBS) $(CURSES_LIB)
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2013-05-29 14:28:57 +00:00
|
|
|
drive_sql_SOURCES = \
|
|
|
|
drive_sql.cc
|
2013-06-22 14:55:49 +00:00
|
|
|
drive_sql_LDADD = \
|
|
|
|
../src/libdiag.a \
|
|
|
|
$(SQLITE3_LIBS) \
|
|
|
|
$(PCRE_LIBS) \
|
|
|
|
$(CURSES_LIB) \
|
|
|
|
$(READLINE_LIBS) \
|
2014-02-07 04:45:46 +00:00
|
|
|
-lpcrecpp
|
2013-05-29 14:28:57 +00:00
|
|
|
|
2013-07-28 21:33:11 +00:00
|
|
|
slicer_SOURCES = slicer.cc
|
|
|
|
slicer_LDADD = ../src/libdiag.a
|
2009-09-14 01:07:32 +00:00
|
|
|
|
|
|
|
scripty_SOURCES = scripty.cc
|
2014-03-06 15:21:08 +00:00
|
|
|
scripty_LDADD = ../src/libdiag.a
|
2009-09-14 01:07:32 +00:00
|
|
|
|
2009-09-29 23:21:33 +00:00
|
|
|
dist_noinst_SCRIPTS = \
|
2013-06-08 13:10:18 +00:00
|
|
|
parser_debugger.py \
|
2014-03-03 00:52:18 +00:00
|
|
|
test_cmds.sh \
|
2011-06-18 20:42:07 +00:00
|
|
|
test_data_parser.sh \
|
2009-09-29 23:21:33 +00:00
|
|
|
test_grep_proc.sh \
|
2014-03-03 06:26:41 +00:00
|
|
|
test_json_format.sh \
|
2014-11-04 04:41:38 +00:00
|
|
|
test_json_op.sh \
|
|
|
|
test_json_ptr_walk.sh \
|
2009-09-29 23:21:33 +00:00
|
|
|
test_line_buffer.sh \
|
|
|
|
test_listview.sh \
|
|
|
|
test_logfile.sh \
|
2014-03-08 13:26:49 +00:00
|
|
|
test_mvwattrline.sh \
|
2014-03-07 13:20:49 +00:00
|
|
|
test_sessions.sh \
|
2014-03-03 00:52:18 +00:00
|
|
|
test_sql.sh \
|
2013-06-06 14:01:32 +00:00
|
|
|
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 \
|
2013-05-29 14:28:57 +00:00
|
|
|
test_sql_fs_func.sh \
|
2012-07-03 19:01:09 +00:00
|
|
|
test_view_colors.sh \
|
2009-09-29 23:21:33 +00:00
|
|
|
test_vt52_curses.sh
|
|
|
|
|
|
|
|
dist_noinst_DATA = \
|
2013-06-08 14:57:40 +00:00
|
|
|
ansi-colors.0.in \
|
2011-06-18 20:42:07 +00:00
|
|
|
datafile_simple.0 \
|
|
|
|
datafile_simple.1 \
|
|
|
|
datafile_simple.2 \
|
|
|
|
datafile_simple.3 \
|
|
|
|
datafile_simple.4 \
|
|
|
|
datafile_simple.5 \
|
2013-05-24 14:55:56 +00:00
|
|
|
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 \
|
2014-04-01 20:07:58 +00:00
|
|
|
datafile_simple.12 \
|
|
|
|
datafile_simple.13 \
|
2015-03-17 06:10:34 +00:00
|
|
|
datafile_xml.0 \
|
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 \
|
|
|
|
logfile_access_log.0 \
|
2013-06-22 14:00:59 +00:00
|
|
|
logfile_access_log.1 \
|
2009-09-29 23:21:33 +00:00
|
|
|
logfile_empty.0 \
|
2014-12-10 15:03:01 +00:00
|
|
|
logfile_filter.0 \
|
2014-11-04 04:41:38 +00:00
|
|
|
logfile_for_join.0 \
|
2012-07-03 19:01:09 +00:00
|
|
|
logfile_generic.0 \
|
2013-05-18 00:44:55 +00:00
|
|
|
logfile_glog.0 \
|
2014-03-03 06:26:41 +00:00
|
|
|
logfile_json.json \
|
2014-03-03 00:52:18 +00:00
|
|
|
logfile_multiline.0 \
|
2014-11-04 04:41:38 +00:00
|
|
|
logfile_openam.0 \
|
2015-03-28 13:30:30 +00:00
|
|
|
logfile_plain.0 \
|
2010-02-24 04:35:52 +00:00
|
|
|
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 \
|
2014-04-07 05:11:04 +00:00
|
|
|
logfile_tcf.0 \
|
|
|
|
logfile_tcf.1 \
|
2009-09-29 23:21:33 +00:00
|
|
|
logfile_tcsh_history.0 \
|
2014-11-11 16:44:44 +00:00
|
|
|
logfile_vdsm.0 \
|
2009-09-29 23:21:33 +00:00
|
|
|
logfile_with_a_really_long_name_to_test_a_bug_with_long_names.0 \
|
2014-03-08 13:26:49 +00:00
|
|
|
mvwattrline_output.0 \
|
2013-06-08 13:10:18 +00:00
|
|
|
simple-db.sql \
|
2012-07-03 19:01:09 +00:00
|
|
|
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 \
|
2014-03-03 06:26:41 +00:00
|
|
|
formats/jsontest/format.json \
|
2013-06-03 14:45:19 +00:00
|
|
|
log-samples/sample-27353a72ba4025448f261dcfa6ea16e474187795.txt \
|
|
|
|
log-samples/sample-70c906b3c1a1cf03f15bde92ee78edfa6f9b7960.txt \
|
|
|
|
log-samples/sample-ad31f12d2adabd07e3ddda3ad5b0dbf6b49c4c99.txt
|
2009-09-29 23:21:33 +00:00
|
|
|
|
2013-06-08 13:10:18 +00:00
|
|
|
nodist_noinst_DATA = \
|
|
|
|
simple-db.db
|
|
|
|
|
2013-06-08 17:51:54 +00:00
|
|
|
TESTS = \
|
|
|
|
test_ansi_scrubber \
|
2009-09-14 01:07:32 +00:00
|
|
|
test_auto_fd \
|
|
|
|
test_auto_mem \
|
2013-06-08 17:51:54 +00:00
|
|
|
test_bookmarks \
|
2014-09-29 05:36:07 +00:00
|
|
|
test_chunky_index \
|
2014-03-22 15:02:48 +00:00
|
|
|
test_date_time_scanner \
|
2014-03-03 00:52:18 +00:00
|
|
|
test_cmds.sh \
|
2014-04-20 17:40:28 +00:00
|
|
|
test_concise \
|
2009-09-14 01:07:32 +00:00
|
|
|
test_line_buffer2 \
|
2014-03-08 05:53:24 +00:00
|
|
|
test_line_buffer.sh \
|
2014-02-21 04:00:51 +00:00
|
|
|
test_listview.sh \
|
2014-03-08 13:26:49 +00:00
|
|
|
test_mvwattrline.sh \
|
2009-09-14 01:07:32 +00:00
|
|
|
test_grep_proc.sh \
|
|
|
|
test_grep_proc2 \
|
2012-06-05 20:18:59 +00:00
|
|
|
test_hist_source \
|
2014-03-03 06:26:41 +00:00
|
|
|
test_json_format.sh \
|
2014-05-05 13:44:58 +00:00
|
|
|
test_json_op.sh \
|
|
|
|
test_json_ptr_walk.sh \
|
2014-03-16 22:07:08 +00:00
|
|
|
test_log_accel \
|
2014-03-15 11:40:58 +00:00
|
|
|
test_logfile.sh \
|
2010-04-26 04:12:25 +00:00
|
|
|
test_pcrepp \
|
2014-03-07 13:20:49 +00:00
|
|
|
test_sessions.sh \
|
2014-03-02 16:55:00 +00:00
|
|
|
test_sql.sh \
|
2013-06-06 14:01:32 +00:00
|
|
|
test_sql_coll_func.sh \
|
2014-05-05 13:44:58 +00:00
|
|
|
test_sql_json_func.sh \
|
2013-05-29 14:28:57 +00:00
|
|
|
test_sql_fs_func.sh \
|
2013-07-06 16:16:01 +00:00
|
|
|
test_sql_str_func.sh \
|
2012-06-05 20:18:59 +00:00
|
|
|
test_view_colors.sh \
|
2009-09-14 01:07:32 +00:00
|
|
|
test_vt52_curses.sh \
|
2011-06-18 20:42:07 +00:00
|
|
|
test_top_status \
|
2013-06-26 01:52:51 +00:00
|
|
|
test_data_parser.sh \
|
|
|
|
test_yajlpp
|
2010-01-02 20:28:14 +00:00
|
|
|
|
|
|
|
DISTCLEANFILES = \
|
|
|
|
*.dat \
|
2014-03-03 06:26:41 +00:00
|
|
|
*.err \
|
2013-06-08 13:10:18 +00:00
|
|
|
*.db \
|
|
|
|
*.dpt \
|
2013-05-31 15:01:31 +00:00
|
|
|
*.diff \
|
2010-01-02 20:28:14 +00:00
|
|
|
*.index \
|
2014-03-15 11:40:58 +00:00
|
|
|
*.tmp \
|
|
|
|
*.gz \
|
2014-11-04 04:41:38 +00:00
|
|
|
*.bz2 \
|
|
|
|
truncfile.0 \
|
2014-11-07 04:41:25 +00:00
|
|
|
logfile_append.0 \
|
2015-04-04 22:12:26 +00:00
|
|
|
test.log \
|
|
|
|
logfile_stdin.log
|
2014-03-07 14:29:20 +00:00
|
|
|
|
|
|
|
distclean-local:
|
2015-03-25 09:13:18 +00:00
|
|
|
$(RM_V)rm -rf sessions
|
|
|
|
$(RM_V)rm -rf .lnav
|