53e8b80ed3
This patch add a way to choose container engine inside tool and test scripts. This is in preparation for Podman introduction but still leaves Docker as default container engine. Signed-off-by: Martin Hiner <m.hiner@partner.samsung.com> Change-Id: I395d2bdb0dfb4b325b6ad197c8893c8a0f768324
36 lines
1.1 KiB
Bash
Executable File
36 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
ANSIBLE=`find ansible -type f -exec cat {} \; | wc -l`
|
|
DOCKER=`find docker -type f -exec cat {} \; | wc -l`
|
|
PODMAN=`find podman -type f -exec cat {} \; | wc -l`
|
|
DOC=`find doc -type f -exec cat {} \; | wc -l`
|
|
TESTS=`find tests -type f -exec cat {} \; | wc -l`
|
|
BUILD=`find kolla -type f -exec cat {} \; | wc -l`
|
|
|
|
DEMOS=`find contrib/demos -type f -exec cat {} \; | wc -l`
|
|
SPECS=`find specs -type f -exec cat {} \; | wc -l`
|
|
ETC=`find etc -type f -exec cat {} \; | wc -l`
|
|
TOOLS=`find tools -type f -exec cat {} \; | wc -l`
|
|
VAGRANT=`find contrib/dev/vagrant -type f -exec cat {} \; | wc -l`
|
|
|
|
CORE=$(($ANSIBLE+$DOCKER+$PODMAN+$TESTS+$DOCS+$BUILD))
|
|
SUPP=$(($DEMOS+$HEAT+$SPECS+$ETC+$TOOLS+$VAGRANT))
|
|
TOTAL=$(($CORE+$SUPP))
|
|
|
|
|
|
echo "Ansible $ANSIBLE"
|
|
echo "Build $BUILD"
|
|
echo "Demos $DEMOS"
|
|
echo "Doc $DOC"
|
|
echo "Etc $ETC"
|
|
echo "Docker $DOCKER"
|
|
echo "Podman $PODMAN"
|
|
echo "Specs $SPECS"
|
|
echo "Tests $TESTS"
|
|
echo "Tools $TOOLS"
|
|
echo "Vagrant $VAGRANT"
|
|
echo ""
|
|
echo "Core Code $CORE"
|
|
echo "Support Code $SUPP"
|
|
echo "Total Code $TOTAL"
|