MT#16391 Initial autopkgtest test

Make sure ngcpcfg binary is available and installed
appropriately for execution.

Provide placeholder files for the configuration files
that are needed for ngcpcfg execution.

This serves as a starting point for further system tests
during Debian package build time.

Change-Id: I70dca5e4bed6a896f31c3a3eb909da17e496fc92
changes/22/13422/12
Michael Prokop 9 years ago
parent e5a1c0d3fe
commit 8a6053a104

@ -0,0 +1,21 @@
#!/bin/sh
set -eu
if ! ngcpcfg 2>&1 | grep -q 'Error: Configuration file' ; then
echo "Error: ngcpcfg doesn't detect missing configuration file(s)." >&2
ngcpcfg
exit 1
fi
touch /etc/ngcp-config/config.yml
touch /etc/ngcp-config/constants.yml
touch /etc/ngcp-config/network.yml
mkdir /etc/ngcp-config/templates
if ! ngcpcfg 2>&1 | grep -q 'Usage: ngcpcfg' ; then
echo "ngcpcfg usage information not displayed:" >&2
ngcpcfg
exit 1
fi

@ -0,0 +1 @@
Tests: basic-binary
Loading…
Cancel
Save