uvg266/tests/test_external_symbols.sh
Jan Beich 0280871287 tests: convert scripts to POSIX shell
$ gmake check VERBOSE=1
[...]
FAIL: test_external_symbols.bash
================================

../build-aux/test-driver: ./test_external_symbols.bash: not found
FAIL test_external_symbols.bash (exit status: 127)

FAIL: test_gop.bash
===================

../build-aux/test-driver: ./test_gop.bash: not found
FAIL test_gop.bash (exit status: 127)
[...]
2017-06-28 05:22:46 +00:00

11 lines
267 B
Bash
Executable file

#!/bin/sh
# Check for external symbols without kvz_ prefix.
set -eu${BASH+o pipefail}
if nm -go --defined-only ../src/.libs/libkvazaar.a | grep -v ' kvz_'; then
printf '%s\n' 'Only symbols prefixed with "kvz_" should be exported from libkvazaar.'
false
fi