Remove static arrays for keymaps and keys
[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 ../data/keymaps/i386/qwerty/defkeymap.map > "$temp" || rc=$?
11 cmp -s "@DATADIR@/dumpkeys.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