2019-01-21 14:03:30 -05:00
|
|
|
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
2018-09-20 02:13:59 -04:00
|
|
|
import { test, assert } from "./test_util.ts";
|
|
|
|
|
2019-03-06 16:54:58 -05:00
|
|
|
test(function buildInfo() {
|
|
|
|
// Deno.build is injected by rollup at compile time. Here
|
2018-10-02 12:25:49 -04:00
|
|
|
// we check it has been properly transformed.
|
2019-03-06 16:54:58 -05:00
|
|
|
const { arch, os } = Deno.build;
|
2018-10-02 12:25:49 -04:00
|
|
|
assert(arch === "x64");
|
|
|
|
assert(os === "mac" || os === "win" || os === "linux");
|
2018-09-20 02:13:59 -04:00
|
|
|
});
|
2019-03-06 16:54:58 -05:00
|
|
|
|
|
|
|
test(function buildGnArgs() {
|
2019-03-07 09:11:49 -05:00
|
|
|
assert(Deno.build.args.length > 100);
|
2019-03-06 16:54:58 -05:00
|
|
|
});
|