aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/repl_characterization/local.mk
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-03-09 23:59:50 -0800
committerJade Lovelace <lix@jade.fyi>2024-03-14 14:30:38 -0700
commit38571c50e6dc0ee910e9e7619e482fdbbfd644e1 (patch)
tree2f1635b17b71ef3aa0ed3c8dac7bc9ffd2165d07 /tests/functional/repl_characterization/local.mk
parent84727bebb42ded17c128567e34636c4cdc7eed45 (diff)
Implement a parser for a literate testing system for the repl
This parser can be reused for other purposes. It's inspired by https://bitheap.org/cram/ Although eelco's impostor exists https://github.com/mobusoperandi/eelco, it is not very nice to depend on out of tree testing frameworks with no way to customize them. Change-Id: Ifca50177e09730182baf0ebf829c3505bbb0274a
Diffstat (limited to 'tests/functional/repl_characterization/local.mk')
-rw-r--r--tests/functional/repl_characterization/local.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/functional/repl_characterization/local.mk b/tests/functional/repl_characterization/local.mk
new file mode 100644
index 000000000..aa0cf3615
--- /dev/null
+++ b/tests/functional/repl_characterization/local.mk
@@ -0,0 +1,15 @@
+programs += test-repl-characterization
+
+test-repl-characterization_DIR := $(d)
+
+# do not install
+test-repl-characterization_INSTALL_DIR :=
+
+test-repl-characterization_SOURCES := \
+ $(wildcard $(d)/*.cc) \
+
+test-repl-characterization_CXXFLAGS += -I src/libutil -I tests/unit/libutil-support -DNIX_BIN_DIR="\"$(bindir)\""
+
+test-repl-characterization_LIBS = libutil libutil-test-support
+
+test-repl-characterization_LDFLAGS = $(THREAD_LDFLAGS) $(SODIUM_LIBS) $(EDITLINE_LIBS) $(BOOST_LDFLAGS) $(LOWDOWN_LIBS) $(GTEST_LIBS)