-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (33 loc) · 1.62 KB
/
Copy pathMakefile
File metadata and controls
45 lines (33 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
PROJECT = rabbitmq_stream_s3
PROJECT_DESCRIPTION = RabbitMQ S3 plugin
PROJECT_MOD = rabbitmq_stream_s3_app
DEPS = rabbit rabbit_common osiris khepri gun rabbitmq_prometheus
BUILD_DEPS =
TEST_DEPS = rabbitmq_ct_helpers rabbitmq_ct_client_helpers rabbitmq_stream proper
LOCAL_DEPS = crypto public_key ssl xmerl
DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-plugin.mk
DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk
include ../../rabbitmq-components.mk
include ../../erlang.mk
# CT suites share a node name (erlang.mk limitation), so they cannot run in parallel.
.NOTPARALLEL:
CT_QUICK_SUITES = api_fs db replica_reader_core remote_reader_core replica_reader replica_reader_statem log_reader fragment_iterator fragment_assembly prop manifest_replica manifest_replica_statem api_aws_pool_statem
ERLFMT ?= erlfmt
ERLFMT_FILES = src/*.erl test/*.erl
.PHONY: fmt fmt-check
fmt:
$(verbose) $(ERLFMT) -w $(ERLFMT_FILES)
fmt-check:
$(verbose) $(ERLFMT) -c $(ERLFMT_FILES)
.PHONY: ct-quick
ct-quick: test-build
$(verbose) mkdir -p $(CT_LOGS_DIR)
$(gen_verbose) $(CT_RUN) -sname ct_$(PROJECT) -suite $(addsuffix _SUITE,$(CT_QUICK_SUITES)) $(CT_EXTRA) $(CT_OPTS)
# Benchmarks (test/*_bench.erl). Not CI-gated; for before/after comparisons
# on a quiet machine. `make bench` runs all, `make bench-<module>` runs one.
# The harness itself matches the *_bench.erl glob; it is not a benchmark.
BENCH_MODULES = $(filter-out rabbitmq_stream_s3_bench,$(patsubst test/%.erl,%,$(wildcard test/*_bench.erl)))
.PHONY: bench
bench: $(addprefix bench-,$(BENCH_MODULES))
bench-%: test-build
$(gen_verbose) erl -noshell -pa ebin -pa test -eval '$*:run(), halt(0).'