s3:rpc_client: Implement dcerpc_lsa_open_policy_fallback()
[Samba.git] / source3 / modules / test_vfs_full_audit.c
blob4a12e466ff30e514339052332a174962cb69d0dc
1 /*
2 * Unix SMB/CIFS implementation.
4 * Unit test for entries in vfs_full_audit arrays.
6 * Copyright (C) Jeremy Allison 2020
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
22 /* Needed for static build to complete... */
23 #include "includes.h"
24 #include "smbd/smbd.h"
25 NTSTATUS vfs_full_audit_init(TALLOC_CTX *ctx);
27 #include "vfs_full_audit.c"
28 #include <cmocka.h>
30 static void test_full_audit_array(void **state)
32 unsigned i;
34 for (i=0; i<SMB_VFS_OP_LAST; i++) {
35 assert_non_null(vfs_op_names[i].name);
36 assert_int_equal(vfs_op_names[i].type, i);
40 int main(int argc, char **argv)
42 const struct CMUnitTest tests[] = {
43 cmocka_unit_test(test_full_audit_array),
46 cmocka_set_message_output(CM_OUTPUT_SUBUNIT);
48 return cmocka_run_group_tests(tests, NULL, NULL);