debian/tests/build-ruby-yjit
raw| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | set -euxo pipefail |
| 4 | |
| 5 | # Building Ruby with YJIT requires rustc, so this test ensures the Rust |
| 6 | # toolchain functions as expected. |
| 7 | |
| 8 | ruby-build $(cat debian/tests/latest-version) "$AUTOPKGTEST_TMP" -- --with-yjit |
| 9 | RUBY_YJIT_ENABLE=1 "$AUTOPKGTEST_TMP"/bin/ruby --version | tee "$AUTOPKGTEST_ARTIFACTS"/ruby-yjit-version.txt | grep '+YJIT' |