aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/integration/testscript
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-12 12:17:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-12 12:17:32 +0200
commitb216616363cdb99b56dfef4fda3ce313bd617e1a (patch)
tree3f8226022044c9e39adcb382260d9a84ad481e17 /tests/test/script/integration/testscript
parent9bf93c1ab73ee3cd2b763285fc5fc5456e972854 (diff)
Rename script/integration to script-integration
Diffstat (limited to 'tests/test/script/integration/testscript')
-rw-r--r--tests/test/script/integration/testscript81
1 files changed, 0 insertions, 81 deletions
diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript
deleted file mode 100644
index c09eb6c..0000000
--- a/tests/test/script/integration/testscript
+++ /dev/null
@@ -1,81 +0,0 @@
-# file : tests/test/script/integration/testscript
-# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
-# license : MIT; see accompanying LICENSE file
-
-.include ../../common.test
-
-: script-files
-:
-{
- +touch testscript foo.test bar.test
-
- : testscript-and-other
- :
- $* <<EOI 2>>~%EOE% != 0
- ./: test{../testscript ../foo}
- EOI
- %error: both 'testscript' and other names specified for dir\{\.[/\\]\}%
- EOE
-
- : other-and-testscript
- :
- $* <<EOI 2>>~%EOE% != 0
- ./: test{../foo ../testscript}
- EOI
- %error: both 'testscript' and other names specified for dir\{\.[/\\]\}%
- EOE
-
- : others
- :
- $* <<EOI
- ./: test{../foo ../bar}
- EOI
-}
-
-: wd-is-file
-:
-touch foo.test;
-touch test;
-$* <<EOI 2>>~%EOE% != 0
-./: test{foo}
-EOI
-%error: working directory test[/\\] is a file/symlink%
-EOE
-
-: wd-exists-before
-:
-touch foo.test;
-mkdir test &!test/;
-$* <<EOI 2>>~%EOE%
-./: test{foo}
-EOI
-%warning: working directory test[/\\] exists at the beginning of the test%
-EOE
-
-: wd-not-empty-before
-:
-touch foo.test;
-mkdir test &!test/;
-touch test/dummy &!test/dummy;
-$* <<EOI 2>>~%EOE%
-./: test{foo}
-EOI
-%warning: working directory test[/\\] exists and is not empty at the beginning of the test%
-EOE
-
-: wd-not-empty-after
-:
-: The idea here is to run a nested testscript that creates (but does not
-: clean up) a file in our working directory. Note that an implicit cleanup
-: cancelation is not required as the file is out of the test root directory
-: scope. Also note that we still have to remove everything after detecting the
-: failure.
-:
-cat <<EOI >>>foo.test;
-touch ../../dummy
-EOI
-$* <<EOI 2>>~%EOE% &test/*** != 0
-./: test{foo}
-EOI
-%error: working directory test[/\\] is not empty at the end of the test%
-EOE