File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 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
1717tasks :
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 :
Original file line number Diff line number Diff line change 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}}
You can’t perform that action at this time.
0 commit comments