Skip to content

Commit

Permalink
rpm install tests update to centos
Browse files Browse the repository at this point in the history
Signed-off-by: Romy <[email protected]>
  • Loading branch information
romayalon committed Nov 11, 2024
1 parent 07fcc23 commit ff0fea5
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/test/unit_tests/test_rpm_install.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ const os_utils = require('../../util/os_utils');

mocha.describe('rpm install tests', function() {
mocha.it(async () => {
const make_rpm_command = `sudo make rpm BUILD_S3SELECT=0`;
const make_rpm_command = 'sudo make rpm BUILD_S3SELECT=0';
await exec(make_rpm_command);
const get_noobaa_rpm_path_command = `noobaa_pkg=$(ls ./build/rpm/ | grep noobaa | grep .x86_64.rpm)`;
const get_noobaa_rpm_path_command = 'noobaa_pkg=$(ls ./build/rpm/ | grep noobaa | grep .x86_64.rpm)';
await exec(get_noobaa_rpm_path_command);
const install_boost_deps = `sudo apt-get update && sudo apt-get install -y libboost-system-dev libboost-thread-dev`;
await exec(install_boost_deps);
const install_rpm_command = `rpm -i "./build/rpm/$noobaa_pkg"`;
const install_wget = 'dnf install wget';
await exec(install_wget);
const downlod_boost_system = 'wget https://rpmfind.net/linux/centos-stream/9-stream/AppStream/x86_64/os/Packages/boost-system-1.75.0-8.el9.x86_64.rpm';
await exec(downlod_boost_system);
const downlod_boost_thread = 'wget https://rpmfind.net/linux/centos-stream/9-stream/AppStream/x86_64/os/Packages/boost-thread-1.75.0-8.el9.x86_64.rpm';
await exec(downlod_boost_thread);
const install_boost_system_rpm = 'rpm -i boost-system-1.75.0-8.el9.x86_64.rpm';
await exec(install_boost_system_rpm);
const install_boost_thread_rpm = 'rpm -i boost-thread-1.75.0-8.el9.x86_64.rpm';
await exec(install_boost_thread_rpm);
const install_rpm_command = 'rpm -i "./build/rpm/$noobaa_pkg"';
await exec(install_rpm_command);
});
});
Expand Down

0 comments on commit ff0fea5

Please sign in to comment.