X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=test-common.tcl;h=98465113dc989dff6cbfbdf7bf977e288e8943c2;hb=0d0c3b6af54a0c4d9440f48b31de97c1b066458f;hp=162ad3a0b7187bc6c34fb8df841a91a61a3217ff;hpb=1d6b0ba15b1906d2cf243953a61a5020f65c5bf7;p=secnet.git diff --git a/test-common.tcl b/test-common.tcl index 162ad3a..9846511 100644 --- a/test-common.tcl +++ b/test-common.tcl @@ -1,3 +1,7 @@ +# This file is part of secnet. +# See LICENCE and this file CREDITS for full list of copyright holders. +# SPDX-License-Identifier: GPL-3.0-or-later +# There is NO WARRANTY. proc prefix_some_path {pathvar entry} { global env @@ -7,6 +11,11 @@ proc prefix_some_path {pathvar entry} { set env($pathvar) [join $l :] } +proc prexec {args} { + puts "exec $args" + eval exec $args +} + if {![catch { set builddir $env(SECNET_TEST_BUILDDIR) }]} {} else {