Merge branch 'tmp-tests-cleanup' into 'master'

tests: several cleanups

See merge request openconnect/ocserv!96
This commit is contained in:
Nikos Mavrogiannopoulos
2019-01-30 17:00:55 +00:00
45 changed files with 94 additions and 7 deletions

View File

@@ -66,8 +66,10 @@ Build/Fedora:
stage: testing
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
# ensure gcov scripts are writable
- umask 000
- git submodule update --init && autoreconf -fvi &&
./configure --disable-maintainer-mode --without-docker-tests --with-werror --enable-code-coverage && make -j$(nproc) && make check -j$(nproc)
./configure --disable-maintainer-mode --without-docker-tests --with-werror --enable-code-coverage && make -j$(nproc) && make check -j$(nproc) COVERAGE=1
&& make files-update && make dist && make local-code-coverage-output
tags:
- shared
@@ -190,7 +192,7 @@ pages:
stage: deploy
image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD
script:
mkdir -p public/coverage && make V=1 CODE_COVERAGE_OUTPUT_DIRECTORY=public/coverage CODE_COVERAGE_BRANCH_COVERAGE=1 code-coverage-capture &&
- mkdir -p public/coverage && make V=1 CODE_COVERAGE_OUTPUT_DIRECTORY=public/coverage CODE_COVERAGE_BRANCH_COVERAGE=1 code-coverage-capture &&
make CODE_COVERAGE_OUTPUT_DIRECTORY=public/coverage local-code-coverage-output
tags:
- shared

View File

@@ -49,10 +49,20 @@ update_config() {
file=$1
username=$(whoami)
group=$(groups|cut -f 1 -d ' ')
if test -z "${ISOLATE_WORKERS}";then
if test "${COVERAGE}" = "1";then
ISOLATE_WORKERS=false
else
ISOLATE_WORKERS=true
fi
fi
cp "${srcdir}/data/${file}" "$file.$$.tmp"
sed -i -e 's|@USERNAME@|'${username}'|g' "$file.$$.tmp" \
-e 's|@GROUP@|'${group}'|g' "$file.$$.tmp" \
-e 's|@SRCDIR@|'${srcdir}'|g' "$file.$$.tmp" \
-e 's|@ISOLATE_WORKERS@|'${ISOLATE_WORKERS}'|g' "$file.$$.tmp" \
-e 's|@OTP_FILE@|'${OTP_FILE}'|g' "$file.$$.tmp" \
-e 's|@CRLNAME@|'${CRLNAME}'|g' "$file.$$.tmp" \
-e 's|@PORT@|'${PORT}'|g' "$file.$$.tmp" \

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "certificate"
enable-auth = "plain[passwd=@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,7 +5,7 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = false
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0

View File

@@ -5,7 +5,7 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = false
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0

View File

@@ -5,7 +5,7 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = false
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0
# A banner to be displayed on clients

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[./data/test-group.passwd]"
#auth = "pam"
isolate-workers = false
select-group = group1
select-group = group2

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test-group.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
#auth = "plain[./data/test1.passwd]"
auth = "gssapi"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -6,6 +6,8 @@
auth = "gssapi[require-local-user-map=false]"
enable-auth = certificate
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -6,6 +6,8 @@
auth = "gssapi[require-local-user-map=false]"
enable-auth = "plain[passwd=@SRCDIR@/data/test1.passwd]"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
#auth = "plain[./data/test1.passwd]"
auth = "gssapi[require-local-user-map=false]"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0
# A banner to be displayed on clients

View File

@@ -5,7 +5,7 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = false
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "certificate"
auth = "plain[passwd=@SRCDIR@/data/test-otp.passwd,otp=@OTP_FILE@]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[passwd=@SRCDIR@/data/test-otp.passwd,otp=@OTP_FILE@]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test-pam.passwd]"
acct = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -4,6 +4,8 @@
#auth = "certificate"
auth = "pam[gid-min=1000]"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "plain[passwd=@SRCDIR@/data/test1.passwd]"
enable-auth = "certificate"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0
# A banner to be displayed on clients

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,7 +5,7 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = false
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0

View File

@@ -5,6 +5,8 @@ auth = "certificate"
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[./data/test1.passwd]"
#auth = "pam"
isolate-workers = false
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[@SRCDIR@/data/test-group.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
select-group = group1
select-group = group2

View File

@@ -5,6 +5,8 @@ auth = "certificate"
auth = "plain[@SRCDIR@/data/test-group.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
select-group = group1
select-group = group2

View File

@@ -5,6 +5,8 @@
auth = "plain[passwd=@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -5,6 +5,8 @@
auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
max-ban-score = 0
# A banner to be displayed on clients

View File

@@ -5,6 +5,8 @@ auth = "certificate"
#auth = "plain[@SRCDIR@/data/test1.passwd]"
#auth = "pam"
isolate-workers = @ISOLATE_WORKERS@
# A banner to be displayed on clients
#banner = "Welcome"

View File

@@ -22,6 +22,7 @@ SERV="${SERV:-../src/ocserv}"
srcdir=${srcdir:-.}
NO_NEED_ROOT=1
PORT=4445
ISOLATE_WORKERS=false
. `dirname $0`/common.sh