e7738de6d2
CI / Deep Native Runtime Cases (1/6) (push) Has been skipped
CI / Native Preflight (push) Failing after 1s
CI / Native Runtime Cases (1/2) (push) Failing after 0s
CI / Native Runtime Cases (2/2) (push) Failing after 1s
CI / Native Metadata Reports (push) Failing after 0s
CI / Native Direct Backend Artifacts (push) Failing after 0s
CI / Native Sanitizer Smoke (push) Failing after 1s
CI / Command Contract Snapshots (push) Failing after 1s
CI / Deep Conformance Suite (push) Has been skipped
CI / Graph Build Perf (push) Failing after 1s
CI / Deep Native Preflight (push) Has been skipped
CI / Deep Native Runtime Cases (2/6) (push) Has been skipped
CI / Deep Native Runtime Cases (3/6) (push) Has been skipped
CI / Conformance Suite (push) Failing after 1s
CI / Workspace Checks (push) Failing after 0s
CI / Deep Native Runtime Cases (5/6) (push) Has been skipped
CI / Deep Native Runtime Cases (6/6) (push) Has been skipped
CI / Deep Native Runtime Cases (4/6) (push) Has been skipped
CI / Deep Graph Build Perf (push) Has been skipped
27 lines
2.0 KiB
Plaintext
27 lines
2.0 KiB
Plaintext
pub fn main(world: World) -> Void raises {
|
|
let duration: Duration = std.time.sub(std.time.seconds(2), std.time.ms(500))
|
|
let short: Duration = std.time.ms(250)
|
|
let tiny: Duration = std.time.us(250000_i64)
|
|
let window: Duration = std.time.add(std.time.minutes(1), std.time.seconds(30))
|
|
let bounded: Duration = std.time.clamp(std.time.hours(2), std.time.seconds(1), std.time.minutes(10))
|
|
let zero: Duration = std.time.zero()
|
|
let minimum: Duration = std.time.min(short, duration)
|
|
let maximum: Duration = std.time.max(short, duration)
|
|
let sleep_ok: Bool = std.time.sleep(std.time.zero())
|
|
let _now: Duration = std.time.monotonic()
|
|
let wall: i64 = std.time.wallSeconds()
|
|
var rng: RandSource = std.rand.seed(7_u32)
|
|
let first: u32 = std.rand.nextU32(&mut rng)
|
|
let second: Bool = std.rand.nextBool(&mut rng)
|
|
let _entropy: u32 = std.rand.entropyU32()
|
|
let _entropy_seed: RandSource = std.rand.entropySeed()
|
|
let status: ProcStatus = std.proc.spawn("zero-noop")
|
|
let run_code: i32 = std.proc.runCode("sh -c true")
|
|
let hash: u32 = std.crypto.hash32(std.mem.span("message"))
|
|
let hmac: u32 = std.crypto.hmac32(std.mem.span("key"), std.mem.span("message"))
|
|
let _secure: u32 = std.crypto.secureRandomU32()
|
|
if std.time.asNs(std.time.ns(42_i64)) == 42_i64 && std.time.asUsFloor(tiny) == 250000_i64 && std.time.asMsFloor(duration) == 1500 && std.time.asMsFloor(minimum) == 250 && std.time.asMsFloor(maximum) == 1500 && std.time.asSecondsFloor(window) == 90_i64 && std.time.asSecondsFloor(bounded) == 600_i64 && std.time.lessThan(short, duration) && std.time.isZero(zero) && sleep_ok && wall > 0 && first == 1025555898_u32 && second && std.proc.exitCode(status) == 0 && std.proc.succeeded(status) && !std.proc.failed(status) && std.proc.runOk("sh -c true") && run_code == 0 && hash != 0_u32 && hmac != 0_u32 && std.crypto.constantTimeEql(std.mem.span("same"), std.mem.span("same")) {
|
|
check world.out.write("std platform basics ok\n")
|
|
}
|
|
}
|