[tests] move test_pcrepp

This commit is contained in:
Timothy Stack 2021-01-29 22:20:42 -08:00
parent 5c203a2648
commit efea67e61c
6 changed files with 16 additions and 8 deletions

View File

@ -23,8 +23,8 @@ jobs:
run: ./autogen.sh
- name: configure
run: ./configure --enable-code-coverage --enable-debug
- name: make -j2
run: make
- name: make
run: make -j2
- name: make check
run: make check
- name: upload cover

View File

@ -1,6 +1,6 @@
# aminclude_static.am generated automatically by Autoconf
# from AX_AM_MACROS_STATIC on Thu Jan 28 11:06:02 PST 2021
# from AX_AM_MACROS_STATIC on Fri Jan 29 18:52:23 PST 2021
# Code coverage

View File

@ -11,3 +11,15 @@ noinst_HEADERS = \
libpcrepp_a_SOURCES = \
pcrepp.cc
test_pcrepp_SOURCES = test_pcrepp.cc
test_pcrepp_LDADD = \
libpcrepp.a \
$(top_builddir)/src/base/libbase.a \
$(PCRE_LIBS)
check_PROGRAMS = \
test_pcrepp
TESTS = \
test_pcrepp

View File

@ -50,7 +50,7 @@ add_executable(lnav_doctests lnav_doctests.cc)
target_link_libraries(lnav_doctests diag ${lnav_LIBS})
add_test(NAME lnav_doctests COMMAND lnav_doctests)
add_executable(test_pcrepp test_pcrepp.cc)
add_executable(test_pcrepp ../src/pcrepp/test_pcrepp.cc)
target_link_libraries(test_pcrepp diag PkgConfig::libpcre)
add_test(NAME test_pcrepp COMMAND test_pcrepp)

View File

@ -51,7 +51,6 @@ check_PROGRAMS = \
test_line_buffer2 \
test_log_accel \
test_ncurses_unicode \
test_pcrepp \
test_reltime \
test_top_status
@ -108,8 +107,6 @@ test_line_buffer2_SOURCES = test_line_buffer2.cc
test_log_accel_SOURCES = test_log_accel.cc
test_pcrepp_SOURCES = test_pcrepp.cc
test_top_status_SOURCES = test_top_status.cc
test_abbrev_SOURCES = test_abbrev.cc
@ -332,7 +329,6 @@ TESTS = \
test_json_format.sh \
test_log_accel \
test_logfile.sh \
test_pcrepp \
test_reltime \
test_scripts.sh \
test_sessions.sh \