提交 e18ed266 authored 作者: José Luis Millán's avatar José Luis Millán

Unit test environment for worker code

fctx library is being used

https://github.com/imb/fctx
上级 54c96d42
......@@ -160,4 +160,15 @@ bool Logger::HasDebugLevel()
MS_ABORT("failed assertion `%s': " desc, #condition, ##__VA_ARGS__); \
}
#ifdef MS_LOG_STD
#undef MS_TRACE
#define MS_TRACE MS_TRACE_STD
#undef MS_DEBUG
#define MS_DEBUG MS_DEBUG_STD
#undef MS_WARN
#define MS_WARN MS_DEBUG_STD
#undef MS_ERROR
#define MS_ERROR MS_ERROR_STD
#endif
#endif
{
'targets':
[
{
'target_name': 'mediasoup-worker',
'target_defaults': {
'type': 'executable',
'dependencies':
[
......@@ -22,7 +19,6 @@
'src/Logger.cpp',
'src/Loop.cpp',
'src/Settings.cpp',
'src/main.cpp',
'src/Channel/Notifier.cpp',
'src/Channel/Request.cpp',
'src/Channel/UnixStreamSocket.cpp',
......@@ -216,6 +212,29 @@
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++11' ]
}
}]
]
},
'targets':
[
{
'target_name': 'mediasoup-worker',
'sources':
[
# C++ source files
'src/main.cpp'
]
},
{
'target_name': 'mediasoup-worker-test',
'defines': ['MS_LOG_STD'],
'sources':
[
# C++ source files
'test/tests.cpp',
'test/test_a.cpp',
'test/test-rtcp.cpp',
# C++ include files
'test/fct.h'
]
}
]
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论