libtpms/tests
orbea 0c2bc32a21 tests: Fix the build with slibtool
When building the tests with `make check` and slibtool the tests will
then all fail to load libtpms.so.0.

  $ ./base64decode
  /tmp/libtpms/tests/.libs/base64decode: error while loading shared libraries: libtpms.so.0: cannot open shared object file: No such file or directory

This happens because they are linked with -ltpms rather than the
libtpms.la file which has unexpected results with slibtool. GNU libtool
does some magic to make this work while slibtool fails to link the
dependency.

The correct way to link internal dependencies is directly with the
libtool archive (.la) files where the -lfoo linker flags should be only
used with external dependencies. Additionally -no-undefined is added to
the LDFLAGS to ensure there aren't undefined references in the future.

Note:

* This doesn't happen if libtpms is installed to the system and the tests
  find the already installs libtpms rather than the newly built library.

* GNU libtool silently ignores -no-undefined, but slibtool will respect
  it.

Signed-off-by: orbea <orbea@riseup.net>
2022-07-16 22:32:30 -04:00
..
corpus-execute-command tests: add an initial corpus for fuzzing 2018-06-15 18:07:49 -04:00
base64decode.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
base64decode.sh tests: run a lot less tests in base64decode.sh 2019-05-07 16:01:48 -04:00
common tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
freebl_sha1flattensize.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
fuzz-main.c fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
fuzz.cc tests: fuzz: Store initialized permall state blob 2021-07-22 22:23:16 -04:00
fuzz.sh tests: Restrict number of command line parameters to fuzz 2019-05-07 16:01:48 -04:00
Makefile.am tests: Fix the build with slibtool 2022-07-16 22:32:30 -04:00
nvram_offsets.c Fix many misspellings 2021-03-02 08:20:25 -05:00
oss-fuzz.sh fuzz: better oss-fuzz integration 2019-04-01 11:22:03 -04:00
run-fuzzer.sh build-sys: don't tweak LD_LIBRARY_PATH 2019-04-16 07:17:53 -04:00
tpm2_createprimary.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
tpm2_createprimary.sh tests: Fix outdated output of expected file size in case of error 2022-07-12 11:30:53 -04:00
tpm2_pcr_read.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
tpm2_pcr_read.sh tests: Fix outdated output of expected file size in case of error 2022-07-12 11:30:53 -04:00
tpm2_selftest.c tests: Add license identifier to test cases 2022-07-12 11:30:53 -04:00
tpm2_selftest.sh tests: Fix outdated output of expected file size in case of error 2022-07-12 11:30:53 -04:00