uvg266/tests/test_external_symbols.bash

11 lines
261 B
Bash
Raw Normal View History

#!/bin/bash
# Check for external symbols without kvz_ prefix.
set -euo 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