dsa-test dsa-keygen-test \
yarrow-test
-TS_SH = sexp-conv-test
+TS_SH = sexp-conv-test symbols-test
TS_ALL = $(TS_PROGS) $(TS_SH)
noinst_PROGRAMS = $(TS_PROGS)
+# Workaround to get automake to keep dependencies for testutils.o
+EXTRA_PROGRAMS = testutils
+
# libnettle.a is added at the end to make sure all programs depend on it.
# It seems there's no DEPENDENCIES variable that affects all programs.
LDADD = testutils.o -lnettle ../libnettle.a
-EXTRA_DIST = $(TS_SH) testutils.c testutils.h \
+EXTRA_DIST = $(TS_SH) testutils.h \
run-tests rfc1750.txt
CLEANFILES = test.in test1.out test2.out
--- /dev/null
+#! /bin/sh
+
+# Check that all exported symbols use the nettle prefix.
+
+if [ -z "$srcdir" ] ; then
+ srcdir=`pwd`
+fi
+
+nm ../libnettle.a | grep ' [DRT] ' | egrep -v ' _?nettle_|memxor' \
+ | sort -k3 > test1.out
+
+if [ -s test1.out ] ; then
+ echo Exported symbols lacking the nettle prefix:
+ cat test1.out
+ exit 1
+else
+ exit 0
+fi