Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test amber for all bash versions #422

Open
b1ek opened this issue Aug 24, 2024 · 1 comment
Open

test amber for all bash versions #422

b1ek opened this issue Aug 24, 2024 · 1 comment

Comments

@b1ek
Copy link
Member

b1ek commented Aug 24, 2024

we should select a minimal supported version, and run all tests on all bash versions, after the minimal supported one. i think its reasonable to support every bash version after 4.0, as it supports hashmaps which we are likely to implement. it is also since 2009, which means it has broad support on most machines

i suggest we download all bash versions after 4.0 from the bash https server, and then execute tests bwrapped with each version, like this:

run_for_ver() {
    curl https://ftp.gnu.org/gnu/bash/$1.tar.gz
    tar xzf $1.tar.gz
    bwrap --bind $1/bin/bash:/usr/bin/bash cargo r -r
    rm -r $1
}

run_for_ver 4.0
run_for_ver 4.1
...
run_for_ver 5.3
@Mte90
Copy link
Member

Mte90 commented Aug 26, 2024

Well it is something that is not very handy and fast...
Maybe it is enough the last 4.x and the last 5.x.

Also can be useful a CI that can be turned on not always but just when it is time to do a new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants