Re: [Discuss OpenCPI] Unit Test

From: James Kulp <jek_at_parera.com>
Date: Fri, 08 Jun 18 09:53:21 -0400

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.





Received on Fri Jun 08 2018 - 13:53:21 CDT

This archive was generated by hypermail 2.3.0 : Fri Jun 05 2026 - 08:45:25 CDT