runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Add tests to cross/build-rootfs.sh

Open SteveDesmond-ca opened this issue 10 years ago • 6 comments

@adityamandaleeka brought it up previously here and I just fixed another bug in this script (#7643/#7644) so I'm wondering if it's worth adding some tests to ensure intended functionality.

My vote would either be to use bats, or -- if additional dependencies are a concern -- just a vanilla script with stdout / stderr / exit codes.

I'd be happy to pick this one up myself if it seems valuable!

SteveDesmond-ca avatar Oct 16 '16 17:10 SteveDesmond-ca

What do you think @hqueue @jyoungyun ?

gkhanna79 avatar Mar 06 '17 03:03 gkhanna79

I also think it's good idea to add test for build-rootfs.sh. However I prefer using just a vanilla script than bats, unless bats is already exploited by other shell scripts in dotnet including coreclr, corefx and etc., because many developers may prefer less dependencies and build-rootfs.sh is a small part (and optional) of Linux build scripts compared to main build.sh and init-tools.sh.

hqueue avatar Mar 06 '17 05:03 hqueue

I love to add tests for build-rootfs.sh. If I have to choose between vanilla scripts and bats, I think vanilla script is better. :)

jyoungyun avatar Mar 06 '17 07:03 jyoungyun

Is there a plan for how to keep all these build-rootfs scripts in sync? I know of at least 4 dotnet repos that have them: coreclr, corefx, corert, and core-setup -- not sure if there are others. Would it make sense to have a single, separate cross-compile configuration repo that each of the others pull down as part of their build process, kind of like stage0/BuildTools?

On Mon, Mar 6, 2017 at 2:40 AM, Jiyoung Giuliana Yun < [email protected]> wrote:

I love to add tests for build-rootfs.sh. If I have to choose between vanilla scripts and bats, I think vanilla script is better. :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnet/coreclr/issues/7645#issuecomment-284323338, or mute the thread https://github.com/notifications/unsubscribe-auth/AAL9OG7HbQLnp5cXnqWMWeuRlSKXK4RSks5ri7hTgaJpZM4KYB0v .

SteveDesmond-ca avatar Mar 06 '17 14:03 SteveDesmond-ca

AFAIK there was a discussion about this and still there is no concret plan yet. I also think it's necessary to maintain a single script somewhere.

hqueue avatar Mar 07 '17 00:03 hqueue

The rootfs scripts now live in dotnet/arcade. I'm going to close this for now.

jkoritzinsky avatar Mar 04 '20 04:03 jkoritzinsky