krb5_utils-tests.c revision 9fb59763bce293c2490e0b9f8e97bb1f74ba0910
/*
SSSD
Kerberos 5 Backend Module -- Utilities tests
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2009 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdlib.h>
#include <check.h>
#include "providers/krb5/krb5_utils.h"
#include "providers/krb5/krb5_auth.h"
#define USERNAME "testuser"
#define UID "12345"
#define PRINCIPLE_NAME "testuser@EXAMPLE.COM"
#define REALM "REALM.ORG"
#define HOME_DIRECTORY "/home/testuser"
#define CCACHE_DIR "/var/tmp"
#define PID "4321"
extern struct dp_option default_krb5_opts[];
struct krb5child_req *kr;
void setup_talloc_context(void)
{
int ret;
int i;
for (i = 0; i < KRB5_OPTS; i++) {
}
}
void free_talloc_context(void)
{
int ret;
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
"Expansion failed, result [%s], expected [%s].",
}
{
char *result;
}
{
char *test_template = NULL;
char *result;
}
{
const char *test_template = BASE;
char *result;
"Expansion failed, result [%s], expected [%s].",
}
Suite *krb5_utils_suite (void)
{
return s;
}
int main(void)
{
int number_failed;
Suite *s = krb5_utils_suite ();
/* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */
srunner_free (sr);
}