"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/test_beautysh_scripts.sh" between
beautysh-5.0.2.tar.gz and beautysh-6.0.1.tar.gz

About: beautysh is a beautifier for Bash shell scripts.

test_beautysh_scripts.sh  (beautysh-5.0.2):test_beautysh_scripts.sh  (beautysh-6.0.1)
#!/bin/bash #!/usr/bin/env bash
# This is not a script loaded by Beautysh unit tests, rather this verifies # This is not a script loaded by Beautysh unit tests, rather this verifies
# that all existing unit test scripts are valid Bash sources # that all existing unit test scripts are valid Bash sources
THIS_SCRIPT_NAME="$(basename $0)" THIS_SCRIPT_NAME="$(basename $0)"
THIS_SCRIPT_LOCATION="$(dirname $0)" THIS_SCRIPT_LOCATION="$(dirname $0)"
ALL_UNIT_TEST_FILES="$(ls -1 $THIS_SCRIPT_LOCATION/*.sh | grep -v $THIS_SCRIPT_N AME)" ALL_UNIT_TEST_FILES="$(ls -1 $THIS_SCRIPT_LOCATION/*.sh | grep -v $THIS_SCRIPT_N AME)"
for file in $ALL_UNIT_TEST_FILES; do for file in $ALL_UNIT_TEST_FILES; do
echo "Verifying $file ..." echo "Verifying $file ..."
/bin/bash $file </dev/null >/dev/null 2>&1 /usr/bin/env bash $file </dev/null >/dev/null 2>&1
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "Please fix unit test script $file. Bash refuses to load it! " echo "Please fix unit test script $file. Bash refuses to load it! "
exit 2 # fail exit 2 # fail
fi fi
done done
exit 0 # success exit 0 # success
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)