responder_socket_access-tests.c revision 6b57784f0f175275fd900eca21c77415e3a5ea52
/*
SSSD - Test for routine to check to access to responder sockets
Authors:
Sumit Bose <sbose@redhat.com>
Copyright (C) 2012 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 <popt.h>
#include <check.h>
#include <string.h>
#include "responder/common/responder.h"
struct cli_protocol_version *register_cli_protocol_version(void)
{
static struct cli_protocol_version responder_test_cli_protocol_version[] = {
};
}
struct s2a_data {
const char *inp;
int exp_ret;
};
};
{
int ret;
size_t c;
size_t d;
"csv_string_to_uid_array failed [%d][%s].", ret,
if (ret == 0) {
"Wrong number of values, expected [%d], got [%d].",
"Wrong value, expected [%d], got [%d].\n",
}
}
}
}
struct uid_check_data {
int exp_ret;
};
struct uid_check_data uid_check_data[] = {
{0, 0, NULL, -1}
};
{
int ret;
size_t c;
}
}
Suite *responder_test_suite(void)
{
suite_add_tcase(s, tc_utils);
return s;
}
{
int opt;
int number_failed;
struct poptOption long_options[] = {
};
/* Set debug level to invalid value so we can deside if -d 0 was used. */
switch(opt) {
default:
return 1;
}
}
Suite *s = responder_test_suite();
/* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */
srunner_free (sr);
}