| 1 | #!/bin/bash |
| 2 | |
| 3 | |
| 4 | echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen |
| 5 | locale-gen |
| 6 | export LANG=en_US.UTF-8 |
| 7 | |
| 8 | set -e |
| 9 | test_drbl_common_functions(){ |
| 10 | echo "drbl common functions" |
| 11 | source /usr/share/drbl/sbin/drbl-functions||true |
| 12 | check_distribution_name |
| 13 | echo ${FULL_OS_Version} |
| 14 | } |
| 15 | |
| 16 | test_bash_lang(){ |
| 17 | echo "test drbl bash lang file" |
| 18 | pushd /usr/share/drbl/lang/bash |
| 19 | /usr/share/drbl/lang/bash/check-bash-lang |
| 20 | popd |
| 21 | } |
| 22 | |
| 23 | test_perl_lang(){ |
| 24 | echo "test drbl perl lang file" |
| 25 | pushd /usr/share/drbl/lang/perl |
| 26 | /usr/share/drbl/lang/perl/check-perl-lang |
| 27 | popd |
| 28 | } |
| 29 | |
| 30 | . shunit2 |
| 31 |