mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 12:29:49 +00:00
release: Add tests for tag_repos.sh
- Add tests for release tool tag_repos.sh - Toplevel makefile - Add make test target for CI Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
This commit is contained in:
14
Makefile
Normal file
14
Makefile
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2018 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
MK_DIR :=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||||
|
.PHONY: test test-release-tools
|
||||||
|
|
||||||
|
test: test-release-tools
|
||||||
|
|
||||||
|
test-release-tools:
|
||||||
|
@$(MK_DIR)/release/tag_repos_test.sh
|
22
release/tag_repos_test.sh
Executable file
22
release/tag_repos_test.sh
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
|
||||||
|
echo "Check tag_repos.sh show help"
|
||||||
|
./release/tag_repos.sh | grep Usage
|
||||||
|
|
||||||
|
echo "Check tag_repos.sh -h option"
|
||||||
|
./release/tag_repos.sh -h | grep Usage
|
||||||
|
|
||||||
|
echo "Check tag_repos.sh status"
|
||||||
|
./release/tag_repos.sh status | grep runtime
|
||||||
|
|
||||||
|
echo "Check tag_repos.sh create tags but not push"
|
||||||
|
./release/tag_repos.sh tag | grep "tags not pushed"
|
Reference in New Issue
Block a user