-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (53 loc) · 1.3 KB
/
Makefile
File metadata and controls
64 lines (53 loc) · 1.3 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
CMD = python3
TARGETS = test
all: $(TARGETS)
test:
@echo
@echo Running all test files
@echo
@cd ooapi/test/; $(CMD) -m unittest -v
@cd server/test/; $(CMD) -m unittest -v
test-separate:
@echo
@echo Running all test files separately
@echo
@cd ooapi/test/; $(CMD) test_tv_library.py -v
@cd server/test/; $(CMD) test_tv_shows.py -v; $(CMD) test_users_key.py -v; \
$(CMD) test_users_index.py -v; $(CMD) test_reset_endpoint.py -v
test-library:
@echo
@echo Running test_tv_library.py
@echo
@cd ooapi/test/; $(CMD) test_tv_library.py -v
test-tv:
@echo
@echo Running test_tv_shows.py
@echo
@cd server/test/; $(CMD) test_tv_shows.py -v
test-users:
@echo
@echo Running all users test files
@echo
@cd server/test/; $(CMD) test_users_key.py -v; $(CMD) test_users_index.py -v
test-users-key:
@echo
@echo Running test_users_key.py
@echo
@cd server/test/; $(CMD) test_users_key.py -v
test-users-index:
@echo
@echo Running test_users_index.py
@echo
@cd server/test/; $(CMD) test_users_index.py -v
test-reset:
@echo
@echo Running test_reset_endpoint.py
@echo
@cd server/test/; $(CMD) test_reset_endpoint.py -v
clean:
@echo
@echo Clearing pycaches...
@rm -rf ooapi/__pycache__/
@rm -rf server/__pycache__/
@rm -rf ooapi/test/__pycache__/
@rm -rf server/test/__pycache__/