Skip to content

Commit 00c232e

Browse files
committed
Fix
1 parent 933e857 commit 00c232e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

taskfile.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ vars:
1010
G_BUILD_DIR: "{{.ROOT_DIR}}/build"
1111
G_CPP_SRC_DIR: "{{.ROOT_DIR}}/src"
1212
G_DEPS_DIR: "{{.G_BUILD_DIR}}/deps"
13-
G_TEST_BIN_DIR: "{{.G_BUILD_DIR}}/testbin"
1413
G_YSTDLIBS:
1514
- "testlib"
15+
G_TEST_BIN_DIR: "{{.G_BUILD_DIR}}/testbin"
1616

1717
tasks:
1818
clean:
@@ -27,18 +27,11 @@ tasks:
2727
cmds:
2828
- "mkdir -p '{{.G_BUILD_DIR}}'"
2929

30-
test-all:
31-
desc: "Runs all unit tests."
32-
deps:
33-
- "build:unit-test-all"
34-
cmds:
35-
- "{{.G_TEST_BIN_DIR}}/unit-test-all"
36-
3730
test-*:
38-
desc: "Runs unit tests for the specified library."
31+
desc: "Runs unit tests for the specified library, or run all tests with `test-all`."
3932
vars:
4033
TEST_TARGET: >-
41-
{{printf "unit-test-%s" .LIBRARY}}
34+
{{printf "unit-test-%s" (index .MATCH 0)}}
4235
deps:
4336
- "build:{{.TEST_TARGET}}"
4437
cmds:

taskfiles/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ tasks:
4242
msg: |-
4343
{{.LIBRARY}} is not a valid ystdlib-cpp library!
4444
List of libraries:
45+
all (if you don't wish to provide a specific library)
4546
{{- range .G_YSTDLIBS }}
4647
{{.}}
4748
{{- end}}

0 commit comments

Comments
 (0)