Remove geometry support, again
[platform/upstream/libxkbcommon.git] / test / namescomp.sh
1 #!/bin/sh
2
3 srcdir=${srcdir-.}
4 builddir=${builddir-.}
5
6 name=namescomp
7 prog="$builddir/$name$EXEEXT"
8 log="$builddir/$name.log"
9
10 compile()
11 {
12     echo "$prog '$1' '$2' '$3' '$4'" >>"$log"
13     $prog "$1" "$2" "$3" "$4" >>"$log" 2>&1 || exit $?
14 }
15
16 failcompile()
17 {
18     echo "$prog '$1' '$2' '$3' '$4'" >>"$log"
19     if $prog "$1" "$2" "$3" "$4" >>"$log" 2>&1; then
20         exit 1
21     fi
22 }
23
24 rm -f "$log"
25
26 compile "xfree86+aliases(qwertz)" "complete" "complete" "pc+de"
27 compile "xfree86+aliases(qwerty)" "complete" "complete" "pc+us"
28 compile "xfree86+aliases(qwertz)" "complete" "complete" \
29     "pc+de+level3(ralt_switch_for_alts_toggle)+group(alts_toggle)"
30
31 failcompile "" "" "" ""
32 failcompile "xfree86+aliases(qwerty)" "" "" ""
33 failcompile "xfree86+aliases(qwertz)" "" "" "pc+de"
34 failcompile "xfree86+aliases(qwertz)" "complete" "" "pc+de"
35 failcompile "xfree86+aliases(qwertz)" "" "complete" "pc+de"
36 failcompile "xfree86+aliases(qwertz)" "complete" "complete" ""
37 failcompile "badnames" "complete" "pc+us" "pc(pc101)"