-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
43 lines (37 loc) · 1.28 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
SCRATCHDIR=testing/scratch
TESTDIR=$(SCRATCHDIR)/test.00
TESTINGDIR=$(TESTDIR)/testing
tests: pytests jstests
pytests:
@echo "------------------------------------------------"
@echo "If tests fail, build and restart project test.00"
@echo "------------------------------------------------"
@if [ ! -d "$(SCRATCHDIR)" ]; then\
echo "Creating scratch dir";\
mkdir $(SCRATCHDIR);\
fi
@if [ -d "$(TESTDIR)" ]; then\
echo "Removing test dir";\
rm -rf $(TESTDIR);\
fi
mkdir $(TESTDIR)
@if [ -d "$(TESTINGDIR)" ]; then\
echo "Removing testing dir";\
rm -rf $(TESTINGDIR);\
fi
mkdir $(TESTINGDIR)
@cp -rf client-py/gentk $(TESTDIR)
@cp testing/__init__.py $(TESTINGDIR)
@cp testing/test_gene-query.py $(TESTINGDIR)
@cp testing/test_gentk_debug.py $(TESTINGDIR)
@cp testing/testfunctions.py $(TESTINGDIR)
@cd $(TESTDIR); pytest -vv testing/test_gene-query.py
@cd $(TESTDIR); pytest -vv testing/test_gentk_debug.py
jstests:
@echo "------------------------------------------------"
@echo "If tests fail, build and restart project test.00"
@echo "------------------------------------------------"
@cd client-js; npm run test --detectOpenHandles tests/client-js.test.js
@cd client-js; npm run test --detectOpenHandles tests/selection.test.js
update-version:
@./bin/update_version