Lines Matching +full:test +full:- +full:sequencer
2 * lws-unit-tests-smtp-client
4 * Written in 2010-2019 by Andy Green <andy@warmcat.com>
27 * The test helper calls this on the instance it created to prepare it for
28 * the test. In our case, we need to queue up a test email to send on the
44 email->data = NULL /* email specific user data */; in smtp_test_instance_init()
45 email->email_from = "noreply@warmcat.com"; in smtp_test_instance_init()
46 email->email_to = "andy@warmcat.com"; in smtp_test_instance_init()
47 email->payload = (void *)&email[1]; in smtp_test_instance_init()
49 lws_snprintf((char *)email->payload, 2048, in smtp_test_instance_init()
52 "Subject: Test email for lws smtp-client\n" in smtp_test_instance_init()
54 "Hello this was an api test for lws smtp-client\n" in smtp_test_instance_init()
56 email->done = email_sent_or_failed; in smtp_test_instance_init()
69 * test vector sent to protocol
70 * test vector received from protocol
78 "HELO lws-test-client\x0a",
104 "Subject: Test email for lws smtp-client\n"
106 "Hello this was an api test for lws smtp-client\n"
132 "HELO lws-test-client\x0a",
168 .u = { .value = "lws-test-client" },
194 if ((p = lws_cmdline_option(argc, argv, "-d"))) in main()
223 /* configure the test sequencer */ in main()
235 lwsl_err("%s: failed to create test sequencer\n", __func__); in main()
244 /* describe the overall test results */ in main()
247 count_tests - count_passes); in main()
249 lwsl_user(" test %d: %s\n", n, in main()