-
Notifications
You must be signed in to change notification settings - Fork 106
/
Makefile
52 lines (42 loc) · 1.26 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
43
44
45
46
47
48
49
50
51
52
.DEFAULT_GOAL := test
EXCLUDE_LINT := should be.*UI
TEST_IMAGE_NAME = dedis/conode-test
Coding/bin/Makefile.base:
git clone https://github.com/dedis/Coding
include Coding/bin/Makefile.base
# You can use `test_playground` to run any test or part of cothority
# for more than once in Travis. Change `make test` in .travis.yml
# to `make test_playground`.
test_playground:
cd personhood; \
for a in $$( seq 100 ); do \
if DEBUG_TIME=true go test -v -race > log.txt 2>&1; then \
echo Successfully ran \#$$a at $$(date); \
else \
echo Failed at $$(date); \
cat log.txt; \
exit 1; \
fi; \
done;
proto:
./proto.sh
make -C external
docker:
docker run -t -v $(PWD):/cothority golang:1.15-buster \
bash -c "cd /cothority; go build -o external/docker/conode -tags test ./conode"
cp conode/run_nodes.sh external/docker
docker build -t $(TEST_IMAGE_NAME) external/docker
docker_test_run: docker
docker run -ti -p7770-7777:7770-7777 dedis/conode-test
test_java: docker
cd external/java; mvn test
test_proto:
@./proto.sh > /dev/null; \
if [ "$$( git diff )" ]; then \
echo "Please update proto-files with 'make proto'"; \
exit 1; \
fi
test_llvl:
@if find . -name "*.go" | xargs grep -r log.LLvl; then \
echo "LLvl is only for debugging"; exit 1; \
fi