dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting environment variables when doing remove execution


From: Jacob Bachmeyer
Subject: Re: Setting environment variables when doing remove execution
Date: Mon, 25 Nov 2019 17:53:32 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.22) Gecko/20090807 MultiZilla/1.8.3.4e SeaMonkey/1.1.17 Mnenhy/0.7.6.0

Tobias Burnus wrote:
Hi all,

the following is motivated by GCC testsuite – which uses 'dg-set-target-env-var' to set per-test-case environment variables (used with the address-sanitizer (ASAN) and in the testsuite for OpenMP/OpenACC (libgomp)). [The latter also uses 'setenv' for offloading for all runs per offloading target.] – GCC uses 'setenv' for this purpose, which works well if host = target (= ![is_remote…]) – but when doing remote execution, it does not work.

The question is how to best support setting the environment variable remote. I could imagine to either pass environment variables alongside when running remote_spawn/remote_exec or to have a remove_setenv.

Thoughts?

As an interim measure, could you simply prepend the needed environment variables to the remote command and/or use env(1)?


-- Jacob



reply via email to

[Prev in Thread] Current Thread [Next in Thread]