From 8c9b0fb944a60d8193d8ac3dbac4e8e15f81bf57 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 14 Dec 2020 20:00:23 +0300 Subject: Make use of export testscript builtin --- tests/recipe/cxx/testscript | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tests/recipe/cxx/testscript') diff --git a/tests/recipe/cxx/testscript b/tests/recipe/cxx/testscript index 6b11c0f..323e049 100644 --- a/tests/recipe/cxx/testscript +++ b/tests/recipe/cxx/testscript @@ -26,6 +26,8 @@ if (!$static && $test.target == $build.host) }} EOI + +export BDEP_SYNC=0 + : update-clean : { @@ -89,7 +91,7 @@ if (!$static && $test.target == $build.host) }} EOI - env BDEP_SYNC=0 -- $* 2>>~%EOE%; + $* 2>>~%EOE%; %^(c\+\+|ld).*%+ cp file{foo} EOE @@ -98,9 +100,9 @@ if (!$static && $test.target == $build.host) # While at it, make sure there is no rebuild. # - env BDEP_SYNC=0 -- $* 2>/'info: dir{./} is up to date'; + $* 2>/'info: dir{./} is up to date'; - env BDEP_SYNC=0 -- $* clean 2>- + $* clean 2>- } : test @@ -153,14 +155,14 @@ if (!$static && $test.target == $build.host) }} EOI - env BDEP_SYNC=0 -- $* test 2>>~%EOE%; + $* test 2>>~%EOE%; %^(c\+\+|ld).*%+ cp file{foo} test file{foo} bar EOE - env BDEP_SYNC=0 -- $* clean 2>- + $* clean 2>- } # Clean recipe builds if the testscript is enabled (see above for details). -- cgit v1.1