Imported Upstream version 2.0.90
[platform/upstream/kbd.git] / tests / dumpkeys-mktable.in
1 #!/bin/sh -efu
2
3 cwd="$(readlink -ev "${0%/*}")"
4
5 cd "$cwd"
6
7 rc=0
8 temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
9
10 ./libkeymap-mktable "@DATADIR@/"../data/keymaps/i386/qwerty/defkeymap.map > "$temp" || rc=$?
11 cmp -s "@DATADIR@/data/dumpkeys-mktable/defkeymap.c" "$temp" || rc=$?
12
13 if [ "$rc" != 0 ]; then
14         printf 'failed\n'
15 else
16         rm -f -- "$temp"
17 fi
18
19 exit $rc