Add tests to cross/build-rootfs.sh
@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!
What do you think @hqueue @jyoungyun ?
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.
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. :)
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 .
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.
The rootfs scripts now live in dotnet/arcade. I'm going to close this for now.