summaryrefslogtreecommitdiff
path: root/tools/test.py
diff options
context:
space:
mode:
authorAmos Lim <amoseui@gmail.com>2018-10-16 01:08:19 +0900
committerRyan Dahl <ry@tinyclouds.org>2018-10-15 12:08:19 -0400
commit15590a0cde8901f15d200d433761d11cc5468270 (patch)
tree79514c9465ab81504981010644681fe56ac09e98 /tools/test.py
parenta327759971fe5cb095e1d2f6125269e60ac00123 (diff)
Specify deno_dir location with env var DENO_DIR (#970)
(Use C:\deno instead of c:\deno in appveyor config because it's cloned to c:\ by clone_folder variable in .appveyor.yml. On the other hand, build directory is pointed to C:\ by $(APPVEYOR_BUILD_FOLDER) so that test targets are placed on separated partitions.)
Diffstat (limited to 'tools/test.py')
-rwxr-xr-xtools/test.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/test.py b/tools/test.py
index 45c9f5e2b..d2a7944e6 100755
--- a/tools/test.py
+++ b/tools/test.py
@@ -4,8 +4,9 @@
import os
import sys
from check_output_test import check_output_test
+from deno_dir_test import deno_dir_test
from setup_test import setup_test
-from util import build_path, enable_ansi_colors, executable_suffix, run
+from util import build_path, enable_ansi_colors, executable_suffix, run, rmtree
from unit_tests import unit_tests
from util_test import util_test
from benchmark_test import benchmark_test
@@ -29,6 +30,11 @@ def main(argv):
print "Usage: tools/test.py [build_dir]"
sys.exit(1)
+ deno_dir = os.path.join(build_dir, ".deno_test")
+ if os.path.isdir(deno_dir):
+ rmtree(deno_dir)
+ os.environ["DENO_DIR"] = deno_dir
+
enable_ansi_colors()
http_server.spawn()
@@ -56,6 +62,10 @@ def main(argv):
check_output_test(deno_exe)
check_output_test(deno_ns_exe)
+ rmtree(deno_dir)
+
+ deno_dir_test(deno_exe, deno_dir)
+
if __name__ == '__main__':
sys.exit(main(sys.argv))