contrib: Add test for ELF symbol-check

Check both failure cases:
- Use a glibc symbol from a version that is too new
- Use a symbol from a library that is not in the allowlist

And also check a conforming binary.

Adding a similar check for Windows PE can be done in a separate PR.
This commit is contained in:
Wladimir J. van der Laan
2020-11-24 13:02:08 +01:00
parent 0918eb49d5
commit 5bab08df17
3 changed files with 91 additions and 0 deletions

View File

@@ -359,4 +359,5 @@ if TARGET_WINDOWS
endif
if TARGET_LINUX
$(AM_V_at) $(PYTHON) $(top_srcdir)/contrib/devtools/test-security-check.py TestSecurityChecks.test_ELF
$(AM_V_at) $(PYTHON) $(top_srcdir)/contrib/devtools/test-symbol-check.py TestSymbolChecks.test_ELF
endif