10 Commits

Author SHA1 Message Date
William Douglas
42e38325fd Add CI fixes for github's updated Ubuntu container
Includes needed dev packages and an ignore for error messages seen on
Ubuntu's version of curl but not in Clear Linux.

Signed-off-by: William Douglas <william.douglas@intel.com>
2025-03-03 17:11:46 -08:00
William Douglas
52ae6dadc1 Update rst2man path from Ubuntu
Correct the path where the rst2man script lives for CI to find it.

Signed-off-by: William Douglas <william.douglas@intel.com>
2023-02-17 12:58:05 -08:00
William Douglas
ca49f63feb Update CI scripts
Update CI scripts in attempt to get CI working with the current Ubuntu
container.

Signed-off-by: William Douglas <william.douglas@intel.com>
2022-10-04 17:25:31 -07:00
Otavio Pontes
cac56264d3 compliant: Start using clang-format-10 to check for style problems
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-04-23 12:07:51 -07:00
Otavio Pontes
c019e11cc0 Create the UNEXPECTED() macro
There are several points in swupd that we find conditions that should never
happen, but we try to correct them anyway to be more reliable. Because of that
we may hide programming mistakes that are corrected later.

So, to make sure we are going to catch those problems in debug mode in our development
machines and test environment, I am suggesting a UNEXPECTED() macro that aborts swupd
if --enable-debug was used to build swupd.

I am adding some examples on what we could do with that.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-04-13 11:18:31 -07:00
Otavio Pontes
13752fa9ca actions: Validate if all tests are going to be executed
Validate if we are really calling make check for all tests in
test/functional directory.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-04-10 09:58:46 -07:00
Otavio Pontes
2fe40faf10 test: Group tests that can be run only on in CI
2 groups were created:
 - slow: Tests that are very slow because of sleeps, so we can run them all
   in parallel
 - system: Tests that make change to the system, so they can cause problems
   when running in parallel, so we run them in series.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-04-01 08:38:15 -07:00
Otavio Pontes
819f4d1b6a swupd_init: Make sure swupd is always runnin in an existing path
If the path where swupd is running is removed getcwd errors will occurs, mostly
because of multiple commands swupd executes. So move to directory "/", no mather
where swupd is going to be installed, to make sure the path is always existent.

Fixes #1078

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-30 13:59:43 -07:00
Otavio Pontes
e9739d9eb3 actions: cache dependencies for swupd
Some packages we need to build swupd are not available on ubunutu-latest
so we need to download and build from source. This process is slow and
caching can save us some significant time on build.
2020-03-27 15:34:41 -07:00
Otavio Pontes
3019a7adaa actions: group scripts that are only relevant to github actions
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-26 15:44:04 -07:00