mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 21:13:27 -04:00
crystal-utils.eclass: add crystal_spec function
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -164,4 +164,12 @@ crystal_build() {
|
|||||||
ecrystal build "${build_args[@]}" "${@}"
|
ecrystal build "${build_args[@]}" "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# @FUNCTION: crystal_spec
|
||||||
|
# @USAGE: [<args>...]
|
||||||
|
# @DESCRIPTION:
|
||||||
|
# Function for running tests. All arguments are passed to crystal.
|
||||||
|
crystal_spec() {
|
||||||
|
ecrystal spec --verbose "${@}" || die -n "Tests failed"
|
||||||
|
}
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ shards_src_test() {
|
|||||||
debug-print-function ${FUNCNAME} "${@}"
|
debug-print-function ${FUNCNAME} "${@}"
|
||||||
|
|
||||||
if [[ -d "spec" ]]; then
|
if [[ -d "spec" ]]; then
|
||||||
ecrystal spec --verbose "${@}" || die "Tests failed"
|
crystal_spec "${@}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user