Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 2 | |
| 3 | en_US=`locale -a | grep en_US*` |
| 4 | fr_FR=`locale -a | grep fr_FR*` |
| 5 | de_DE=`locale -a | grep de_DE*` |
| 6 | |
| 7 | if [ -z "$en_US" ] |
| 8 | then |
| 9 | echo "Warning: The en_US* locales is needed to run the intl.tests, please add it." |
| 10 | fi |
| 11 | |
| 12 | if [ -z "$fr_FR" ] |
| 13 | then |
| 14 | echo "Warning: The fr_FR* locales is needed to run the intl.tests, please add it." |
| 15 | fi |
| 16 | |
| 17 | if [ -z "$de_DE" ] |
| 18 | then |
| 19 | echo "Warning: The de_DE* locales is needed to run the intl.tests, please add it." |
| 20 | fi |
| 21 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 22 | useradd bashtest |
| 23 | chown -R bashtest:bashtest tests |
| 24 | setpriv --reuid bashtest --rgid bashtest --clear-groups --reset-env $(dirname "$0")/run-bash-ptests |
| 25 | chown -R root:root tests |
| 26 | userdel -r bashtest |