mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-06-03 19:00:50 +00:00
tests: d-JSON convert to printf
This commit is contained in:
parent
9acb2cd7f4
commit
64400cd216
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
#### $$VERSION$$ v1.21-pre-41-g9acb2cd
|
||||||
|
|
||||||
# include common functions and definitions
|
# include common functions and definitions
|
||||||
# shellcheck source=test/ALL-tests.inc.sh
|
# shellcheck source=test/ALL-tests.inc.sh
|
||||||
|
@ -12,13 +12,13 @@ cd "${TESTDIR}" || exit 1
|
||||||
|
|
||||||
# run JSON.sh with and without options
|
# run JSON.sh with and without options
|
||||||
cd "test" || exit 1
|
cd "test" || exit 1
|
||||||
echo "Check JSON.sh ..."
|
printf "Check JSON.sh ...\n"
|
||||||
JSON="../JSON.sh/JSON.sh"
|
JSON="../JSON.sh/JSON.sh"
|
||||||
|
|
||||||
for i in 1 2
|
for i in 1 2
|
||||||
do
|
do
|
||||||
[ "${i}" = "1" ] && echo " ... JSON.sh -s -b -n"
|
[ "${i}" = "1" ] && printf " ... JSON.sh -b -n\n"
|
||||||
[ "${i}" = "2" ] && echo " ... JSON.sh"
|
[ "${i}" = "2" ] && printf " ... JSON.sh\n"
|
||||||
set +f
|
set +f
|
||||||
for jsonfile in "${REFDIR}"/*.in
|
for jsonfile in "${REFDIR}"/*.in
|
||||||
do
|
do
|
||||||
|
@ -29,7 +29,7 @@ do
|
||||||
# output processed input
|
# output processed input
|
||||||
diff -c "${jsonfile%.in}.result-${i}" "${jsonfile}.out-${i}" || exit 1
|
diff -c "${jsonfile%.in}.result-${i}" "${jsonfile}.out-${i}" || exit 1
|
||||||
done
|
done
|
||||||
echo "${SUCCESS}"
|
printf "%s\n" "${SUCCESS}"
|
||||||
done
|
done
|
||||||
|
|
||||||
cd "${DIRME}" || exit 1
|
cd "${DIRME}" || exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user