You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by "Fieck, Brennan" <Br...@comcast.com> on 2019/04/19 14:56:41 UTC

Re: [EXTERNAL] Re: How to skip test when building TS

The script runs it in the foreground.


Essentially, we set the container's CMD to `/run.sh` and ADD a local script named `run.sh` to the root of the container's filesystem. So, in that script you'd do something like:

   trafficserver start
   exec tail -f /var/log/trafficserver/diags.log

that last line ensures that the ATS diagnostic logs are output from the container.

________________________________
From: Guofeng Zhang <gu...@gmail.com>
Sent: Thursday, April 18, 2019 8:55 PM
To: users@trafficserver.apache.org
Subject: [EXTERNAL] Re: How to skip test when building TS

That's my fault.I do not notice that I called 'make check' in my build script. Got it.

@Bryan

For the container usage, I think I should not change the config of a running TS server run in a container. So it is safe to call traffic_server when running TS in a contaner, right?

@Fieck

I cannot understand the python script. If I call 'trafficeserver', i need it to run in the foreground in a container. I do not know how the script accomplishes it.

Thanks all of you!

Guofeng


On Fri, Apr 19, 2019 at 6:36 AM Bryan Call <bc...@apache.org>> wrote:
There shouldn't be anything triggering it unless you are running make test or make check.  Maybe the Makefile got modified and was running the test or check target after all.

There are also regression tests that are built into the traffic_server binary and those are run with traffic_server -R 1, but it doesn't sound like you are talking about the regression tests.

-Bryan



On Apr 18, 2019, at 9:50 AM, Jason Yang <pe...@gmail.com>> wrote:

I think I had the problem too.
There was a few times, ATS always ran tests during/after make. I don't know why, but the problem disappeared for me mysteriously after that. So I guess there might be something triggering this?


Jason


On Apr 18, 2019, at 12:47, Leif Hedstrom <zw...@apache.org>> wrote:



On Apr 18, 2019, at 10:35 AM, Bryan Call <bc...@apache.org>> wrote:

The tests shouldn't run by default when you do a make or make all.   They only run if you run make test or make check.

Yeh.

Maybe he's asking how to not build the tests that are in traffic_server? There's a config option for that, e.g.

% ./configure --disable-tests


That just removes the code from the binary, making it a tiny bit smaller (I don't know if many people bothers with this :).

- Leif





Re: [EXTERNAL] Re: How to skip test when building TS

Posted by Guofeng Zhang <gu...@gmail.com>.
I understand it

Thanks very much for your help.


>>

Re: [EXTERNAL] Re: How to skip test when building TS

Posted by Guofeng Zhang <gu...@gmail.com>.
right, that is better.

Thanks very much.


On Wed, Apr 24, 2019 at 9:38 PM ezko <er...@harmonicinc.com> wrote:

> might be safer to use -F (just in case diags.log ever rotates)
>
> exec tail -F /var/log/trafficserver/diags.log
>
>
>
>
>
> --
> Sent from: http://apache-traffic-server.24303.n7.nabble.com/
>

Re: [EXTERNAL] Re: How to skip test when building TS

Posted by ezko <er...@harmonicinc.com>.
might be safer to use -F (just in case diags.log ever rotates)

exec tail -F /var/log/trafficserver/diags.log





--
Sent from: http://apache-traffic-server.24303.n7.nabble.com/