diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2023-05-08 23:53:50 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2023-05-09 20:42:47 +0500 |
commit | 471145080920d7798f2e00a1001f7d454b29f02f (patch) | |
tree | 9bea35a0aff169756d447046562ac3af5ff1466c /eclass/crystal-utils.eclass | |
parent | crystal-utils.eclass: add crystal_build function (diff) | |
download | guru-471145080920d7798f2e00a1001f7d454b29f02f.tar.gz guru-471145080920d7798f2e00a1001f7d454b29f02f.tar.bz2 guru-471145080920d7798f2e00a1001f7d454b29f02f.zip |
crystal-utils.eclass: add crystal_spec function
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass/crystal-utils.eclass')
-rw-r--r-- | eclass/crystal-utils.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/crystal-utils.eclass b/eclass/crystal-utils.eclass index 3c0b7d48a..8456c5af6 100644 --- a/eclass/crystal-utils.eclass +++ b/eclass/crystal-utils.eclass @@ -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 |