mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
Ensure the tests in the local `logging` crate are run for all consumers of it. Additionally, add a new test which checks that output is generated by a range of different log level `slog` macros. This is designed to ensure debug level output is always available for the consumers of the `logging` crate. Fixes: #2969. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
19 lines
539 B
Makefile
19 lines
539 B
Makefile
# Copyright (c) 2021 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# It is not necessary to have a build target as this crate is built
|
|
# automatically by the consumers of it.
|
|
#
|
|
# However, it is essential that the crate be tested.
|
|
default: test
|
|
|
|
# It is essential to run these tests using *both* build profiles.
|
|
# See the `test_logger_levels()` test for further information.
|
|
test:
|
|
@echo "INFO: testing log levels for development build"
|
|
@cargo test
|
|
@echo "INFO: testing log levels for release build"
|
|
@cargo test --release
|