Skip to content

Commit

Permalink
Make headless integration test work on Linux aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
helgoboss committed Jan 24, 2025
1 parent 738f050 commit 57055d2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/test-extension-plugin/tests/reaper_integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,20 @@ fn run_integration_test_in_reaper(reaper_executable: &Path) -> Result<()> {

/// Returns path of REAPER home
fn setup_reaper_for_linux(reaper_download_dir_path: &Path) -> Result<PathBuf> {
let reaper_home_path = reaper_download_dir_path.join("reaper_linux_x86_64/REAPER");
let (tarball_suffix, base_dir) = if cfg!(target_arch = "aarch64") {
("_linux_aarch64.tar.xz", "reaper_linux_aarch64")
} else if cfg!(target_arch = "x86_64") {
("_linux_x86_64.tar.xz", "reaper_linux_x86_64")
} else {
bail!("Linux architecture not supported");
};
let reaper_home_path = reaper_download_dir_path.join(base_dir).join("REAPER");
if reaper_home_path.exists() {
return Ok(reaper_home_path);
}
let reaper_tarball_path = reaper_download_dir_path.join("reaper.tar.xz");
if !reaper_tarball_path.exists() {
let suffix = if cfg!(target_arch = "aarch64") {
"_linux_aarch64.tar.xz"
} else if cfg!(target_arch = "x86_64") {
"_linux_x86_64.tar.xz"
} else {
bail!("Linux architecture not supported");
};
let url = get_reaper_download_url(REAPER_VERSION, suffix)?;
let url = get_reaper_download_url(REAPER_VERSION, tarball_suffix)?;
println!("Downloading from {url} REAPER to {reaper_tarball_path:?}...");
download(&url, &reaper_tarball_path)?;
}
Expand Down

0 comments on commit 57055d2

Please sign in to comment.