Lines Matching defs:usershell
47 struct usershell {
51 DECLARE_TEST_DATA(usershell)
52 DECLARE_TEST_FILE_SNAPSHOT(usershell)
53 DECLARE_2PASS_TEST(usershell)
55 static void clone_usershell(struct usershell *, struct usershell const *);
56 static int compare_usershell(struct usershell *, struct usershell *, void *);
57 static void free_usershell(struct usershell *);
59 static void sdump_usershell(struct usershell *, char *, size_t);
60 static void dump_usershell(struct usershell *);
62 IMPLEMENT_TEST_DATA(usershell)
63 IMPLEMENT_TEST_FILE_SNAPSHOT(usershell)
64 IMPLEMENT_2PASS_TEST(usershell)
67 clone_usershell(struct usershell *dest, struct usershell const *src)
79 compare_usershell(struct usershell *us1, struct usershell *us2,
104 free_usershell(struct usershell *us)
110 sdump_usershell(struct usershell *us, char *buffer, size_t buflen)
116 dump_usershell(struct usershell *us)
127 usershell_read_snapshot_func(struct usershell *us, char *line)
140 struct usershell ushell;
145 TEST_DATA_INIT(usershell, &td, clone_usershell, free_usershell);
146 TEST_DATA_INIT(usershell, &td_snap, clone_usershell, free_usershell);
150 printf("usershell found:\n");
152 TEST_DATA_APPEND(usershell, &td, &ushell);
168 rv = TEST_SNAPSHOT_FILE_READ(usershell, snapshot_file,
179 rv = DO_2PASS_TEST(usershell, &td, &td_snap,
184 rv = TEST_SNAPSHOT_FILE_WRITE(usershell, snapshot_file,
194 TEST_DATA_DESTROY(usershell, &td_snap);
195 TEST_DATA_DESTROY(usershell, &td);