3 # This tests checks that the libjansson.so exports the correct
6 # The list of symbols that the shared object should export
7 sort >$test_log/exports <<EOF
16 json_string_set_nocheck
37 json_object_set_new_nocheck
45 json_object_iter_value
46 json_object_iter_set_new
47 json_object_key_to_iter
68 # The list of functions are not exported in the library because they
69 # are macros or static inline functions. This is only the make the
70 # list complete, there are not used by the test.
71 sort >$test_log/macros_or_inline <<EOF
90 json_object_set_nocheck
93 SOFILE="../src/.libs/libjansson.so"
95 nm -D $SOFILE >/dev/null >$test_log/symbols 2>/dev/null \
96 || exit 77 # Skip if "nm -D" doesn't seem to work
98 grep ' T ' $test_log/symbols | cut -d' ' -f3 | sort >$test_log/output
100 if ! cmp -s $test_log/exports $test_log/output; then
101 diff -u $test_log/exports $test_log/output >&2