# file      : tests/test/script/generated/testscript
# license   : MIT; see accompanying LICENSE file

test.arguments = test clean

# Note: using common.testscript from test/, not script/.
#
.include ../../common.testscript

# @@ in module
#
+cat <<EOI >+build/bootstrap.build
using version
EOI
+cat <<EOI >=manifest
: 1
name: test
version: 1.2.3
EOI

# @@ TMP Drop testscript.syntax assignment when support for syntax 1 is
#        dropped (see libbuild2/script/parser.hxx for details).
#
: testscript
:
ln -s $src_base/testscript.in ./;
$* <<EOI
./: testscript
testscript: in{testscript} $src_root/manifest #@@ in module
testscript: in.symbol = '@'
testscript: testscript.syntax = 2
EOI

: syntax-1
:
{{
  : testscript
  :
  echo 'testscript.syntax = 1' >=testscript.in;
  cat  $src_base/testscript.in >+testscript.in;
  $* <<EOI
  ./: testscript
  testscript: in{testscript} $src_root/manifest #@@ in module
  testscript: in.symbol = '@'
  EOI
}}
