-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.zig
More file actions
46 lines (34 loc) · 1.36 KB
/
tests.zig
File metadata and controls
46 lines (34 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const std = @import("std");
const embed_std = @import("embed_std");
const testing = @import("testing");
const quectel = @import("quectel");
test "quectel/unit/std" {
std.testing.log_level = .info;
var t = testing.T.new(std, .drivers);
defer t.deinit();
t.run("quectel/unit/std", quectel.test_runner.unit.make(std, embed_std.sync.Channel));
if (!t.wait()) return error.TestFailed;
}
test "quectel/unit/embed_std" {
std.testing.log_level = .info;
var t = testing.T.new(embed_std.std, .drivers);
defer t.deinit();
t.run("quectel/unit/embed_std", quectel.test_runner.unit.make(embed_std.std, embed_std.sync.Channel));
if (!t.wait()) return error.TestFailed;
}
test "quectel/integration/std" {
std.testing.log_level = .info;
var t = testing.T.new(std, .drivers);
defer t.deinit();
t.timeout(180 * std.time.ns_per_s);
t.run("quectel/integration/std", quectel.test_runner.integration.make(std, embed_std.sync.Channel));
if (!t.wait()) return error.TestFailed;
}
test "quectel/integration/embed_std" {
std.testing.log_level = .info;
var t = testing.T.new(embed_std.std, .drivers);
defer t.deinit();
t.timeout(180 * embed_std.std.time.ns_per_s);
t.run("quectel/integration/embed_std", quectel.test_runner.integration.make(embed_std.std, embed_std.sync.Channel));
if (!t.wait()) return error.TestFailed;
}