add tests for pwquality
parent
aa57677a48
commit
9b57198211
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
failed="${failed:-0}"
|
||||
set -x
|
||||
set -e
|
||||
|
||||
TESTING=1
|
||||
|
||||
. ./common.sh
|
||||
. ./back_pwquality.sh
|
||||
|
||||
! _mk_pwquality_conf --minclass STRING 1>/dev/null || failed="$((++failed))"
|
||||
_mk_pwquality_conf --usercheck 1 1>/dev/null || failed="$((++failed))"
|
||||
! _mk_pwquality_conf --enforcing 1 --retry --usersubstr 1>/dev/null || failed="$((++failed))"
|
||||
|
||||
echo "$failed"
|
||||
exit "$failed"
|
Loading…
Reference in New Issue