- catests = catest_env.Program('catests', ['catests.cpp',
- 'caprotocolmessagetest.cpp',
- 'cablocktransfertest.cpp',
- 'ca_api_unittest.cpp',
- 'camutex_tests.cpp',
- 'uarraylist_test.cpp',
- 'ulinklist_test.cpp',
- 'uqueue_test.cpp'
- ])
-else:
- # Include all unit test files
- catests = catest_env.Program('catests', ['catests.cpp',
- 'caprotocolmessagetest.cpp',
- 'ca_api_unittest.cpp',
- 'camutex_tests.cpp',
- 'uarraylist_test.cpp',
- 'ulinklist_test.cpp',
- 'uqueue_test.cpp'
- ])
+ tests_src = tests_src + ['cablocktransfertest.cpp']
+
+if catest_env.get('SECURED') == '1' and catest_env.get('WITH_TCP') == True:
+ tests_src = tests_src + ['ssladapter_test.cpp']
+
+catests = catest_env.Program('catests', tests_src)