-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (23 loc) · 732 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (23 loc) · 732 Bytes
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
IMAGE = localhost/checkton
INSTALL_NCURSES = false
GENERATE_EXPECTED_OUTPUT = false
.PHONY: build-image
build-image:
podman build -t $(IMAGE) --build-arg INSTALL_NCURSES=$(INSTALL_NCURSES) .
.PHONY: test-with-prebuilt-image
test-with-prebuilt-image:
podman run --rm -ti \
-v "$(PWD):/code:z" \
-e GENERATE_EXPECTED_OUTPUT=$(GENERATE_EXPECTED_OUTPUT) \
-w /code $(IMAGE) \
test/bats/bin/bats test/*.sh
.PHONY: test
test: INSTALL_NCURSES = true
test: build-image
test: test-with-prebuilt-image
.PHONY: generate-expected-test-output
generate-expected-test-output: GENERATE_EXPECTED_OUTPUT = true
generate-expected-test-output: test
.PHONY: generate-test-patches
generate-test-patches:
test/resources/patches/generate.sh