From e59f8320ccfa879164be781bcd792483542eeb97 Mon Sep 17 00:00:00 2001 From: yurkovychv Date: Thu, 6 Feb 2025 18:22:20 +0200 Subject: [PATCH] PMM-13734 add setup scripts --- k8s/setup_bats_libs.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 k8s/setup_bats_libs.sh diff --git a/k8s/setup_bats_libs.sh b/k8s/setup_bats_libs.sh new file mode 100644 index 00000000..28401bfa --- /dev/null +++ b/k8s/setup_bats_libs.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +# Define the directory where the libraries will be cloned +LIBS_DIR="lib" + +# Create the directory if it doesn't exist +mkdir -p $LIBS_DIR + +# Clone bats-support +if [ ! -d "$LIBS_DIR/bats-support" ]; then + git clone https://github.com/bats-core/bats-support.git $LIBS_DIR/bats-support +else + echo "bats-support is already present." +fi + +# Clone bats-assert +if [ ! -d "$LIBS_DIR/bats-assert" ]; then + git clone https://github.com/bats-core/bats-assert.git $LIBS_DIR/bats-assert +else + echo "bats-assert is already present." +fi + +echo "BATS libraries setup completed."