citrun

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

commit ac3d47216fe78e60befdbe68036787c656327e9c
parent 889d763c327bc197ed0dc5afad862b24ffed4acc
Author: kyle <kyle@0x30.net>
Date:   Wed,  9 Nov 2016 00:26:08 -0700

t: move program.pm + program into t/

Diffstat:
At/program.pm | 8++++++++
Rtlib/program/Jamfile -> t/program/Jamfile | 0
Rtlib/program/one.c -> t/program/one.c | 0
Rtlib/program/three.c -> t/program/three.c | 0
Rtlib/program/two.c -> t/program/two.c | 0
Mt/rt_exectotals.t | 4++--
Mt/rt_header.t | 4++--
Mt/rt_size.t | 4++--
Mt/rt_translunit.t | 4++--
Dtlib/program.pm | 8--------
10 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/t/program.pm b/t/program.pm @@ -0,0 +1,8 @@ +package t::program; +use strict; +use warnings; + +# This module builds the test program when it's used. +system("cd t/program && ../../src/citrun-wrap jam"); + +1; diff --git a/tlib/program/Jamfile b/t/program/Jamfile diff --git a/tlib/program/one.c b/t/program/one.c diff --git a/tlib/program/three.c b/t/program/three.c diff --git a/tlib/program/two.c b/t/program/two.c diff --git a/t/rt_exectotals.t b/t/rt_exectotals.t @@ -5,13 +5,13 @@ use strict; use warnings; use Test::More tests => 100; use Time::HiRes qw( usleep ); -use tlib::program; +use t::program; use t::shm; my $child_pid = fork(); if ($child_pid == 0) { # Child. - exec ("tlib/program/program", "45") or die $!; + exec ("t/program/program", "45") or die $!; } # Give the runtime time to set up. diff --git a/t/rt_header.t b/t/rt_header.t @@ -4,10 +4,10 @@ use strict; use warnings; use Test::More tests => 11; -use tlib::program; +use t::program; use t::shm; -my $ret = system('tlib/program/program 1'); +my $ret = system('t/program/program 1'); is $ret >> 8, 0, "is program exit code 0"; my $shm = t::shm->new(); diff --git a/t/rt_size.t b/t/rt_size.t @@ -5,10 +5,10 @@ use strict; use warnings; use POSIX; use Test::More tests => 1; -use tlib::program; +use t::program; use t::shm; -system("tlib/program/program 1"); +system("t/program/program 1"); my $procfile = t::shm->new(); diff --git a/t/rt_translunit.t b/t/rt_translunit.t @@ -4,10 +4,10 @@ use strict; use warnings; use Test::More tests => 7; -use tlib::program; +use t::program; use t::shm; -my $ret = system('tlib/program/program 10'); +my $ret = system('t/program/program 10'); is $ret >> 8, 0, "is program exit code 0"; my $shm = t::shm->new(); diff --git a/tlib/program.pm b/tlib/program.pm @@ -1,8 +0,0 @@ -package tlib::program; -use strict; -use warnings; - -# This module builds the test program when it's used. -system("cd tlib/program && ../../src/citrun-wrap jam"); - -1;