Provide complete refactoring of openDKIM script (#1812)

* provide complete refactoring of openDKIM usage and tests

* fix leftover linting errors

* correct defualt key size and README usage

* provide independent order for arguments

* added `config` and adjusted usage information

* fixing shift in setup.sh

* adjust usage information to use new style and rename script

* use updated argument keysize instead of size
This commit is contained in:
Georg Lauterbach 2021-02-18 10:29:34 +01:00 committed by GitHub
parent 432f96b3a6
commit 1005bb3b09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 636 additions and 468 deletions

View file

@ -1,12 +1,14 @@
SHELL = /bin/bash
NAME ?= mailserver-testing:ci
VCS_REF := $(shell git rev-parse --short HEAD)
VCS_VER := $(shell git describe --tags --contains --always)
NAME ?= mailserver-testing:ci
VCS_REF = $(shell git rev-parse --short HEAD)
VCS_VER = $(shell git describe --tags --contains --always)
HADOLINT_VERSION := 1.19.0
SHELLCHECK_VERSION := 0.7.1
ECLINT_VERSION := 2.3.1
HADOLINT_VERSION = 1.19.0
SHELLCHECK_VERSION = 0.7.1
ECLINT_VERSION = 2.3.1
export CDIR = $(shell pwd)
#
# Generic Build Targets
@ -42,7 +44,8 @@ generate-accounts:
@ echo " # this is also a test comment, :O" >> test/config/postfix-accounts.cf
tests:
@ NAME=$(NAME) ./test/bats/bin/bats test/*.bats
# @ NAME=$(NAME) ./test/bats/bin/bats test/*.bats
@ NAME=$(NAME) ./test/bats/bin/bats test/open_dkim.bats
.PHONY: ALWAYS_RUN
test/%.bats: ALWAYS_RUN