-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
42 lines (31 loc) · 1.09 KB
/
Makefile
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
projects_folder=spec
all: cpp_bazel # cpp_cmake
# (cd ~/go/src/github.com/NeoResearch/libbft && dep ensure && go run main.go)
cpp_bazel:
(cd $(projects_folder)/cpp/ && bazel build ...)
valgrind $(projects_folder)/cpp/bazel-bin/app_test # bazel run //:app_test
cpp_cmake:
#export BFTEVENTS=`pwd`/spec/cpp/src/bftevents-grpc
(mkdir -p $(projects_folder)/cpp/build && cd $(projects_folder)/cpp/build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. && make)
valgrind ./$(projects_folder)/cpp/build/app_test
cpp_test: cpp
@echo "Performing basic tests now"
@echo
(cd $(projects_folder)/cpp/build/tests && make test)
go:
(cd ~/go/src/github.com/NeoResearch/libbft && dep ensure && go build *.go)
go_test: go
(cd ~/go/src/github.com/NeoResearch/libbft && go test ./...)
csharp:
(cd $(projects_folder)/csharp && dotnet build)
test: cpp_test
@echo
@echo "Generating coverage (see tests/reports/)"
@echo
#(cd tests && make test-coverage)
@echo
@echo "Performing hard tests now... this will take a while!"
@echo
#(cd tests && make test-hard)
clean:
(cd $(projects_folder)/cpp/build && make clean)