sbus_codegen_tests.c revision fcd8093c58638dc7c4f9cddfc97f273b94ce2ead
/*
SSSD
sbus_codegen tests.
Authors:
Stef Walter <stefw@redhat.com>
Copyright (C) Red Hat, Inc 2014
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 <talloc.h>
#include <tevent.h>
#include <popt.h>
#include "sbus/sssd_dbus_meta.h"
#include "tests/sbus_codegen_tests_generated.h"
static const struct sbus_arg_meta *
const char *name)
{
const struct sbus_arg_meta *arg;
return arg;
}
return NULL;
}
{
/* Explicit C Symbol */
}
{
const struct sbus_method_meta *method;
const struct sbus_arg_meta *arg;
}
{
const struct sbus_property_meta *prop;
}
{
const struct sbus_signal_meta *signal;
const struct sbus_arg_meta *arg;
}
static int
{
/* not called */
return 0;
}
static int
{
/* not called */
return 0;
}
{
struct com_planetexpress_Ship vtable = {
{ &com_planetexpress_Ship_meta, 0 },
};
/*
* These are not silly tests:
* - Will fail compilation if c-symbol name was not respected
* - Will fail if method order was not respected
*/
}
Suite *create_suite(void)
{
/* Do some testing */
/* Add all test cases to the test suite */
suite_add_tcase(s, tc);
return s;
}
{
int opt;
int failure_count;
struct poptOption long_options[] = {
};
switch (opt) {
default:
return 1;
}
}
suite = create_suite();
/* If CK_VERBOSITY is set, use that, otherwise it defaults to CK_NORMAL */
}