-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (59 loc) · 2.3 KB
/
Copy pathMakefile
File metadata and controls
77 lines (59 loc) · 2.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
SHELL := /bin/bash
SKARGO_PROFILE?=release
SCRIPT_DIR=$(shell dirname $(shell realpath $(firstword $(MAKEFILE_LIST))))
.PHONY: check-src
check-src: build
../bin/cd_sh .. "npm run lint -w skdb"
.PHONY: check-tests
check-tests: build
../bin/cd_sh .. "npm run lint -w skdb-tests"
.PHONY: check-all
check-all: check-src check-tests
.PHONY: build
build:
${MAKE} -C ../skipruntime-ts install-all
../bin/cd_sh .. "npm run build -w skdb -w skdb-tests"
.PHONY: clean
clean:
rm -rf ./ts/dist ./ts/playwright-report ./ts/test-results
cd .. && make clean
.PHONY: install-test
install-test: build
cd ts/tests && npx playwright install
.PHONY: run-test
run-test:
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_common.mk
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_server.mk
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_mux.mk
cd ts/tests && npx playwright test --reporter=line
.PHONY: test
test: install-test run-test
.PHONY: test-client-node
test-client-node: install-test
cd ts/tests && npx playwright test --reporter=line node.play.ts
.PHONY: test-client-browser
test-client-browser: install-test
cd ts/tests && npx playwright test --reporter=line browser.play.ts
.PHONY: test-client
test-client: install-test
cd ts/tests && npx playwright test --reporter=line browser.play.ts node.play.ts
.PHONY: test-server
test-server: install-test
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_common.mk
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_server.mk
cd ts/tests && npx playwright test --reporter=line --timeout=60000 node.play.server.ts
.PHONY: test-mux-node
test-mux-node: install-test
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_common.mk
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_mux.mk
cd ts/tests && npx playwright test --reporter=line node.play.mux.ts
.PHONY: test-mux-browser
test-mux-browser: install-test
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_common.mk
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_mux.mk
cd ts/tests && npx playwright test --reporter=line browser.play.mux.ts
.PHONY: test-mux
test-mux: install-test
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_common.mk
cd ts/tests && make ROOT_DIR=${SCRIPT_DIR} -f service_mux.mk
cd ts/tests && npx playwright test --reporter=line browser.play.mux.ts node.play.mux.ts