waf: Change the test configure check for libdebugger to it's lib

- Add support for a 'test-if-library'

- Use rtems_waf's 'test_application()' fragment in the check_cc
  call

Closes #3948
This commit is contained in:
Chris Johns
2020-03-05 21:18:05 +11:00
parent 2b9172c9d4
commit 3cc039cdac
3 changed files with 50 additions and 12 deletions

View File

@@ -5105,8 +5105,8 @@ class tests(builder.Module):
self.addTest(mm.generator['test']('termios06', ['test_main',
'../termios/test_termios_driver',
'../termios/test_termios_utilities']))
self.addTest(mm.generator['test-if-header']('debugger01', 'rtems/rtems-debugger.h',
['test_main'], runTest = False, netTest = True,
self.addTest(mm.generator['test-if-library']('debugger01', 'debugger',
['test_main'], runTest = False, netTest = True,
extraLibs = ['debugger']))
self.addTest(mm.generator['test']('crypto01', ['test_main']))
self.addTest(mm.generator['test']('ipsec01', ['test_main']))