Skip to content

Commit

Permalink
filter_scheme: clean redundant filter scheme scripts
Browse files Browse the repository at this point in the history
Let's clean all duplicated codes and just retain the specific
configuration file.

Fixes: kata-containers#1570

Signed-off-by: Penny Zheng <[email protected]>
  • Loading branch information
Pennyzct committed May 15, 2019
1 parent 5b83a99 commit 29d18e9
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 324 deletions.
54 changes: 0 additions & 54 deletions .ci/aarch64/filter_docker_aarch64.sh

This file was deleted.

36 changes: 0 additions & 36 deletions .ci/aarch64/filter_test_aarch64.sh

This file was deleted.

50 changes: 0 additions & 50 deletions .ci/hypervisors/firecracker/filter_docker_firecracker.sh

This file was deleted.

54 changes: 0 additions & 54 deletions .ci/ppc64le/filter_docker_ppc64le.sh

This file was deleted.

36 changes: 0 additions & 36 deletions .ci/ppc64le/filter_test_ppc64le.sh

This file was deleted.

51 changes: 0 additions & 51 deletions .ci/s390x/filter_docker_s390x.sh

This file was deleted.

33 changes: 0 additions & 33 deletions .ci/s390x/filter_test_s390x.sh

This file was deleted.

12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ UNION := functional debug-console docker crio docker-compose network netmon \
docker-stability oci openshift kubernetes swarm vm-factory \
entropy ramdisk shimv2 tracing

# skipped test suites for docker integration tests
FILTER_FILE = .ci/hypervisors/$(KATA_HYPERVISOR)/filter_docker_$(KATA_HYPERVISOR).sh
# filter scheme script for docker integration test suites
FILTER_FILE = .ci/filter/filter_docker_test.sh

# skipped docker integration tests for Firecraker
# Firecracker configuration file
FIRECRACKER_CONFIG = .ci/hypervisors/firecracker/configuration_firecracker.yaml
ifneq ($(wildcard $(FILTER_FILE)),)
SKIP := $(shell bash -f $(FILTER_FILE))
SKIP_FIRECRACKER := $(shell bash -c '$(FILTER_FILE) $(FIRECRACKER_CONFIG)')
endif

# get arch
Expand Down Expand Up @@ -63,7 +67,7 @@ ifeq ($(RUNTIME),)
endif

ifeq ($(KATA_HYPERVISOR),firecracker)
./ginkgo -failFast -v -focus "${FOCUS}" -skip "${SKIP}" \
./ginkgo -failFast -v -focus "${FOCUS}" -skip "${SKIP_FIRECRACKER}" \
./integration/docker/ -- -runtime=${RUNTIME} -timeout=${TIMEOUT}
else ifeq ($(ARCH),$(filter $(ARCH), aarch64 s390x ppc64le))
./ginkgo -failFast -v -focus "${FOCUS}" -skip "${SKIP}" \
Expand Down
7 changes: 5 additions & 2 deletions arch/aarch64-options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
#
# SPDX-License-Identifier: Apache-2.0

# configuration file
CONFIG := .ci/aarch64/configuration_aarch64.yaml

# union for 'make test'
UNION := $(shell bash -f .ci/aarch64/filter_test_aarch64.sh)
UNION := $(shell bash -c '.ci/filter/filter_test_union.sh $(CONFIG)')

# skiped test suites for docker integration tests
SKIP := $(shell bash -f .ci/aarch64/filter_docker_aarch64.sh)
SKIP := $(shell bash -c '.ci/filter/filter_docker_test.sh $(CONFIG)')
8 changes: 6 additions & 2 deletions arch/ppc64le-options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
#
# SPDX-License-Identifier: Apache-2.0

# configuration file
CONFIG := .ci/ppc64le/configuration_ppc64le.yaml

# union for 'make test'
UNION := $(shell bash -f .ci/ppc64le/filter_test_ppc64le.sh)
UNION := $(shell bash -c '.ci/filter/filter_test_union.sh $(CONFIG)')

# skiped test suites for docker integration tests
SKIP := $(shell bash -f .ci/ppc64le/filter_docker_ppc64le.sh)
SKIP := $(shell bash -c '.ci/filter/filter_docker_test.sh $(CONFIG)')

8 changes: 6 additions & 2 deletions arch/s390x-options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@
#
# SPDX-License-Identifier: Apache-2.0

# configuration file
CONFIG := .ci/s390x/configuration_s390x.yaml

# union for 'make test'
UNION := $(shell bash -f .ci/s390x/filter_test_s390x.sh)
UNION := $(shell bash -c '.ci/filter/filter_test_union.sh $(CONFIG)')

# skiped test suites for docker integration tests
SKIP := $(shell bash -f .ci/s390x/filter_docker_s390x.sh)
SKIP := $(shell bash -c '.ci/filter/filter_docker_test.sh $(CONFIG)')

0 comments on commit 29d18e9

Please sign in to comment.