diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-09-24 12:20:17 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-09-24 15:00:18 -0400 |
commit | 620275cd43e237ab273b726b2aee0ae729587772 (patch) | |
tree | ebad0dbaf7e0aab45f28f3610ef28efe78f70fd4 /src/lib/krb5/ccache/t_cccol.py | |
parent | ee61e4adf18c6f032b7ab2fa790fb261cfc4105c (diff) | |
download | krb5-620275cd43e237ab273b726b2aee0ae729587772.zip krb5-620275cd43e237ab273b726b2aee0ae729587772.tar.gz krb5-620275cd43e237ab273b726b2aee0ae729587772.tar.bz2 |
Add ccache collection tests using API
Create a new test program in lib/krb5/ccache named t_cccol.c which
verifies collection semantics using the API. Run it with an empty DIR
collection in t_cccol.py.
Diffstat (limited to 'src/lib/krb5/ccache/t_cccol.py')
-rw-r--r-- | src/lib/krb5/ccache/t_cccol.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/krb5/ccache/t_cccol.py b/src/lib/krb5/ccache/t_cccol.py index f0792e9..8b70470 100644 --- a/src/lib/krb5/ccache/t_cccol.py +++ b/src/lib/krb5/ccache/t_cccol.py @@ -1,6 +1,12 @@ #!/usr/bin/python from k5test import * +# Run the collection test program against each collection-enabled type. +realm = K5Realm(create_kdb=False) +realm.run(['./t_cccol', 'DIR:' + os.path.join(realm.testdir, 'cc')]) +realm.stop() + +# Test cursor semantics using real ccaches. realm = K5Realm(create_host=False) realm.addprinc('alice', password('alice')) |