Page MenuHomeDevCentral

run_test_dns_zones.sh
No OneTemporary

run_test_dns_zones.sh

#!/bin/sh
# -------------------------------------------------------------
# Run roles/python/dns/test_dns_zones.py if kzonecheck exists
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# Description: Avoid to maintain both BSD and GNU Makefile
# for conditional logic .ifdef vs .if defined
# License: BSD-2-Clause
# -------------------------------------------------------------
KZONECHECK=kzonecheck
# -------------------------------------------------------------
# Program check
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if ! command -v $KZONECHECK > /dev/null; then
echo "[WARNING] [SKIP] Skip testing roles/dns: kzonecheck missing" >&2
exit 0
fi
# -------------------------------------------------------------
# Run test
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PYTHONPATH="$(pwd)"
export PYTHONPATH
python roles/python/dns/test_dns_zones.py

File Metadata

Mime Type
text/x-shellscript
Expires
Fri, Nov 6, 23:58 (12 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4168517
Default Alt Text
run_test_dns_zones.sh (1002 B)

Event Timeline