Blame tests/alt-is-meta.in
|
Packit Service |
50ad14 |
#!/bin/sh -efu
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
cwd="$(readlink -ev "${0%/*}")"
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
cd "$cwd"
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
rc=0
|
|
Packit Service |
50ad14 |
temp="$(mktemp "@BUILDDIR@/temp.XXXXXXXXX")"
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
./libkeymap-showmaps "@DATADIR@"/alt-is-meta.map > "$temp" || rc=$?
|
|
Packit Service |
50ad14 |
cmp -s "@DATADIR@//alt-is-meta.output" "$temp" || rc=$?
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
if [ "$rc" != 0 ]; then
|
|
Packit Service |
50ad14 |
printf 'failed\n'
|
|
Packit Service |
50ad14 |
else
|
|
Packit Service |
50ad14 |
rm -f -- "$temp"
|
|
Packit Service |
50ad14 |
fi
|
|
Packit Service |
50ad14 |
|
|
Packit Service |
50ad14 |
exit $rc
|