mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
CI: Remove macros for utest
This commit is contained in:
parent
bfeea72eac
commit
8c9857ff6f
6 changed files with 0 additions and 47 deletions
|
@ -33,33 +33,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
#include <srs_app_log.hpp>
|
#include <srs_app_log.hpp>
|
||||||
|
|
||||||
#define SRS_UTEST_DEV
|
|
||||||
#undef SRS_UTEST_DEV
|
|
||||||
|
|
||||||
// enable all utest.
|
|
||||||
#ifndef SRS_UTEST_DEV
|
|
||||||
#define ENABLE_UTEST_AMF0
|
|
||||||
#define ENABLE_UTEST_CONFIG
|
|
||||||
#define ENABLE_UTEST_CORE
|
|
||||||
#define ENABLE_UTEST_KERNEL
|
|
||||||
#define ENABLE_UTEST_PROTOCOL
|
|
||||||
#define ENABLE_UTEST_RELOAD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// disable some for fast dev, compile and startup.
|
|
||||||
#ifdef SRS_UTEST_DEV
|
|
||||||
#undef ENABLE_UTEST_AMF0
|
|
||||||
#undef ENABLE_UTEST_CONFIG
|
|
||||||
#undef ENABLE_UTEST_CORE
|
|
||||||
#undef ENABLE_UTEST_KERNEL
|
|
||||||
#undef ENABLE_UTEST_PROTOCOL
|
|
||||||
#undef ENABLE_UTEST_RELOAD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SRS_UTEST_DEV
|
|
||||||
#define ENABLE_UTEST_RELOAD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// we add an empty macro for upp to show the smart tips.
|
// we add an empty macro for upp to show the smart tips.
|
||||||
#define VOID
|
#define VOID
|
||||||
|
|
||||||
|
|
|
@ -84,8 +84,6 @@ srs_error_t MockSrsConfig::parse(string buf)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_UTEST_CONFIG
|
|
||||||
|
|
||||||
VOID TEST(ConfigTest, CheckMacros)
|
VOID TEST(ConfigTest, CheckMacros)
|
||||||
{
|
{
|
||||||
#ifndef SRS_CONSTS_LOCALHOST
|
#ifndef SRS_CONSTS_LOCALHOST
|
||||||
|
@ -1806,5 +1804,3 @@ VOID TEST(ConfigMainTest, CheckConf_vhost_ingest_id)
|
||||||
EXPECT_TRUE(ERROR_SUCCESS != conf.parse(_MIN_OK_CONF"vhost v{ingest{} ingest{}}"));
|
EXPECT_TRUE(ERROR_SUCCESS != conf.parse(_MIN_OK_CONF"vhost v{ingest{} ingest{}}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include <srs_utest_core.hpp>
|
#include <srs_utest_core.hpp>
|
||||||
|
|
||||||
#ifdef ENABLE_UTEST_CORE
|
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#include <srs_core_autofree.hpp>
|
#include <srs_core_autofree.hpp>
|
||||||
|
@ -66,5 +64,3 @@ VOID TEST(CoreMacroseTest, Check)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -220,8 +220,6 @@ srs_error_t MockSrsCodec::decode(SrsBuffer* /*buf*/)
|
||||||
return srs_success;
|
return srs_success;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_UTEST_KERNEL
|
|
||||||
|
|
||||||
VOID TEST(KernelBufferTest, DefaultObject)
|
VOID TEST(KernelBufferTest, DefaultObject)
|
||||||
{
|
{
|
||||||
SrsSimpleStream b;
|
SrsSimpleStream b;
|
||||||
|
@ -2167,5 +2165,3 @@ VOID TEST(KernelUtility, RTMPUtils2)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -275,8 +275,6 @@ MockWallClock* MockWallClock::set_clock(int64_t ms)
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_UTEST_PROTOCOL
|
|
||||||
|
|
||||||
// verify the sha256
|
// verify the sha256
|
||||||
VOID TEST(ProtocolHandshakeTest, OpensslSha256)
|
VOID TEST(ProtocolHandshakeTest, OpensslSha256)
|
||||||
{
|
{
|
||||||
|
@ -6004,5 +6002,3 @@ VOID TEST(ProtocolKbpsTest, RAWStatistic)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
|
@ -299,8 +299,6 @@ srs_error_t MockSrsReloadConfig::do_reload(string buf)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_UTEST_RELOAD
|
|
||||||
|
|
||||||
VOID TEST(ConfigReloadTest, ReloadEmpty)
|
VOID TEST(ConfigReloadTest, ReloadEmpty)
|
||||||
{
|
{
|
||||||
MockReloadHandler handler;
|
MockReloadHandler handler;
|
||||||
|
@ -920,5 +918,3 @@ VOID TEST(ConfigReloadTest, ReloadVhostIngestUpdated)
|
||||||
handler.reset();
|
handler.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue