From 71e257a43b90d7e00766e25560e65f1f2722e7db Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 30 Jul 2026 11:41:36 +0400 Subject: [PATCH] add extra/onemore scenario --- test/stub/extra/library.bash | 6 ++++-- test/stub/extra/onemore.bash | 21 +++++++++++++++++++++ test/stub/scenario.bash | 2 +- 3 files changed, 26 insertions(+), 3 deletions(-) create mode 100755 test/stub/extra/onemore.bash diff --git a/test/stub/extra/library.bash b/test/stub/extra/library.bash index daa2191..2868884 100755 --- a/test/stub/extra/library.bash +++ b/test/stub/extra/library.bash @@ -1,12 +1,14 @@ #!/usr/bin/env miaou-bash #!/usr/bin/env bash -BASEDIR=$(dirname "$0") +# BASEDIR=$(dirname "$0") function library { echo library loaded >&2 echo stderr from library - "$BASEDIR/onemore.bash" + pwd + # . "./test/stub/extra/onemore.bash" + "./test/stub/extra/onemore.bash" } library diff --git a/test/stub/extra/onemore.bash b/test/stub/extra/onemore.bash new file mode 100755 index 0000000..72de6de --- /dev/null +++ b/test/stub/extra/onemore.bash @@ -0,0 +1,21 @@ +#!/usr/bin/env miaou-bash +#!/usr/bin/env bash + +function onemore { + echo onemore loaded + >&2 echo stderr from onemore + do_next +} + +function do_next { + echo do_next + command_not_found + grep nope nope + exit + exit 10 # youpi + echo $nope + return 7 + return +} + +onemore diff --git a/test/stub/scenario.bash b/test/stub/scenario.bash index 946000f..97a5bfd 100755 --- a/test/stub/scenario.bash +++ b/test/stub/scenario.bash @@ -3,7 +3,7 @@ # CONSTANTS BASEDIR=$(dirname "$0") -readonly BASEDIR +# readonly BASEDIR # SCENARII