test-sdp 133 SDP qualification test cases
test-uuid 30 UUID conversion handling
test-mgmt 2 Management interface handling
-test-crypto 6 Cryptographic toolbox helpers
+test-crypto 4 Cryptographic toolbox helpers
test-textfile 4 Old textfile storage format
test-ringbuf 3 Ring buffer functionality
test-queue 1 Queue handling functionality
test-gobex-transfer 36 OBEX transfer handling
test-gdbus-client 12 D-Bus client handling
-----
- 520
+ 518
Automated end-to-end testing
.t = t_msg_4
};
-static void test_start(void)
-{
- crypto = bt_crypto_new();
- g_assert(crypto);
-}
-
static void print_buf(const uint8_t *t, uint8_t len)
{
int i;
g_assert(result_compare(d->t, t));
}
-static void test_stop(void)
-{
- bt_crypto_unref(crypto);
-}
-
int main(int argc, char *argv[])
{
+ int exit_status;
+
+ crypto = bt_crypto_new();
+ if (!crypto)
+ return 0;
+
g_test_init(&argc, &argv, NULL);
- g_test_add_func("/crypto/start", test_start);
g_test_add_data_func("/crypto/sign_att_1", &test_data_1, test_sign);
g_test_add_data_func("/crypto/sign_att_2", &test_data_2, test_sign);
g_test_add_data_func("/crypto/sign_att_3", &test_data_3, test_sign);
g_test_add_data_func("/crypto/sign_att_4", &test_data_4, test_sign);
- g_test_add_func("/crypto/stop", test_stop);
- return g_test_run();
+ exit_status = g_test_run();
+
+ bt_crypto_unref(crypto);
+
+ return exit_status;
}