]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - tests/tools/wordlist-cdb-t
Separate krb5-strength-wordlist filtering to another test
[kerberos/krb5-strength.git] / tests / tools / wordlist-cdb-t
index d6fde6a26d7e3781ddb75630880224c50474cabf..32a69992dd4c548aff02022053158556724ec97e 100755 (executable)
@@ -17,7 +17,7 @@ if ! command -v cdb >/dev/null 2>&1 ; then
 fi
 
 # Output the test plan.
-plan 20
+plan 18
 
 # Create a temporary directory and wordlist and ensure it's writable.
 tmpdir=`test_tmpdir`
@@ -84,14 +84,6 @@ ok_program 'Database still contains happenstance' 0 '1' \
 ok_program 'Database does not contain password' 100 '' \
     cdb -q "$tmpdir/wordlist.cdb" password
 
-# Try filtering the wordlist into a new wordlist.
-ok_program 'Wordlist filtering' 0 '' \
-    "$makelist" -a -x '.*d' -l 8 -o "$tmpdir/wordlist.new" "$tmpdir/wordlist"
-( echo 'bitterbane'; echo 'happenstance' ) > "$tmpdir/wordlist.expected"
-ok_program 'Filtered wordlist is correct' 0 '' \
-    cmp "$tmpdir/wordlist.expected" "$tmpdir/wordlist.new"
-rm -f "$tmpdir/wordlist.expected" "$tmpdir/wordlist.new"
-
 # Clean up.
 rm -f "$tmpdir/wordlist.cdb"
 rm -f "$tmpdir/wordlist"