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
Mon, Jun 8, 09:01 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3792552
Default Alt Text
run_test_dns_zones.sh (1002 B)

Event Timeline