1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# A simple test case created during QA meeting for testing keyboard layout we can do something similar for other locale as well i suppose..  

Sample method using is-latin1 

# Add this to a kickstart file 

keyboard is-latin1

Sample script to use for the actual test, the script gets created during the install ( echo script lines to file in ks file chmod  ) and run post-install 

#!/bin/bash

keyboard=`grep -c "is-latin1" /etc/sysconfig/keyboard `
lshal=`/usr/bin/lshal | grep "layout" | grep -c "is" `

if [ "$keyboard" == "1" ]
        then
            echo "/etc/sysconfig/keyboard OK "
        else
            echo "/etc/sysconfig/keyboard FAIL" #Can of course take some other action here mail the output from file
fi



if [ "$lshal" == "1" ]
        then
            echo "lshal output OK "
        else
            echo "lshal output FAIL" # Can of course take some other action here mail the output from file
fi

exit 0