projects
/
grml-unittests.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update debian/control headers Description, Origin, Bugs
[grml-unittests.git]
/
autoconfig
/
unit_tests
/
grml-setlang.sh
1
#!/bin/zsh
2
3
setopt shwordsplit
4
lang() {
5
grml-setlang $1
6
assertEquals "wrong return value" 0 $?
7
grep -q -i "LANG=.*$1" /etc/default/locale
8
assertEquals "did not find $1 in default/locale" 0 $?
9
10
}
11
test_setlang() {
12
for x in us de pt ; do
13
lang $x
14
done
15
16
17
18
}
19
SHUNIT_PARENT=$0
20
. /tmp/tests/shunit2