summaryrefslogtreecommitdiffstats
path: root/kud/tests/_common_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'kud/tests/_common_test.sh')
-rwxr-xr-xkud/tests/_common_test.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/kud/tests/_common_test.sh b/kud/tests/_common_test.sh
index 1c6af678..32781e18 100755
--- a/kud/tests/_common_test.sh
+++ b/kud/tests/_common_test.sh
@@ -22,6 +22,16 @@ function install_deps {
fi
}
+# install_ipcalc() - Install ipcalc for tests
+function install_ipcalc {
+ if ! $(ipcalc --version &>/dev/null); then
+ function ipcalc_ubuntu_deps {
+ sudo apt-get install -y ipcalc
+ }
+ install_packages "" ipcalc_ubuntu_deps ""
+ fi
+}
+
# install_ovn_deps() - Install dependencies required for tests that require OVN
function install_ovn_deps {
if ! $(yq --version &>/dev/null); then