int main() { slog_init(NULL, 18); struct aura_node *n = aura_open("nmc", "./aura-test.abs"); if (!n) { slog(0, SLOG_ERROR, "Failed to open node"); exit(1); } aura_wait_status(n, AURA_STATUS_ONLINE); test_u32(n); test_u64(n); test_u32u32(n); test_bin(n); test_buf(n); aura_close(n); return 0; }
static int test_bins(void) { plan(96); header(); test_bin(0x01); test_bin(0x1e); test_bin(0x1f); test_bin(0x20); test_bin(0xfe); test_bin(0xff); test_bin(0x100); test_bin(0x101); test_bin(0xfffe); test_bin(0xffff); test_bin(0x10000); test_bin(0x10001); footer(); return check_plan(); }