test_responder_common.c revision 4a5cced91df68a85ef0b30de8efe104c8a0aab7a
/*
Authors:
Jakub Hrozek <jhrozek@redhat.com>
Copyright (C) 2014 Red Hat
SSSD tests: User utilities
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 <fcntl.h>
#include <talloc.h>
#include <popt.h>
#include "responder/common/responder.h"
#include "tests/cmocka/common_mock.h"
/* Just to satisfy dependencies */
struct cli_protocol_version *register_cli_protocol_version(void)
{
static struct cli_protocol_version responder_test_cli_protocol_version[] = {
};
}
void test_uid_csv_to_uid_list(void **state)
{
}
void test_name_csv_to_uid_list(void **state)
{
}
void test_csv_to_uid_list_neg(void **state)
{
}
struct create_pipe_ctx {
int fd;
const char *sock_name;
};
void test_create_pipe_fd_setup(void **state)
{
struct create_pipe_ctx *ctx;
}
{
int ret;
int optval;
/* Check existence of the file and the permissions */
assert_int_equal(ret, 0);
/* Check it's a UNIX socket */
assert_int_equal(ret, 0);
assert_int_equal(ret, 0);
/* Make sure this is a listening socket */
assert_int_equal(ret, 0);
/* Check the right protocol */
assert_int_equal(ret, 0);
assert_int_equal(optval, 0);
}
void test_create_pipe_fd(void **state)
{
int ret;
struct create_pipe_ctx *ctx;
/* Make sure we can overwrite an existing socket */
}
void test_create_pipe_fd_teardown(void **state)
{
struct create_pipe_ctx *ctx;
}
}
{
int opt;
struct poptOption long_options[] = {
};
};
/* Set debug level to invalid value so we can deside if -d 0 was used. */
switch(opt) {
default:
return 1;
}
}
}