On 2022-08-11 Niels Möller <nisse-samgb31n2u5icsjq0eh...@public.gmane.org> wrote: > Simon Josefsson <si...@josefsson.org> writes:
> > According to the nettle version > > script, internal symbols are exported for self-testing, but I believe it > > should be possible to split up testing into two different ways: 1) write > > self-tests against public APIs, > I think most current tests are of this kind, or can easily be converted > to this kind. But identifying any exceptions needs some investigation. Afaict almost all tests use internal symbols: (sid)ametzler@argenau:/tmp/NETTLE/nettle-3.8.1$ for i in testsuite/*-test ; do if objdump -R $i | grep -q -E 'HOGWEED_INTERNAL|NETTLE_INTERNAL' ; then echo yes ; else echo no ; fi ; done | sort | uniq --count objdump: testsuite/nettle-pbkdf2-test: file format not recognized objdump: testsuite/pkcs1-conv-test: file format not recognized objdump: testsuite/sexp-conv-test: file format not recognized objdump: testsuite/symbols-test: file format not recognized 5 no 109 yes cu Andreas _______________________________________________ nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se