Commit Graph

114 Commits

Author SHA1 Message Date
Nathaniel Mitchell ee551aa168 Populate lists for -p and --pch
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-12-09 10:17:11 -08:00
brentholtsclaw 2fa9152c05 Add docstrings to chipsec main functionality
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2025-07-23 15:09:44 -07:00
Nathaniel Mitchell ac11d4c04f Add 'clear_scope' call after modules are run
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-05-08 01:07:54 +08:00
Sara Batllori 40c60dce69 Add archiving status for modules
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2025-03-18 16:45:27 -07:00
Nathaniel Mitchell 088a2ca69c Fixup spi HAL and additional unit tests
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-03-11 20:45:54 -07:00
Nathaniel Mitchell 0ebc53f09c Change default logger file name to 'entry'-yearMonDay-Time.log
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2025-02-18 13:19:38 -08:00
Dan Scott 263934f79e Sgx_sample_check 2025-02-18 10:37:06 -08:00
Nathaniel Mitchell 847f02daa1 initial commit of cfg changes
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-12-03 12:50:34 -08:00
Frinzell, Aaron d8f7f7a5ac Add exclude module support to options
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2024-09-24 16:35:54 -07:00
Frinzell, Aaron 2181416bd9 Update type hints
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2024-09-10 16:38:28 -07:00
Dan Scott 5b655c7364 Refactor testcase.py file 2024-06-26 16:00:06 -07:00
Nathaniel Mitchell cc8e9f3876 Refactor main/util parsing of logger flags
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-04-22 16:37:51 -07:00
Sae86 2bc5b22216 Add feature to auto-generate/save return code IDs
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-04-22 16:36:02 -07:00
Nathaniel Mitchell b7da500d1f Add default_helper to util_config option section
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2024-04-16 16:34:49 -07:00
Dan Scott 2a412e0cc0 Enumerate modules in modules folder using '-lm' 2024-03-28 13:49:05 -07:00
Sae86 e52f0532b1 Add csv log option and fix value returned after running only one test
Signed-off-by: Sae86 <sara.batllori@intel.com>
2024-03-27 17:07:26 -07:00
Dan Scott 0e8192cfd0 Move files to library folder 2024-03-22 14:26:59 -07:00
Dan Scott a933b1337d Update references to functions in new library files 2024-03-22 14:26:59 -07:00
Jason Zhou 8e90f6c25d Fix except codeql warning
Signed-off-by: Jason Zhou <jun2.zhou@intel.com>
2023-11-29 16:37:26 -08:00
Jason Zhou 74a03ac39a Add default cmd options ini config
Signed-off-by: Jason Zhou <jun2.zhou@intel.com>
2023-11-29 16:37:26 -08:00
Dan Scott fa8e0aff74 Cast module name to lowercase 2023-11-13 16:35:51 -08:00
Sae86 4a8057d904 Update remaining SKIPPED results and references
Signed-off-by: Sae86 <sara.batllori@intel.com>
2023-10-17 16:36:31 -07:00
Nathaniel Mitchell 89f4be530f Update sgx_check and vbox_crash_apicbase
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-08-15 16:39:01 -07:00
Dan Scott 009622740d Update config parsing
Signed-off-by: Dan Scott <dan.scott@intel.com>
2023-07-28 09:34:00 -07:00
Nathaniel Mitchell 27ee5eeb66 Clean up helper create/start/stop/delete functions
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-07-19 16:33:59 -07:00
Nathaniel Mitchell 190655b290 Fixup how -i, -n and --skip_config are used
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-07-05 16:36:58 -07:00
Sara Batllori 318b361621 WIP: Add return codes changes to module_common and testcase plus remap support
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-06-27 17:47:46 -07:00
Sara Batllori 9b2e491597 Add return codes mode option to main and util
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-06-27 09:30:04 -07:00
Nathaniel Mitchell dc3f78d38d Update useage help messages and help documentation
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-06-26 11:54:00 -07:00
Sara Batllori 5ccd4b817e Add -nl switch to disable autologging
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2023-06-12 16:42:28 -07:00
Nicolas Iooss a01d537a75 Make OsHelper.get_available_helpers return a sorted list
`OsHelper.get_available_helpers` is returning a list of helper names in
the order they are stored in the dict `self.avail_helpers`. This order
seems to come from the order in which `os.listdir(helper_dir)` reads the
content of the directory.

To make this order more predictible and meaningful, sort the list in
`get_available_helpers`. This function was only called when generating
the documentation ofi option `--helper` and this makes it more
reproducible too.

Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org>
2023-06-02 08:48:34 -07:00
Nathaniel Mitchell 0016b0c14c Clean up oshelper
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-05-26 18:32:51 -07:00
brentholtsclaw fd4cc4bb3f Remove get_cpuid() from chipsec_main
is called.  This moves cpuid to a variable within the Chipset
      class.

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2023-05-23 16:42:45 -07:00
Frinzell, Aaron 1ff14fd642 Add .run() commands to chipsec_main.py and chipsec_util.py
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2023-05-22 16:38:13 -07:00
Frinzell, Aaron 5e42ac8c36 CHIPSEC_LOADED_AS_EXE support deprecated
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2023-05-10 11:02:35 -07:00
Nathaniel Mitchell 99f9052438 Remove filehelper
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-05-09 16:38:36 -07:00
Nathaniel Mitchell 4b9ab99839 Change the way helper loading is done
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2023-04-26 16:52:26 -07:00
Frinzell, Aaron 187dc49107 Don't display extended_banner if using --skip_config
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2023-02-23 09:34:49 -06:00
Frinzell, Aaron f6495edc74 Bring back print_banner() and print_banner_properties()
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2023-01-25 10:42:41 -06:00
Frinzell, Aaron 4f4b82597d Decouple banner routines from logger.py
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2023-01-25 10:42:41 -06:00
brentholtsclaw 00efed8997 Addressing comments
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2023-01-18 17:12:19 -08:00
brentholtsclaw bfa3c4ee39 Decouple chipsec_main from logger
Remove start_test from logger
Enhance TestCase class to add start_test funtionality
Change logic within run_loaded modules to use TestCase opposed to logger
Add fstring to testcase.py
Add Type information to testcase.py

Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2023-01-18 17:12:19 -08:00
Sara Batllori b90667275e Update logger to use python logging
Signed-off-by: Sara Batllori <sara.batllori@intel.com>
2022-12-19 14:42:43 -08:00
Nathaniel Mitchell 5d6c3d90ec Add chipsec_main flag for module_exclude
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2022-12-14 12:44:43 -08:00
Frinzell, Aaron 257cecc849 Decouple parse_args() from ChipsecMain and ChipsecUtil classes
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com>
2022-12-05 12:16:00 -06:00
Zhou, Jun2 c9e8a370d3 get cpiud print ":" aligned
Signed-off-by: Zhou Jun, jun2.zhou@intel.com
2022-10-28 08:15:30 -07:00
Zhou, Jun2 c701e7f131 Use CPUID to identify processors instead of PCI Dev ID -- add cpuid printing
Signed-off-by: Zhou, Jun jun2.zhou@intel.com
2022-10-28 08:15:30 -07:00
Nathaniel Mitchell bef18a75dc Update the wording around the -i flag
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2022-10-27 15:32:00 -07:00
brentholtsclaw be25ee42ec Create setlevel function
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com>
2022-09-29 16:03:48 -07:00
Nathaniel Mitchell 291632c0ee Apply flake8 code formatting rules against repo
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com>
2022-07-28 09:17:10 -07:00