[Discuss OpenCPI] Unit Test

Miller, Peter PeterM at signalscape.com
Fri Jun 8 10:17:08 EDT 2018


I guess I am asking: if I don't set the OCPI_HDL_PLATFORM variable, can I just make build HdlPlatform="xsim"  and it will work as if OCPI_HDL_PLATFORM was set?


-----Original Message-----
From: James Kulp <jek at parera.com>
Sent: Friday, June 08, 2018 9:53 AM
To: Miller, Peter <PeterM at signalscape.com>; discuss at lists.opencpi.org
Subject: Re: [Discuss OpenCPI] Unit Test

On 6/8/18 9:35 AM, Miller, Peter wrote:
> Sorry, running a Component unit test. So I'm in MyWorker.test folder. There I run make and make run. Does the make build HdlPlatform="xsim" form have the same effect as export OCPI_HDL_PLATFORM=xsim and then make thereafter builds the unit test assembly only for xsim?
If you export OCPI_HDL_PLATFORM into the environment, that value should be used whenever HdlPlatform(s) is valid, but not specified, everywhere.

In your example, in a .test directory, "build" is the default goal for make.

So if you are in the same context as you set the environment variable (same shell etc.), you should be able to just type "make".



>
>
> -----Original Message-----
> From: discuss <discuss-bounces at lists.opencpi.org> On Behalf Of James Kulp
> Sent: Friday, June 08, 2018 9:31 AM
> To: discuss at lists.opencpi.org
> Subject: Re: [Discuss OpenCPI] Unit Test
>
> In what context are you issuing this command?
>
> OCPI_HDL_PLATFORM is used to provide a global default, which is empty.
>
> HdlPlatform(s) is generally used on the command line for being explicit.
>
> In some cases your two lines are equivalent.
>
> In most cases/contexts you would use "ocpidev" in any case.
>
>
> On 6/8/18 9:08 AM, Miller, Peter wrote:
>> Are the following two methods equivalent?
>>
>>
>> export OCPI_HDL_PLATFORM=xsim
>>
>> make
>>
>>    -- OR --
>>
>> make build HdlPlatform="xsim"
>>
>>
>>
>> Sincerely,
>> Peter B. Miller
>> Potomac: (301) 765-9668
>>
>> --------------------------- This email and any files transmitted with it are confidential and intended solely for the use of Signalscape, Inc. and the addressed individual or entity. If you have received this email in error please delete it. Information in this email may be subject to the Privacy Act of 1974 and any unauthorized review, use, disclosure, or distribution is strictly prohibited. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
>> -------------- next part -------------- An HTML attachment was
>> scrubbed...
>> URL:
>> <http://lists.opencpi.org/pipermail/discuss_lists.opencpi.org/attachme
>> nts/20180608/c0c4c108/attachment.html>
>> _______________________________________________
>> discuss mailing list
>> discuss at lists.opencpi.org
>> http://lists.opencpi.org/mailman/listinfo/discuss_lists.opencpi.org
>
>
> _______________________________________________
> discuss mailing list
> discuss at lists.opencpi.org
> http://lists.opencpi.org/mailman/listinfo/discuss_lists.opencpi.org
> --------------------------- This email and any files transmitted with it are confidential and intended solely for the use of Signalscape, Inc. and the addressed individual or entity. If you have received this email in error please delete it. Information in this email may be subject to the Privacy Act of 1974 and any unauthorized review, use, disclosure, or distribution is strictly prohibited. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


--------------------------- This email and any files transmitted with it are confidential and intended solely for the use of Signalscape, Inc. and the addressed individual or entity. If you have received this email in error please delete it. Information in this email may be subject to the Privacy Act of 1974 and any unauthorized review, use, disclosure, or distribution is strictly prohibited. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.


More information about the discuss mailing list