提交 efe3f9b2 编写于 作者: A Aaron Xiao 提交者: Liangliang Zhang

Tools: Add image_decompress test and fix dependency.

上级 3c1b9169
......@@ -2,20 +2,39 @@ load("//tools:cpplint.bzl", "cpplint")
package(default_visibility = ["//visibility:public"])
cc_binary(
name = "libimage_decompress.so",
cc_library(
name = "image_decompress_lib",
srcs = [
"image_decompress.cc",
],
hdrs = [
"image_decompress.h",
],
copts = ['-DMODULE_NAME=\\"image_decompress\\"'],
linkshared = True,
linkstatic = False,
deps = [
"//cyber",
"//modules/drivers/proto:sensor_proto",
"//modules/tools/image_decompress/proto:decompress_proto",
"@opencv2//:core",
"@opencv2//:highgui",
],
)
cc_test(
name = "image_decompress_test",
size = "small",
srcs = ["image_decompress_test.cc"],
deps = [
":image_decompress_lib",
"@gtest//:main",
],
)
cc_binary(
name = "libimage_decompress.so",
linkshared = True,
linkstatic = False,
deps = [":image_decompress_lib"],
)
cpplint()
/******************************************************************************
* Copyright 2019 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*****************************************************************************/
#include "modules/tools/image_decompress/image_decompress.h"
#include "cyber/init.h"
#include "gtest/gtest.h"
namespace apollo {
namespace image_decompress {
TEST(ImageDecompressComponentTest, Init) {
cyber::Init("image_decompress_component_test");
ImageDecompressComponent component;
}
} // namespace image_decompress
} // namespace apollo
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册