citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 516b43a717dfca663075c61384c1da1a4fa9e555
parent cf7963822e1efbd3225ead36ab3538f7ebb268f2
Author: Kyle Milz <kyle@0x30.net>
Date:   Sun, 31 Jul 2016 13:01:02 -0600

tt: set CITRUN_SOCKET per test

Diffstat:
MTest/Package.pm | 3---
Mtt/libressl.t | 2++
Mtt/mutt.t | 2++
Mtt/vim.t | 2++
4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Test/Package.pm b/Test/Package.pm @@ -11,9 +11,6 @@ sub new { my $self = {}; bless($self, $class); - # Always set this so we never try to connect to a real viewer. - $ENV{CITRUN_SOCKET} = getcwd . "/citrun-test.socket"; - return $self if (! defined ($dist_name)); $self->{dist_name} = $dist_name; diff --git a/tt/libressl.t b/tt/libressl.t @@ -17,6 +17,8 @@ my $libressl_url = "http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/"; my $package = Test::Package->new("libressl-2.4.1.tar.gz", $libressl_url, "tar xzf"); $package->dependencies("citrun"); +$ENV{CITRUN_SOCKET} = $package->{dir} . "/test.socket"; + # New end to end report. my $report = Test::Report->new("LIBRESSL", $num_tests); $report->add("desc", "configure time (sec)"); diff --git a/tt/mutt.t b/tt/mutt.t @@ -18,6 +18,8 @@ my $mutt_url = "ftp://ftp.mutt.org/pub/mutt/"; my $package = Test::Package->new("mutt-1.6.1.tar.gz", $mutt_url, "tar xzf"); $package->dependencies("citrun"); +$ENV{CITRUN_SOCKET} = $package->{dir} . "/test.socket"; + # New end to end report. my $report = Test::Report->new("MUTT", $num_tests); $report->add("desc", "configure time (sec)"); diff --git a/tt/vim.t b/tt/vim.t @@ -19,6 +19,8 @@ my $vim_url = "ftp://ftp.vim.org/pub/vim/unix/"; my $package = Test::Package->new("vim-7.4.tar.bz2", $vim_url, "tar xjf"); $package->dependencies("citrun"); +$ENV{CITRUN_SOCKET} = $package->{dir} . "/test.socket"; + sub time_expect { my $start = time; my $exp = Expect->spawn(@_);