15 Commits
Author SHA1 Message Date
Otavio Pontes 076aeff0d0 target_root: Use run_commmand to execute tar|tar command
Porting code to better way on interacting with system commands using the
run_command function. As run_command don't support multi-thread for
performance reasons, we are now using a file instead of a pipe. As tar|tar
is now a fallback, this won't have any performance impacts on any case
where with no problems and errors.

Fixes #640 and #671

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-05-05 12:22:48 -07:00
Otavio Pontes 59d5215c91 scripts: Remove shellcheck all from standard check in build script
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-04-30 14:02:36 -07:00
Otavio Pontes 455b398edd scripts: Run all tests with force-tartar build flag
Make sure that the tar|tar install file works because it's used as a
fallback when file failed to be installed using system tools

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-04-24 12:03:09 -07:00
Otavio Pontes 9d967e2482 scripts: Use --enable-debug to run swupd tests
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-04-21 14:20:40 -07:00
Otavio Pontes ea5f362f6c scripts: Don't run shellcheck if BUILD_ONLY is used 2020-04-10 08:11:19 -07:00
Otavio Pontes 4277838297 scripts: Use more parameters used in a release to run tests 2020-04-10 08:11:19 -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 5a8b431eeb scripts: Run shellcheck-all just once
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-27 10:45:15 -07:00
Otavio Pontes b1a6b1e15c scripts: Use shellcheck-all on test script
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-26 18:58:37 -07:00
Otavio Pontes b3e18c8325 curl: Using same progress function used on async to sync downloads
Moving from PROGRESS function to XFERINFO that is recommended by the
manual.

This fix a warning in the build, so we can turn on -Werror in tests

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-19 08:55:02 -07:00
Otavio Pontes 80a0a3676a scripts: Support parameters on build_and_run
Add 2 parameters, one for numbers of jobs and other to skip tests execution

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-17 13:32:14 -07:00
Otavio Pontes 422cd13df8 script: Check for third-party flag after build
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-17 13:32:14 -07:00
Otavio Pontes db08520ed9 scripts: Don't use FORTIFY_SOURCE when optimizations are disabled
Both arguments were incompatible and warnings were being displayed for
this combination

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-17 13:32:14 -07:00
Otavio Pontes 6afe772d7e scripts: Don't add system CFLAGS on build script
The reason we have a build script is that we wan't to control all
configuration arguments, so don't add any implicity CFLAGS

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-17 13:32:14 -07:00
Otavio Pontes 616878929e scripts: Add a script to run swupd basic tests
Besides having a script that is used to run tests on github
actions CI, adding another script that can be used in any
system to build swupd with different configurations and
run all needed tests.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
2020-03-13 14:49:57 -07:00