#!/bin/sh # This tests checks that the libjansson.so exports the correct # symbols. # The list of symbols that the shared object should export sort >$test_log/exports <$test_log/macros_or_inline </dev/null >$test_log/symbols 2>/dev/null \ || exit 77 # Skip if "nm -D" doesn't seem to work grep ' T ' $test_log/symbols | cut -d' ' -f3 | sort >$test_log/output if ! cmp -s $test_log/exports $test_log/output; then diff -u $test_log/exports $test_log/output >&2 exit 1 fi