forked from IBM/ibmpairs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (45 loc) · 1.96 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
53
#===============================================================
# IBM Confidential
#
# OCO Source Materials
#
# Copyright IBM Corp. 2021
#
# The source code for this program is not published or otherwise
# divested of its trade secrets, irrespective of what has been
# deposited with the U.S. Copyright Office.
#===============================================================
PYTHON_ENV:="/usr/bin/python"
test: ## Runs unit tests
test:
@echo 'Running unit tests ...'
@if $(PYTHON_ENV) -m pytest tests/test_authentication.py; then exit 0; else exit 1; fi
@if $(PYTHON_ENV) -m pytest tests/test_catalog.py; then exit 0; else exit 1; fi
@if $(PYTHON_ENV) -m pytest tests/test_client.py; then exit 0; else exit 1; fi
@if $(PYTHON_ENV) -m pytest tests/test_common.py; then exit 0; else exit 1; fi
@if $(PYTHON_ENV) -m pytest tests/test_query.py; then exit 0; else exit 1; fi
@if $(PYTHON_ENV) -m pytest tests/test_upload.py; then exit 0; else exit 1; fi
test-authentication: ## Runs authentication unit tests
test-authentication:
@echo 'Running authentication unit tests ...'
@if $(PYTHON_ENV) -m pytest tests/test_authentication.py; then exit 0; else exit 1; fi
test-catalog: ## Runs catalog unit tests
test-catalog:
@echo 'Running unit tests ...'
@if $(PYTHON_ENV) -m pytest tests/test_catalog.py; then exit 0; else exit 1; fi
test-client: ## Runs client unit tests
test-client:
@echo 'Running unit tests ...'
@if $(PYTHON_ENV) -m pytest tests/test_client.py; then exit 0; else exit 1; fi
test-common: ## Runs common unit tests
test-common:
@echo 'Running unit tests ...'
@if $(PYTHON_ENV) -m pytest tests/test_common.py; then exit 0; else exit 1; fi
test-query: ## Runs query unit tests
test-query:
@echo 'Running query unit tests ...'
@if $(PYTHON_ENV) -m pytest tests/test_query.py; then exit 0; else exit 1; fi
test-upload: ## Runs upload unit tests
test-upload:
@echo 'Running upload unit tests ...'
@if $(PYTHON_ENV) -m pytest tests/test_upload.py; then exit 0; else exit 1; fi