aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/integration
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-12-01 22:26:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-12-05 17:21:48 +0300
commit66eea6d40b7fd2c12b297f7ce55a62e02f4db291 (patch)
treeb32027be37054d110f52b8280cf8d2b959c78921 /tests/test/script/integration
parentcaf24aa705243f87c83d346d803adf84888a3cc5 (diff)
Make use of casts and canonicalizations in testscripts
Diffstat (limited to 'tests/test/script/integration')
-rw-r--r--tests/test/script/integration/testscript27
1 files changed, 15 insertions, 12 deletions
diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript
index 8960b88..7cd8f0a 100644
--- a/tests/test/script/integration/testscript
+++ b/tests/test/script/integration/testscript
@@ -8,6 +8,9 @@
.include ../../common.test
+cd = [string] $path.canonicalize(./)
+td = [string] $path.canonicalize(test/)
+
: scrip-files
:
{
@@ -15,18 +18,18 @@
: testscript-and-other
:
- $* <<EOI 2>>EOE != 0
+ $* <<EOI 2>>"EOE" != 0
./: test{../testscript ../foo}
EOI
- error: both 'testscript' and other names specified for dir{./}
+ error: both 'testscript' and other names specified for dir{$cd}
EOE
: other-and-testscript
:
- $* <<EOI 2>>EOE != 0
+ $* <<EOI 2>>"EOE" != 0
./: test{../foo ../testscript}
EOI
- error: both 'testscript' and other names specified for dir{./}
+ error: both 'testscript' and other names specified for dir{$cd}
EOE
: others
@@ -40,20 +43,20 @@
:
touch foo.test;
touch test;
-$* <<EOI 2>>EOE != 0
+$* <<EOI 2>>"EOE" != 0
./: test{foo}
EOI
-error: working directory test/ is a file/symlink
+error: working directory $td is a file/symlink
EOE
: wd-exists-before
:
touch foo.test;
mkdir test &!test/;
-$* <<EOI 2>>EOE
+$* <<EOI 2>>"EOE"
./: test{foo}
EOI
-warning: working directory test/ exists at the beginning of the test
+warning: working directory $td exists at the beginning of the test
EOE
: wd-not-empty-before
@@ -61,10 +64,10 @@ EOE
touch foo.test;
mkdir test &!test/;
touch test/dummy &!test/dummy;
-$* <<EOI 2>>EOE
+$* <<EOI 2>>"EOE"
./: test{foo}
EOI
-warning: working directory test/ exists and is not empty at the beginning of the test
+warning: working directory $td exists and is not empty at the beginning of the test
EOE
: wd-not-empty-after
@@ -78,8 +81,8 @@ EOE
cat <<EOI >>>foo.test;
touch ../../dummy
EOI
-$* <<EOI 2>>EOE &test/*** != 0
+$* <<EOI 2>>"EOE" &test/*** != 0
./: test{foo}
EOI
-error: working directory test/ is not empty at the end of the test
+error: working directory $td is not empty at the end of the test
EOE