mirror of
https://github.com/openharmony/kernel_linux_build.git
synced 2026-07-19 16:24:25 -04:00
937dc2a4a1
Signed-off-by: gc1202 <gaochao49@huawei.com>
50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
#!/bin/sh
|
|
################################################################################
|
|
#
|
|
# Copyright (C) 2022 Huawei Device Co., Ltd.
|
|
# SPDX-License-Identifier: GPL-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.
|
|
#
|
|
################################################################################
|
|
# File: libapi.sh
|
|
#
|
|
# Description: shell library api for linuxkerneltest
|
|
#
|
|
# Authors: Ma Feng - mafeng.ma@huawei.com
|
|
#
|
|
# History: Mar 15 2022 - init scripts
|
|
#
|
|
################################################################################
|
|
|
|
print_error()
|
|
{
|
|
echo -e "\033[41m$1\033[0m"
|
|
}
|
|
|
|
print_warn()
|
|
{
|
|
echo -e "\033[43m$1\033[0m"
|
|
}
|
|
|
|
print_pass()
|
|
{
|
|
echo -e "\033[42m$1\033[0m"
|
|
}
|
|
|
|
print_info()
|
|
{
|
|
echo -e "\033[37m$1\033[0m"
|
|
}
|
|
|
|
print_deg()
|
|
{
|
|
if [ $DEBUG -eq 1 ]; then
|
|
echo -e "\033[1;33m$1\033[0m"
|
|
fi
|
|
}
|