mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
Remove svn version build and unittest.
R=harryjin@google.com TBR=harryjin@google.com, kjellander@google.com BUG=libyuv:551 Review URL: https://codereview.chromium.org/1612123002 .
This commit is contained in:
parent
a4288dd6dc
commit
ad71738f6a
@ -70,7 +70,6 @@ set(ly_unittest_sources
|
|||||||
${ly_base_dir}/unit_test/scale_test.cc
|
${ly_base_dir}/unit_test/scale_test.cc
|
||||||
${ly_base_dir}/unit_test/unit_test.cc
|
${ly_base_dir}/unit_test/unit_test.cc
|
||||||
${ly_base_dir}/unit_test/video_common_test.cc
|
${ly_base_dir}/unit_test/video_common_test.cc
|
||||||
${ly_base_dir}/unit_test/version_test.cc
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(ly_header_files
|
set(ly_header_files
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
Name: libyuv
|
Name: libyuv
|
||||||
URL: http://code.google.com/p/libyuv/
|
URL: http://code.google.com/p/libyuv/
|
||||||
Version: 1568
|
Version: 1569
|
||||||
License: BSD
|
License: BSD
|
||||||
License File: LICENSE
|
License File: LICENSE
|
||||||
|
|
||||||
|
|||||||
@ -11,6 +11,6 @@
|
|||||||
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
|
||||||
#define INCLUDE_LIBYUV_VERSION_H_
|
#define INCLUDE_LIBYUV_VERSION_H_
|
||||||
|
|
||||||
#define LIBYUV_VERSION 1568
|
#define LIBYUV_VERSION 1569
|
||||||
|
|
||||||
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
|
||||||
|
|||||||
@ -9,7 +9,6 @@
|
|||||||
{
|
{
|
||||||
'variables': {
|
'variables': {
|
||||||
'libyuv_disable_jpeg%': 0,
|
'libyuv_disable_jpeg%': 0,
|
||||||
'libyuv_enable_svn%': 0,
|
|
||||||
},
|
},
|
||||||
'targets': [
|
'targets': [
|
||||||
{
|
{
|
||||||
@ -54,14 +53,8 @@
|
|||||||
'unit_test/scale_test.cc',
|
'unit_test/scale_test.cc',
|
||||||
'unit_test/unit_test.cc',
|
'unit_test/unit_test.cc',
|
||||||
'unit_test/video_common_test.cc',
|
'unit_test/video_common_test.cc',
|
||||||
'unit_test/version_test.cc',
|
|
||||||
],
|
],
|
||||||
'conditions': [
|
'conditions': [
|
||||||
[ 'libyuv_enable_svn == 1', {
|
|
||||||
'defines': [
|
|
||||||
'LIBYUV_SVNREVISION="<!(svnversion -n)"',
|
|
||||||
],
|
|
||||||
}],
|
|
||||||
['OS=="linux"', {
|
['OS=="linux"', {
|
||||||
'cflags': [
|
'cflags': [
|
||||||
'-fexceptions',
|
'-fexceptions',
|
||||||
|
|||||||
@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2012 The LibYuv Project Authors. All rights reserved.
|
|
||||||
*
|
|
||||||
* Use of this source code is governed by a BSD-style license
|
|
||||||
* that can be found in the LICENSE file in the root of the source
|
|
||||||
* tree. An additional intellectual property rights grant can be found
|
|
||||||
* in the file PATENTS. All contributing project authors may
|
|
||||||
* be found in the AUTHORS file in the root of the source tree.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "libyuv/basic_types.h"
|
|
||||||
#include "libyuv/version.h"
|
|
||||||
#include "../unit_test/unit_test.h"
|
|
||||||
|
|
||||||
namespace libyuv {
|
|
||||||
|
|
||||||
// Tests SVN version against include/libyuv/version.h
|
|
||||||
// SVN version is bumped by documentation changes as well as code.
|
|
||||||
// Although the versions should match, once checked in, a tolerance is allowed.
|
|
||||||
TEST_F(LibYUVBaseTest, DISABLED_TestVersion) {
|
|
||||||
EXPECT_GE(LIBYUV_VERSION, 169); // 169 is first version to support version.
|
|
||||||
printf("LIBYUV_VERSION %d\n", LIBYUV_VERSION);
|
|
||||||
#ifdef LIBYUV_SVNREVISION
|
|
||||||
const char *ver = strchr(LIBYUV_SVNREVISION, ':');
|
|
||||||
if (ver) {
|
|
||||||
++ver;
|
|
||||||
} else {
|
|
||||||
ver = LIBYUV_SVNREVISION;
|
|
||||||
}
|
|
||||||
int svn_revision = atoi(ver); // NOLINT
|
|
||||||
printf("LIBYUV_SVNREVISION %d\n", svn_revision);
|
|
||||||
EXPECT_NEAR(LIBYUV_VERSION, svn_revision, 20); // Allow version to be close.
|
|
||||||
if (LIBYUV_VERSION != svn_revision) {
|
|
||||||
printf("WARNING - Versions do not match.\n");
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
printf("WARNING - SVN Version unavailable. Test not run.\n");
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace libyuv
|
|
||||||
Loading…
x
Reference in New Issue
Block a user