Commit Graph
10 Commits
Author SHA1 Message Date
Castulo Martinez 41d334e708 Adding IDs to hashdump tests
Adding IDs and minor changes in hashdump tests.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2018-11-19 12:47:23 -08:00
Castulo Martinez bb95381844 Replacing old hashdump tests
The old hashdump tests used the swupdlib.bash library that was
replaced by testlib.bash.

This commit replaces those old hashdump tests with new versions
of the same tests that now use testlib.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
2018-09-27 12:48:14 -07:00
Matthew Johnson ae011954f4 Add status checks for test swupd commands
Adds status checks for each swupd command called in the functional
tests. At this point several of these tests fail due to some successful
commands returning error statuses.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2017-08-10 15:33:59 -07:00
Patrick McCarty a55870ed51 Fix several tests with unchecked output lines
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-11-03 09:32:36 -07:00
Patrick McCarty 0ca1975ed5 Convert all functional tests to the new interface
This commit adds "lines-checked" files for every test that checks
swupd-client output and removes the old bash-array-style checks from
the test scripts.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-11-02 21:02:46 -07:00
Patrick McCarty 2b3af5af08 Update hashdump functional tests
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-09-30 15:18:12 -07:00
Patrick McCarty a384265d88 Refactor test cases; update bundle manifest hashes
This commit expands the swupd BATS library to encapsulate more of the
boilerplate steps in the test cases.

Additionally, bundle manifest hashes needed updating now that swupd is
emitting warnings (and later on, errors). Better to be prepared for the
switch to errors on mismatches.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-06-22 16:12:38 -07:00
William Douglas a52eeb42cb Move functional tests to use the BATS framework 2016-04-26 22:15:04 +00:00
Patrick McCarty 846648382d Fix crash when running hashdump
In a previous commit, the init_globals() call was removed from the
hashdump code, which resulted in path_prefix not being set in case the
--basepath option was not specified, and led to a NULL pointer
dereference.

Fix the issue by calling the new set_path_prefix() function. The NULL
value will honor the --basepath option if specified, or set the default
path_prefix.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-04-08 11:38:05 -07:00
William Douglas 2568e6daf7 Add functional test for hashdump 2016-03-07 14:23:18 -08:00