Browse Source

add extra/onemore scenario

main
pvincent 2 weeks ago
parent
commit
71e257a43b
  1. 6
      test/stub/extra/library.bash
  2. 21
      test/stub/extra/onemore.bash
  3. 2
      test/stub/scenario.bash

6
test/stub/extra/library.bash

@ -1,12 +1,14 @@
#!/usr/bin/env miaou-bash #!/usr/bin/env miaou-bash
#!/usr/bin/env bash #!/usr/bin/env bash
BASEDIR=$(dirname "$0")
# BASEDIR=$(dirname "$0")
function library { function library {
echo library loaded echo library loaded
>&2 echo stderr from library >&2 echo stderr from library
"$BASEDIR/onemore.bash"
pwd
# . "./test/stub/extra/onemore.bash"
"./test/stub/extra/onemore.bash"
} }
library library

21
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

2
test/stub/scenario.bash

@ -3,7 +3,7 @@
# CONSTANTS # CONSTANTS
BASEDIR=$(dirname "$0") BASEDIR=$(dirname "$0")
readonly BASEDIR
# readonly BASEDIR
# SCENARII # SCENARII

Loading…
Cancel
Save