[tests] try to fix test build

This commit is contained in:
Timothy Stack 2021-03-28 22:42:51 -07:00
parent 66eb3c76e6
commit bfa1877f4e
4 changed files with 4 additions and 34 deletions

View File

@ -24,10 +24,8 @@ AM_CPPFLAGS = \
# AM_CFLAGS = -fprofile-arcs -ftest-coverage
# AM_CXXFLAGS = -fprofile-arcs -ftest-coverage
noinst_LIBRARIES = libtestdummy.a
libtestdummy_a_SOURCES = \
test_stubs.cc
DUMMY_OBJS = \
test_stubs.o
check_PROGRAMS = \
drive_data_scanner \
@ -82,6 +80,7 @@ LDADD = \
-lz \
$(CONFIG_OBJS) \
$(TEXT2C_OBJS) \
$(DUMMY_OBJS) \
$(top_builddir)/src/libdiag.a \
$(top_builddir)/src/fmtlib/libcppfmt.a \
$(top_builddir)/src/pcrepp/libpcrepp.a \
@ -89,7 +88,6 @@ LDADD = \
$(top_builddir)/src/yajlpp/libyajlpp.a \
$(top_builddir)/src/base/libbase.a \
$(top_builddir)/src/pugixml/libpugixml.a \
libtestdummy.a \
$(CURSES_LIB) \
$(LIBARCHIVE_LIBS) \
$(SQLITE3_LIBS) \

View File

@ -56,21 +56,6 @@ static struct {
volatile sig_atomic_t dd_looping;
} drive_data;
string execute_any(exec_context &ec, const string &cmdline_with_mode)
{
return "";
}
void add_global_vars(exec_context &ec)
{
}
struct exec_context {
};
exec_context INIT_EXEC_CONTEXT;
static void rl_callback(readline_curses *rc)
{
string line = rc->get_value();

View File

@ -42,13 +42,6 @@
using namespace std;
std::vector<std::shared_ptr<log_format>>& log_format::get_root_formats()
{
static std::vector<std::shared_ptr<log_format>> retval;
return retval;
}
#if 0
TEST_CASE("overwritten-logfile") {
string fname = "reload_test.0";

View File

@ -81,6 +81,7 @@
#include "fmt/format.h"
#include "ghc/filesystem.hpp"
#include "base/string_util.hh"
#include "auto_fd.hh"
#include "auto_mem.hh"
#include "termios_guard.hh"
@ -88,13 +89,6 @@
using namespace std;
std::string repeat(const std::string& input, size_t num)
{
std::ostringstream os;
std::fill_n(std::ostream_iterator<std::string>(os), num, input);
return os.str();
}
/**
* An RAII class for opening a PTY and forking a child process.
*/