summaryrefslogtreecommitdiff
path: root/debian/tests/test-keymaps
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/test-keymaps')
-rwxr-xr-xdebian/tests/test-keymaps12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/tests/test-keymaps b/debian/tests/test-keymaps
new file mode 100755
index 0000000..fcf515d
--- /dev/null
+++ b/debian/tests/test-keymaps
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# Run this within a pbuilder chroot, etc, within X;
+# It will trash the current setup!
+
+set -e
+
+dumpkeys > /tmp/keymap-backup
+
+find /usr/share/keymaps/ -type f -exec loadkeys {} \;
+
+loadkeys /tmp/keymap-backup