CI: Remove macros for utest

pull/1651/head
winlin 6 years ago
parent bfeea72eac
commit 8c9857ff6f

@ -33,33 +33,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#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.
#define VOID

@ -84,8 +84,6 @@ srs_error_t MockSrsConfig::parse(string buf)
return err;
}
#ifdef ENABLE_UTEST_CONFIG
VOID TEST(ConfigTest, CheckMacros)
{
#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{}}"));
}
#endif

@ -22,8 +22,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <srs_utest_core.hpp>
#ifdef ENABLE_UTEST_CORE
using namespace std;
#include <srs_core_autofree.hpp>
@ -66,5 +64,3 @@ VOID TEST(CoreMacroseTest, Check)
#endif
}
#endif

@ -220,8 +220,6 @@ srs_error_t MockSrsCodec::decode(SrsBuffer* /*buf*/)
return srs_success;
}
#ifdef ENABLE_UTEST_KERNEL
VOID TEST(KernelBufferTest, DefaultObject)
{
SrsSimpleStream b;
@ -2167,5 +2165,3 @@ VOID TEST(KernelUtility, RTMPUtils2)
}
}
#endif

@ -275,8 +275,6 @@ MockWallClock* MockWallClock::set_clock(int64_t ms)
return this;
}
#ifdef ENABLE_UTEST_PROTOCOL
// verify the sha256
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;
}
#ifdef ENABLE_UTEST_RELOAD
VOID TEST(ConfigReloadTest, ReloadEmpty)
{
MockReloadHandler handler;
@ -920,5 +918,3 @@ VOID TEST(ConfigReloadTest, ReloadVhostIngestUpdated)
handler.reset();
}
#endif

Loading…
Cancel
Save