From 658731ac32fa2e06a9f2b1a8cfffc65090f9373e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 21 Oct 2016 09:10:36 +0200 Subject: Minor testscript changes --- unit-tests/test/script/lexer/script-line.test | 40 ---------------------- unit-tests/test/script/parser/buildfile | 3 +- .../test/script/parser/command-re-parse.test | 2 +- unit-tests/test/script/parser/here-document.test | 2 +- 4 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 unit-tests/test/script/lexer/script-line.test (limited to 'unit-tests') diff --git a/unit-tests/test/script/lexer/script-line.test b/unit-tests/test/script/lexer/script-line.test deleted file mode 100644 index 64d7c18..0000000 --- a/unit-tests/test/script/lexer/script-line.test +++ /dev/null @@ -1,40 +0,0 @@ -foo != 0 -a=aaa -foo bar <"bbb $a ccc" >ddd 2>>EOE == 2 -eee -EOE -foo -bar -$cxx.target.class -foo = baz -$foo -fox = $foo-$cxx.target.class -$fox -$test -$~ -$* -$0 -test = xxx -$0 -$* -test.options += --foo -$1 -$* -test.arguments += bar -$2 -$* -($3 == [null]) - -x = [uint64] 001 -foo $x -cmd abc$(x)23 -cmd >>EOO << EOI -foo -$x -bar -EOO -$x$x$x -EOI - -y = >> -cmd "2"$y diff --git a/unit-tests/test/script/parser/buildfile b/unit-tests/test/script/parser/buildfile index 56a4682..af602b1 100644 --- a/unit-tests/test/script/parser/buildfile +++ b/unit-tests/test/script/parser/buildfile @@ -10,6 +10,7 @@ scope prerequisite file module operation rule b-options algorithm search \ filesystem config/{utility init operation} dump types-parsers \ test/{target script/{token lexer parser script}} -exe{driver}: cxx{driver} ../../../../build2/cxx{$src} $libs #test{testscript} +exe{driver}: cxx{driver} ../../../../build2/cxx{$src} $libs \ +test{pre-parse expansion here-document command-re-parse} include ../../../../build2/ diff --git a/unit-tests/test/script/parser/command-re-parse.test b/unit-tests/test/script/parser/command-re-parse.test index 956052d..5ea2284 100644 --- a/unit-tests/test/script/parser/command-re-parse.test +++ b/unit-tests/test/script/parser/command-re-parse.test @@ -3,7 +3,7 @@ # $* <>EOO x = cmd \\">!\\" "'!" "