summaryrefslogtreecommitdiff
path: root/cli/tests/std_tests.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-10-10 05:31:23 -0400
committerGitHub <noreply@github.com>2019-10-10 05:31:23 -0400
commite7562eed8c816cd0d97aab6b818d7c8453dbaa2b (patch)
treec5a9f536e79d2c8d2d02897511a9138acaf35394 /cli/tests/std_tests.rs
parent3882c9d19a641e0c919f1350d87c6d7ee280cf78 (diff)
parent93f7f00c956c14620ef031626f124b57397ca867 (diff)
Merge deno_std in main repo (#3091)
The history of deno_std is persevered but rewritten to update links to issues and PRs Fixes denoland/deno_std#603
Diffstat (limited to 'cli/tests/std_tests.rs')
-rw-r--r--cli/tests/std_tests.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/cli/tests/std_tests.rs b/cli/tests/std_tests.rs
new file mode 100644
index 000000000..444e4e6cc
--- /dev/null
+++ b/cli/tests/std_tests.rs
@@ -0,0 +1,25 @@
+// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
+// TODO(ry) Current std tests are run in .github/workflows/build.yml but ideally
+// they would be called as part of "cargo test". "deno test" is too slow to do
+// this desierable thing: https://github.com/denoland/deno/issues/3088
+/*
+#[macro_use]
+extern crate lazy_static;
+extern crate tempfile;
+mod util;
+use util::*;
+
+#[test]
+fn std_tests() {
+ let mut deno = deno_cmd()
+ .current_dir(root_path())
+ .arg("test")
+ .arg("-A")
+ .arg("std")
+ .spawn()
+ .expect("failed to spawn script");
+ let status = deno.wait().expect("failed to wait for the child process");
+ assert_eq!(Some(0), status.code());
+ assert!(status.success());
+}
+*/