sbus_codegen_tests.c revision a8f6a9dd171f89ecfb41822901805b5c73b5ea77
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin sbus_codegen tests.
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin Stef Walter <stefw@redhat.com>
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin Copyright (C) Red Hat, Inc 2014
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen This program is free software; you can redistribute it and/or modify
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen it under the terms of the GNU General Public License as published by
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen the Free Software Foundation; either version 3 of the License, or
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen (at your option) any later version.
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin This program is distributed in the hope that it will be useful,
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin but WITHOUT ANY WARRANTY; without even the implied warranty of
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin GNU General Public License for more details.
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin You should have received a copy of the GNU General Public License
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin along with this program. If not, see <http://www.gnu.org/licenses/>.
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrinstatic const struct sbus_arg_meta *
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin const char *name)
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh ck_assert_str_eq(com_planetexpress_Ship_meta.name, "com.planetexpress.Ship");
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin ck_assert(com_planetexpress_Ship_meta.methods != NULL);
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin ck_assert(com_planetexpress_Ship_meta.signals != NULL);
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin ck_assert(com_planetexpress_Ship_meta.properties != NULL);
727872d18412fc021f03969b8641810d8896820bhumbedooh /* Explicit C Symbol */
0d0ba3a410038e179b695446bb149cce6264e0abnd ck_assert_str_eq(test_pilot_meta.name, "com.planetexpress.Pilot");
727872d18412fc021f03969b8641810d8896820bhumbedooh ck_assert(test_pilot_meta.methods == NULL); /* no methods */
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh ck_assert(test_pilot_meta.signals == NULL); /* no signals */
727872d18412fc021f03969b8641810d8896820bhumbedooh method = sbus_meta_find_method(&com_planetexpress_Ship_meta, "MoveUniverse");
{ &com_planetexpress_Ship_meta, 0 },
/* constants for com.planetexpress.Pilot */
int opt;
int failure_count;
switch (opt) {