-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NC | Online Upgrade | RPM spec changes
Signed-off-by: Romy <[email protected]>
- Loading branch information
Showing
4 changed files
with
109 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Non Containerized RPM Tests | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
run-nc-rpm-tests: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 90 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Non Containerized RPM Test | ||
run: | | ||
make run-nc-rpm-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* Copyright (C) 2016 NooBaa */ | ||
'use strict'; | ||
|
||
const mocha = require('mocha'); | ||
const os_utils = require('../../util/os_utils'); | ||
|
||
mocha.describe('rpm install tests', function() { | ||
mocha.it('rpm build & install', async () => { | ||
const make_rpm_command = '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)'; | ||
await exec(get_noobaa_rpm_path_command); | ||
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); | ||
}); | ||
}); | ||
|
||
/** | ||
* exec executes a command within a shell | ||
* @param {String} command | ||
*/ | ||
async function exec(command) { | ||
try { | ||
const res = await os_utils.exec(command, { | ||
return_stdout: true | ||
}); | ||
return res; | ||
} catch (err) { | ||
console.error('test_rpm_install.error', err); | ||
throw err; | ||
} | ||
} |