mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -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[@]}" "${@}"
|
||||
}
|
||||
|
||||
# @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
|
||||
|
||||
@@ -87,7 +87,7 @@ shards_src_test() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
if [[ -d "spec" ]]; then
|
||||
ecrystal spec --verbose "${@}" || die "Tests failed"
|
||||
crystal_spec "${@}"
|
||||
fi
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user