mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 02:46:21 +00:00
Merge branch 'master' into merge/upstream-full
Resolve conflicts after master gained the flat-file database backend,
AI client, and other cproof-fork features:
- CHANGELOG: keep cproof-fork unreleased section atop full upstream
history (0.17.0 / 0.16.0 / 0.15.1)
- src/command/cmd_ac.c: keep both upstream spellcheck AC and cproof
/history switch|verify|export|import autocompletion
- src/config/preferences.c: merge upstream [spellcheck] group with the
cproof [ai]/[ai/<provider>] groups
- src/database.c: take master (thin dispatcher); upstream SQLite
improvements (v3 migration, auto_gchar) belong in database_sqlite.c
and will land in a follow-up commit
- src/tools/autocomplete.c: take upstream unescape of search_str
- src/ui/statusbar.c: keep guint signatures (per project preference)
and adapt _status_bar_draw_dbbackend to guint as well
- src/xmpp/jid.c: combine the new jid_is_valid/jid_is_valid_user_jid
with the "(null)" legacy-placeholder guard in
jid_create_from_bare_and_resource; use auto_gchar
- tests/functionaltests/proftest.c: keep unsigned-safe pre-check on
output_len before subtracting OUTPUT_BUF_SIZE
- tests/unittests/unittests.c: keep upstream subdirectory include
layout plus cproof-only test_ai_client/database_export/database_stress
- tests/unittests/test_jid.c: drop orphan top-level copy (the
restructured version lives in tests/unittests/xmpp/test_jid.c)
Upstream is included up to 1ac05754b (release 0.18.0 era). Follow-up:
pull 1ac05754b..upstream/master (esp. 42a849d16 db migration fix and
4749645c7 receipt-request restore), and adapt the SQLite improvements
into database_sqlite.c.
This commit is contained in:
283
Makefile.am
283
Makefile.am
@@ -3,6 +3,10 @@ core_sources = \
|
||||
src/log.c src/common.c \
|
||||
src/chatlog.c src/chatlog.h \
|
||||
src/database.h src/database.c \
|
||||
src/database_flatfile.c src/database_flatfile.h \
|
||||
src/database_flatfile_parser.c \
|
||||
src/database_flatfile_verify.c \
|
||||
src/database_export.c \
|
||||
src/log.h src/profanity.c src/common.h \
|
||||
src/profanity.h src/xmpp/chat_session.c \
|
||||
src/xmpp/chat_session.h src/xmpp/muc.c src/xmpp/muc.h src/xmpp/jid.h src/xmpp/jid.c \
|
||||
@@ -33,6 +37,7 @@ core_sources = \
|
||||
src/ui/window_list.c src/ui/window_list.h \
|
||||
src/ui/rosterwin.c src/ui/occupantswin.c \
|
||||
src/ui/buffer.c src/ui/buffer.h \
|
||||
src/ui/aiwin.c \
|
||||
src/ui/chatwin.c \
|
||||
src/ui/mucwin.c \
|
||||
src/ui/privwin.c \
|
||||
@@ -74,7 +79,8 @@ core_sources = \
|
||||
src/plugins/themes.c src/plugins/themes.h \
|
||||
src/plugins/settings.c src/plugins/settings.h \
|
||||
src/plugins/disco.c src/plugins/disco.h \
|
||||
src/ui/tray.h src/ui/tray.c
|
||||
src/ui/tray.h src/ui/tray.c \
|
||||
src/ai/ai_client.h src/ai/ai_client.c
|
||||
|
||||
unittest_sources = \
|
||||
src/xmpp/contact.c src/xmpp/contact.h src/common.c \
|
||||
@@ -85,6 +91,7 @@ unittest_sources = \
|
||||
src/xmpp/chat_state.h src/xmpp/chat_state.c \
|
||||
src/xmpp/roster_list.c src/xmpp/roster_list.h \
|
||||
src/xmpp/xmpp.h src/xmpp/form.c \
|
||||
src/ai/ai_client.h src/ai/ai_client.c \
|
||||
src/ui/ui.h \
|
||||
src/otr/otr.h \
|
||||
src/pgp/gpg.h \
|
||||
@@ -93,6 +100,8 @@ unittest_sources = \
|
||||
src/omemo/crypto.h \
|
||||
src/omemo/store.h \
|
||||
src/xmpp/vcard.h src/xmpp/vcard_funcs.h \
|
||||
src/database_flatfile.h \
|
||||
src/database_flatfile_parser.c \
|
||||
src/command/cmd_defs.h src/command/cmd_defs.c \
|
||||
src/command/cmd_funcs.h src/command/cmd_funcs.c \
|
||||
src/command/cmd_ac.h src/command/cmd_ac.c \
|
||||
@@ -132,6 +141,7 @@ unittest_sources = \
|
||||
tests/unittests/xmpp/stub_message.c \
|
||||
tests/unittests/ui/stub_ui.c tests/unittests/ui/stub_ui.h \
|
||||
tests/unittests/ui/stub_vcardwin.c \
|
||||
tests/unittests/ui/stub_ai.c \
|
||||
tests/unittests/log/stub_log.c \
|
||||
tests/unittests/chatlog/stub_chatlog.c \
|
||||
tests/unittests/database/stub_database.c \
|
||||
@@ -169,6 +179,9 @@ unittest_sources = \
|
||||
tests/unittests/plugins/test_callbacks.c tests/unittests/plugins/test_callbacks.h \
|
||||
tests/unittests/plugins/test_plugins_disco.c tests/unittests/plugins/test_plugins_disco.h \
|
||||
tests/unittests/test_forced_encryption.c tests/unittests/test_forced_encryption.h \
|
||||
tests/unittests/test_ai_client.c tests/unittests/test_ai_client.h \
|
||||
tests/unittests/test_database_export.c tests/unittests/test_database_export.h \
|
||||
tests/unittests/test_database_stress.c tests/unittests/test_database_stress.h \
|
||||
tests/unittests/unittests.c
|
||||
|
||||
functionaltest_sources = \
|
||||
@@ -186,9 +199,12 @@ functionaltest_sources = \
|
||||
tests/functionaltests/test_software.c tests/functionaltests/test_software.h \
|
||||
tests/functionaltests/test_muc.c tests/functionaltests/test_muc.h \
|
||||
tests/functionaltests/test_disconnect.c tests/functionaltests/test_disconnect.h \
|
||||
tests/functionaltests/test_history.c tests/functionaltests/test_history.h \
|
||||
tests/functionaltests/test_lastactivity.c tests/functionaltests/test_lastactivity.h \
|
||||
tests/functionaltests/test_autoping.c tests/functionaltests/test_autoping.h \
|
||||
tests/functionaltests/test_disco.c tests/functionaltests/test_disco.h \
|
||||
tests/functionaltests/test_export_import.c tests/functionaltests/test_export_import.h \
|
||||
tests/functionaltests/test_ai.c tests/functionaltests/test_ai.h \
|
||||
tests/functionaltests/functionaltests.c
|
||||
|
||||
main_source = src/main.c
|
||||
@@ -258,6 +274,12 @@ core_sources += $(omemo_sources)
|
||||
unittest_sources += $(omemo_unittest_sources)
|
||||
endif
|
||||
|
||||
sqlite_sources = src/database_sqlite.c
|
||||
|
||||
if BUILD_SQLITE
|
||||
core_sources += $(sqlite_sources)
|
||||
endif
|
||||
|
||||
all_c_sources = $(core_sources) $(unittest_sources) \
|
||||
$(pgp_sources) $(pgp_unittest_sources) \
|
||||
$(otr4_sources) $(otr_unittest_sources) \
|
||||
@@ -332,11 +354,256 @@ check-functional-parallel: tests/functionaltests/functionaltests
|
||||
grep -E 'PASSED|FAILED|Running' $(builddir)/test-logs/group*.log || true; \
|
||||
if [ $$failed -ne 0 ]; then echo "FUNCTIONAL TESTS FAILED"; exit 1; fi; \
|
||||
echo "All functional test groups passed!"
|
||||
|
||||
# Run functional tests with the flat-file database backend
|
||||
# Usage: make check-functional-flatfile
|
||||
check-functional-flatfile: tests/functionaltests/functionaltests
|
||||
@echo "Running functional tests with flat-file backend ($(words $(FUNC_TEST_GROUPS)) groups)..."
|
||||
@mkdir -p $(builddir)/test-logs $(builddir)/test-files
|
||||
@pids=""; \
|
||||
for g in $(FUNC_TEST_GROUPS); do \
|
||||
PROF_FLATFILE=1 ./tests/functionaltests/functionaltests $$g > $(builddir)/test-logs/group$$g-flatfile.log 2>&1 & \
|
||||
pids="$$pids $$!"; \
|
||||
done; \
|
||||
failed=0; i=1; \
|
||||
for pid in $$pids; do \
|
||||
wait $$pid || { echo "Group $$i FAILED (flatfile)"; cat $(builddir)/test-logs/group$$i-flatfile.log; failed=1; }; \
|
||||
i=$$((i + 1)); \
|
||||
done; \
|
||||
echo "=== Flat-file Test Results Summary ==="; \
|
||||
grep -E 'PASSED|FAILED|Running' $(builddir)/test-logs/group*-flatfile.log || true; \
|
||||
if [ $$failed -ne 0 ]; then echo "FLAT-FILE FUNCTIONAL TESTS FAILED"; exit 1; fi; \
|
||||
echo "All flat-file functional test groups passed!"
|
||||
endif
|
||||
endif
|
||||
|
||||
man1_MANS = $(man1_sources)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Bench harness — synthetic database load tests. Not part of `make check`.
|
||||
# Build only when invoked via `make bench` / `make bench-quick`.
|
||||
# Sources live in tests/bench/. See tests/bench/README.md.
|
||||
|
||||
bench_common_sources = \
|
||||
tests/bench/bench_stubs.c \
|
||||
tests/bench/bench_common.c tests/bench/bench_common.h \
|
||||
tests/bench/bench_csv.c tests/bench/bench_csv.h \
|
||||
src/database_flatfile.c src/database_flatfile.h \
|
||||
src/database_flatfile_parser.c \
|
||||
src/database_flatfile_verify.c \
|
||||
src/common.c src/common.h
|
||||
|
||||
# Sources needed only by the export/import bench (S7/S8). Pulls in the SQLite
|
||||
# backend, the cross-backend export/import code, and the dispatcher.
|
||||
bench_export_sources = \
|
||||
src/database.c src/database.h \
|
||||
src/database_sqlite.c \
|
||||
src/database_export.c
|
||||
|
||||
EXTRA_PROGRAMS = \
|
||||
tests/bench/gen_history \
|
||||
tests/bench/bench_runner \
|
||||
tests/bench/bench_long_messages \
|
||||
tests/bench/bench_failure_modes \
|
||||
tests/bench/bench_export_import
|
||||
|
||||
tests_bench_gen_history_SOURCES = tests/bench/gen_history.c $(bench_common_sources)
|
||||
tests_bench_gen_history_CPPFLAGS = -I$(srcdir)/src -I$(srcdir)/tests/bench
|
||||
tests_bench_gen_history_CFLAGS = $(AM_CFLAGS)
|
||||
tests_bench_gen_history_LDADD =
|
||||
|
||||
tests_bench_bench_runner_SOURCES = tests/bench/bench_runner.c $(bench_common_sources)
|
||||
tests_bench_bench_runner_CPPFLAGS = -I$(srcdir)/src -I$(srcdir)/tests/bench
|
||||
tests_bench_bench_runner_CFLAGS = $(AM_CFLAGS)
|
||||
tests_bench_bench_runner_LDADD =
|
||||
|
||||
tests_bench_bench_long_messages_SOURCES = tests/bench/bench_long_messages.c $(bench_common_sources)
|
||||
tests_bench_bench_long_messages_CPPFLAGS = -I$(srcdir)/src -I$(srcdir)/tests/bench
|
||||
tests_bench_bench_long_messages_CFLAGS = $(AM_CFLAGS)
|
||||
tests_bench_bench_long_messages_LDADD =
|
||||
|
||||
tests_bench_bench_failure_modes_SOURCES = tests/bench/bench_failure_modes.c $(bench_common_sources)
|
||||
tests_bench_bench_failure_modes_CPPFLAGS = -I$(srcdir)/src -I$(srcdir)/tests/bench
|
||||
tests_bench_bench_failure_modes_CFLAGS = $(AM_CFLAGS)
|
||||
tests_bench_bench_failure_modes_LDADD =
|
||||
|
||||
tests_bench_bench_export_import_SOURCES = tests/bench/bench_export_import.c \
|
||||
$(bench_common_sources) $(bench_export_sources)
|
||||
tests_bench_bench_export_import_CPPFLAGS = -I$(srcdir)/src -I$(srcdir)/tests/bench
|
||||
tests_bench_bench_export_import_CFLAGS = $(AM_CFLAGS)
|
||||
tests_bench_bench_export_import_LDADD =
|
||||
|
||||
# Volume control: BENCH_VOLUME={small|medium|max}. Default `small` is safe
|
||||
# even on tight disks (~5 MB). `max` is heavyweight — see README.
|
||||
BENCH_VOLUME ?= small
|
||||
BENCH_DATA_DIR ?= /tmp/cproof-bench-corpus
|
||||
BENCH_CSV ?= tests/bench/current.csv
|
||||
|
||||
bench-build: tests/bench/gen_history tests/bench/bench_runner tests/bench/bench_long_messages tests/bench/bench_failure_modes tests/bench/bench_export_import
|
||||
|
||||
# Resolve --lines / --years for the configured volume.
|
||||
bench-gen: bench-build
|
||||
@mkdir -p $(BENCH_DATA_DIR)
|
||||
@case "$(BENCH_VOLUME)" in \
|
||||
small) L=10000; Y=1; P=mixed ;; \
|
||||
medium) L=500000; Y=5; P=mixed ;; \
|
||||
max) L=5000000; Y=10; P=long ;; \
|
||||
*) echo "BENCH_VOLUME must be small|medium|max"; exit 2 ;; \
|
||||
esac; \
|
||||
echo "==> generating volume=$(BENCH_VOLUME) lines=$$L years=$$Y profile=$$P"; \
|
||||
./tests/bench/gen_history --lines=$$L --years=$$Y --msg-len-profile=$$P \
|
||||
--lmc-rate=3 --mam-ooo-rate=0 --resources-per-contact=3 \
|
||||
--output=$(BENCH_DATA_DIR) --seed=42
|
||||
|
||||
bench-run: bench-build
|
||||
@echo "==> running scenarios (csv=$(BENCH_CSV))"
|
||||
@BENCH_VOLUME=$(BENCH_VOLUME) BENCH_DATA_DIR=$(BENCH_DATA_DIR) \
|
||||
./tests/bench/bench_runner --data=$(BENCH_DATA_DIR) --csv=$(BENCH_CSV)
|
||||
@echo "==> CSV: $(BENCH_CSV)"
|
||||
@cat $(BENCH_CSV)
|
||||
|
||||
bench: bench-gen bench-run
|
||||
|
||||
bench-quick:
|
||||
@$(MAKE) bench BENCH_VOLUME=small
|
||||
|
||||
# Long-message tests (L1–L14). Independent of corpus volume, uses its own tmp dir.
|
||||
bench-longmsg: bench-build
|
||||
@echo "==> long-message tests (csv=$(BENCH_CSV))"
|
||||
@./tests/bench/bench_long_messages \
|
||||
--tmp=$(BENCH_DATA_DIR)-longmsg --csv=$(BENCH_CSV)
|
||||
@rm -rf $(BENCH_DATA_DIR)-longmsg
|
||||
|
||||
# Failure-injection (F1–F15). Independent corpus, asserts behaviour on bad data.
|
||||
bench-failure: bench-build
|
||||
@echo "==> failure-injection tests (csv=$(BENCH_CSV))"
|
||||
@./tests/bench/bench_failure_modes \
|
||||
--tmp=$(BENCH_DATA_DIR)-fail --csv=$(BENCH_CSV)
|
||||
@rm -rf $(BENCH_DATA_DIR)-fail
|
||||
|
||||
# Export/import (S7/S8) pipeline. Independent corpus under BENCH_DATA_DIR-export.
|
||||
# Default scale: 100k rows (~5–30 s). Override with BENCH_PIPE_ROWS=N.
|
||||
BENCH_PIPE_ROWS ?= 100000
|
||||
|
||||
BENCH_PIPE_VOLUME ?= pipe$(BENCH_PIPE_ROWS)
|
||||
|
||||
bench-export: bench-build
|
||||
@echo "==> S7 export pipeline ($(BENCH_PIPE_ROWS) rows, csv=$(BENCH_CSV))"
|
||||
@rm -rf $(BENCH_DATA_DIR)-export
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import seed --rows=$(BENCH_PIPE_ROWS) --account=bench@bench.example
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import export --account=bench@bench.example \
|
||||
--csv=$(BENCH_CSV) --label=S7a_export_cold --volume=$(BENCH_PIPE_VOLUME)
|
||||
@echo " -- second pass (dedup hot path)"
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import export --account=bench@bench.example \
|
||||
--csv=$(BENCH_CSV) --label=S7b_export_dedup --volume=$(BENCH_PIPE_VOLUME)
|
||||
@rm -rf $(BENCH_DATA_DIR)-export
|
||||
|
||||
bench-import: bench-build
|
||||
@echo "==> S8 import pipeline ($(BENCH_PIPE_ROWS) rows, csv=$(BENCH_CSV))"
|
||||
@rm -rf $(BENCH_DATA_DIR)-export
|
||||
@# Seed account A, export it, then wipe its DB but keep flatlog. Import
|
||||
@# back into the same account — that way the to: header in flatfile
|
||||
@# matches the importing account so dedup works correctly.
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import seed --rows=$(BENCH_PIPE_ROWS) --account=bench@bench.example
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import export --account=bench@bench.example \
|
||||
--csv=$(BENCH_CSV) --label=S7_seed_export --volume=$(BENCH_PIPE_VOLUME)
|
||||
@rm -f $(BENCH_DATA_DIR)-export/database/bench_at_bench.example/chatlog.db*
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import import --account=bench@bench.example \
|
||||
--csv=$(BENCH_CSV) --label=S8a_import_cold --volume=$(BENCH_PIPE_VOLUME)
|
||||
@echo " -- second import (idempotency)"
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import import --account=bench@bench.example \
|
||||
--csv=$(BENCH_CSV) --label=S8b_import_idempotent --volume=$(BENCH_PIPE_VOLUME)
|
||||
@rm -rf $(BENCH_DATA_DIR)-export
|
||||
|
||||
# Full roundtrip with content diff at default volume. PASSes only if
|
||||
# every row in the rebuilt DB matches the source byte-for-byte.
|
||||
bench-roundtrip: bench-build
|
||||
@echo "==> S8e roundtrip+full diff ($(BENCH_PIPE_ROWS) rows, csv=$(BENCH_CSV))"
|
||||
@rm -rf $(BENCH_DATA_DIR)-export
|
||||
@BENCH_DATA_DIR=$(BENCH_DATA_DIR)-export \
|
||||
./tests/bench/bench_export_import roundtrip --rows=$(BENCH_PIPE_ROWS) \
|
||||
--csv=$(BENCH_CSV) --label=S8e_roundtrip --volume=$(BENCH_PIPE_VOLUME) --full-diff
|
||||
@rm -rf $(BENCH_DATA_DIR)-export
|
||||
|
||||
# Pipeline at medium volume (default BENCH_PIPE_ROWS=100k).
|
||||
bench-pipeline: bench-export bench-import bench-roundtrip
|
||||
|
||||
# Pipeline at MAX volume — 1M rows. Heavy: ~5–10 min, ~500MB SQLite + ~500MB
|
||||
# flatfile + ~500MB second SQLite. Run only when you can afford the time
|
||||
# and the disk. Set BENCH_PIPE_ROWS_MAX to override (default 1_000_000).
|
||||
BENCH_PIPE_ROWS_MAX ?= 1000000
|
||||
bench-pipeline-max: bench-build
|
||||
@echo "==> bench-pipeline-max: $(BENCH_PIPE_ROWS_MAX) rows (heavy!)"
|
||||
@$(MAKE) bench-export BENCH_PIPE_ROWS=$(BENCH_PIPE_ROWS_MAX)
|
||||
@$(MAKE) bench-import BENCH_PIPE_ROWS=$(BENCH_PIPE_ROWS_MAX)
|
||||
@$(MAKE) bench-roundtrip BENCH_PIPE_ROWS=$(BENCH_PIPE_ROWS_MAX)
|
||||
|
||||
# S9: 200 contacts × 50k lines per contact = 10M lines distributed.
|
||||
bench-multicontact: bench-build
|
||||
@mkdir -p $(BENCH_DATA_DIR)-multi
|
||||
@echo "==> S9: 200 contacts x 5000 lines"
|
||||
@./tests/bench/gen_history --lines=1000000 --contacts=200 --years=3 \
|
||||
--msg-len-profile=mixed --output=$(BENCH_DATA_DIR)-multi --seed=42
|
||||
@BENCH_VOLUME=multicontact BENCH_DATA_DIR=$(BENCH_DATA_DIR)-multi \
|
||||
./tests/bench/bench_runner --data=$(BENCH_DATA_DIR)-multi --csv=$(BENCH_CSV) \
|
||||
--scenarios=S4,S6
|
||||
@rm -rf $(BENCH_DATA_DIR)-multi
|
||||
|
||||
# S10: 30% LMC corrections.
|
||||
bench-lmc: bench-build
|
||||
@mkdir -p $(BENCH_DATA_DIR)-lmc
|
||||
@echo "==> S10: LMC-heavy corpus (30%% corrections)"
|
||||
@./tests/bench/gen_history --lines=100000 --years=2 --lmc-rate=30 \
|
||||
--msg-len-profile=mixed --output=$(BENCH_DATA_DIR)-lmc --seed=42
|
||||
@BENCH_VOLUME=lmc BENCH_DATA_DIR=$(BENCH_DATA_DIR)-lmc \
|
||||
./tests/bench/bench_runner --data=$(BENCH_DATA_DIR)-lmc --csv=$(BENCH_CSV)
|
||||
@rm -rf $(BENCH_DATA_DIR)-lmc
|
||||
|
||||
# S11: 20% MAM out-of-order timestamps.
|
||||
bench-ooo: bench-build
|
||||
@mkdir -p $(BENCH_DATA_DIR)-ooo
|
||||
@echo "==> S11: MAM-OOO corpus (20%% out-of-order)"
|
||||
@./tests/bench/gen_history --lines=100000 --years=2 --mam-ooo-rate=20 \
|
||||
--msg-len-profile=mixed --output=$(BENCH_DATA_DIR)-ooo --seed=42
|
||||
@BENCH_VOLUME=ooo BENCH_DATA_DIR=$(BENCH_DATA_DIR)-ooo \
|
||||
./tests/bench/bench_runner --data=$(BENCH_DATA_DIR)-ooo --csv=$(BENCH_CSV) \
|
||||
--scenarios=S6
|
||||
@rm -rf $(BENCH_DATA_DIR)-ooo
|
||||
|
||||
# Run everything: P1 scenarios + long messages + failure injection + multicontact + LMC + OOO.
|
||||
bench-full: bench bench-longmsg bench-failure bench-multicontact bench-lmc bench-ooo
|
||||
|
||||
# Compare current.csv against baseline.csv and exit non-zero on regressions.
|
||||
BENCH_BASELINE ?= tests/bench/baseline.csv
|
||||
BENCH_THRESHOLD ?= 25
|
||||
bench-compare:
|
||||
@python3 tests/bench/compare_baseline.py \
|
||||
--baseline=$(BENCH_BASELINE) --current=$(BENCH_CSV) \
|
||||
--threshold=$(BENCH_THRESHOLD)
|
||||
|
||||
# Snapshot current.csv as the new baseline. Run this only after manually
|
||||
# reviewing that the numbers look healthy.
|
||||
bench-update-baseline:
|
||||
@cp $(BENCH_CSV) $(BENCH_BASELINE)
|
||||
@echo "baseline updated: $(BENCH_BASELINE)"
|
||||
|
||||
bench-clean:
|
||||
rm -rf $(BENCH_DATA_DIR) $(BENCH_DATA_DIR)-longmsg $(BENCH_DATA_DIR)-fail \
|
||||
$(BENCH_DATA_DIR)-multi $(BENCH_DATA_DIR)-lmc $(BENCH_DATA_DIR)-ooo \
|
||||
$(BENCH_DATA_DIR)-export $(BENCH_CSV)
|
||||
|
||||
.PHONY: bench bench-quick bench-build bench-gen bench-run bench-clean \
|
||||
bench-longmsg bench-failure bench-multicontact bench-lmc bench-ooo \
|
||||
bench-full bench-compare bench-update-baseline \
|
||||
bench-export bench-import bench-roundtrip bench-pipeline bench-pipeline-max
|
||||
|
||||
EXTRA_DIST = $(man1_sources) $(icons_sources) $(themes_sources) $(script_sources) profrc.example theme_template LICENSE.txt README.md CHANGELOG
|
||||
|
||||
# Ship API documentation with `make dist`
|
||||
@@ -352,6 +619,20 @@ EXTRA_DIST += \
|
||||
apidocs/python/src/plugin.py \
|
||||
apidocs/python/src/prof.py
|
||||
|
||||
# Bench harness sources (not built by default; see EXTRA_PROGRAMS above)
|
||||
EXTRA_DIST += \
|
||||
tests/bench/README.md \
|
||||
tests/bench/compare_baseline.py \
|
||||
tests/bench/gen_history.c \
|
||||
tests/bench/bench_runner.c \
|
||||
tests/bench/bench_long_messages.c \
|
||||
tests/bench/bench_failure_modes.c \
|
||||
tests/bench/bench_export_import.c \
|
||||
tests/bench/bench_stubs.c \
|
||||
tests/bench/bench_common.c tests/bench/bench_common.h \
|
||||
tests/bench/bench_csv.c tests/bench/bench_csv.h \
|
||||
tests/bench/baseline.csv
|
||||
|
||||
if INCLUDE_GIT_VERSION
|
||||
EXTRA_DIST += .git/HEAD .git/index
|
||||
|
||||
|
||||
Reference in New Issue
Block a user