tcg-storage: add TCG Opal storage security testing workflow
PATCH 1/1 tcg-storage: add TCG Opal storage security testing workflow
Add TCG (Trusted Computing Group) Opal SED (Self-Encrypting Drive) testing workflow for validating storage security features. This workflow enables testing of hardware-based full disk encryption capabilities found in modern NVMe and SATA drives.
Key features:
- TCG Opal 2.0+ compliance testing for self-encrypting drives
- Support for drive provisioning, locking, and unlocking operations
- Integration with sedutil-cli for drive management
- Configurable encryption parameters (Admin1 password, locking ranges)
- Multi-filesystem support (XFS, Btrfs, ext4) on encrypted drives
- A/B testing support for baseline vs development comparisons
- Device capability detection and validation
The workflow validates critical storage security operations:
- Initial drive provisioning with Owner credentials
- Locking range configuration and management
- Power cycle testing to verify encryption persistence
- Performance impact measurement of encryption
- Compatibility testing across different drive models
Defconfigs:
- tcg-storage: Standard TCG Opal testing configuration Note that Qemu lacks TCG Opal support, however if work is put in place for that, this can be used to test it.
The real practical use would instead be to use the new declared hosts feature which enables us to test on bare metal, skipping bringup, you can use something like this:
make defconfig-tcg-storage-declared-hosts DECLARE_HOSTS=foo TCG_DEVICE=/dev/nvme4n1
Workflow integration follows kdevops patterns:
make defconfig-tcg-storage
make bringup
make tcg-storage # Run TCG Opal tests
make tcg-results # View test results
This enables systematic testing of hardware-based encryption features critical for data-at-rest protection in enterprise and security-sensitive environments.
--- defconfigs/tcg-storage | 27 +++ defconfigs/tcg-storage-declared-hosts | 39 +++ kconfigs/workflows/Kconfig | 31 +++ playbooks/roles/ansible_cfg/defaults/main.yml | 3 + playbooks/roles/gen_hosts/defaults/main.yml | 3 + playbooks/roles/gen_hosts/tasks/main.yml | 15 ++ .../templates/workflows/tcg-storage.j2 | 38 +++ playbooks/roles/gen_nodes/defaults/main.yml | 2 + playbooks/roles/gen_nodes/tasks/main.yml | 35 +++ playbooks/roles/guestfs/defaults/main.yml | 3 + playbooks/roles/tcg_storage/defaults/main.yml | 28 +++ .../roles/tcg_storage/tasks/baseline.yml | 14 ++ .../roles/tcg_storage/tasks/build_tools.yml | 71 ++++++ .../roles/tcg_storage/tasks/device_info.yml | 65 +++++ .../roles/tcg_storage/tasks/install_deps.yml | 21 ++ playbooks/roles/tcg_storage/tasks/main.yml | 38 +++ .../roles/tcg_storage/tasks/run_tests.yml | 87 +++++++ .../tcg_storage/tasks/test_locking_ranges.yml | 89 +++++++ .../roles/tcg_storage/tasks/test_revert.yml | 80 +++++++ .../tcg_storage/tasks/test_take_ownership.yml | 57 +++++ .../roles/tcg_storage/tasks/tools_info.yml | 46 ++++ .../tcg_storage/templates/test_config.yaml.j2 | 28 +++ playbooks/tcg-storage.yml | 16 ++ workflows/Makefile | 4 + workflows/tcg-storage/Kconfig | 186 +++++++++++++++ workflows/tcg-storage/Makefile | 200 ++++++++++++++++ workflows/tcg-storage/README.md | 222 ++++++++++++++++++ .../device_report_debian13-tcg-storage.txt | 9 + .../tcg-storage/scripts/check_tcg_device.sh | 44 ++++ .../tcg-storage/scripts/run_kernel_ci.sh | 40 ++++ .../tcg-storage/scripts/run_kernel_ci_kotd.sh | 44 ++++ 31 files changed, 1585 insertions(+) create mode 100644 defconfigs/tcg-storage create mode 100644 defconfigs/tcg-storage-declared-hosts create mode 100644 playbooks/roles/gen_hosts/templates/workflows/tcg-storage.j2 create mode 100644 playbooks/roles/tcg_storage/defaults/main.yml create mode 100644 playbooks/roles/tcg_storage/tasks/baseline.yml create mode 100644 playbooks/roles/tcg_storage/tasks/build_tools.yml create mode 100644 playbooks/roles/tcg_storage/tasks/device_info.yml create mode 100644 playbooks/roles/tcg_storage/tasks/install_deps.yml create mode 100644 playbooks/roles/tcg_storage/tasks/main.yml create mode 100644 playbooks/roles/tcg_storage/tasks/run_tests.yml create mode 100644 playbooks/roles/tcg_storage/tasks/test_locking_ranges.yml create mode 100644 playbooks/roles/tcg_storage/tasks/test_revert.yml create mode 100644 playbooks/roles/tcg_storage/tasks/test_take_ownership.yml create mode 100644 playbooks/roles/tcg_storage/tasks/tools_info.yml create mode 100644 playbooks/roles/tcg_storage/templates/test_config.yaml.j2 create mode 100644 playbooks/tcg-storage.yml create mode 100644 workflows/tcg-storage/Kconfig create mode 100644 workflows/tcg-storage/Makefile create mode 100644 workflows/tcg-storage/README.md create mode 100644 workflows/tcg-storage/results/device_report_debian13-tcg-storage.txt create mode 100755 workflows/tcg-storage/scripts/check_tcg_device.sh create mode 100755 workflows/tcg-storage/scripts/run_kernel_ci.sh create mode 100755 workflows/tcg-storage/scripts/run_kernel_ci_kotd.sh
defconfigs/tcg-storage new file +27 -0
@@ -0,0 +1,27 @@ +# TCG Storage testing configuration +CONFIG_LIBVIRT=y +CONFIG_LIBVIRT_DYNAMIC=y +CONFIG_LIBVIRT_HOST_PREFIX="tcg" +CONFIG_LIBVIRT_MEM_START=4096 +CONFIG_LIBVIRT_MEM_END=4096 +CONFIG_LIBVIRT_VCPUS_START=4 +CONFIG_LIBVIRT_VCPUS_END=4 + +# Workflow selection +CONFIG_WORKFLOWS=y +CONFIG_WORKFLOWS_TESTS=y +CONFIG_WORKFLOWS_LINUX_TESTS=y +CONFIG_WORKFLOWS_DEDICATED_WORKFLOW=y +CONFIG_KDEVOPS_WORKFLOW_DEDICATE_TCG_STORAGE=y +CONFIG_KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE=y + +# TCG Storage specific options +CONFIG_TCG_STORAGE_RUN_UNIT_TESTS=y +# For virtual testing with NVMe +CONFIG_TCG_STORAGE_TEST_DEVICE="/dev/nvme0n1" +CONFIG_TCG_STORAGE_TEST_DEVICE_TYPE="nvme" + +# Storage options for test VM - use NVMe +CONFIG_LIBVIRT_EXTRA_STORAGE_DRIVE_COUNT=1 +CONFIG_LIBVIRT_EXTRA_STORAGE_DRIVE_NVME=y +CONFIG_LIBVIRT_EXTRA_STORAGE_DRIVE_SIZE=10240
defconfigs/tcg-storage-declared-hosts new file +39 -0
@@ -0,0 +1,39 @@ +# +# TCG Storage testing with declared hosts (bare metal or pre-existing infrastructure) +# +# Usage: +# make defconfig-tcg-storage-declared-hosts DECLARE_HOSTS=foo TCG_DEVICE=/dev/nvme0n1 +# make +# make tcg-storage +# +CONFIG_WORKFLOWS=y +CONFIG_WORKFLOWS_TESTS=y +CONFIG_WORKFLOWS_LINUX_TESTS=y +CONFIG_WORKFLOWS_DEDICATED_WORKFLOW=y +CONFIG_KDEVOPS_WORKFLOW_DEDICATE_TCG_STORAGE=y +CONFIG_KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE=y + +# Skip bringup for declared hosts - we're using existing systems +CONFIG_SKIP_BRINGUP=y +CONFIG_KDEVOPS_USE_DECLARED_HOSTS=y + +# TCG Storage testing options +CONFIG_TCG_STORAGE_GITHUB_URL="https://github.com/open-source-firmware/go-tcg-storage" +CONFIG_TCG_STORAGE_BRANCH="main" + +# Device configuration - will be overridden by TCG_DEVICE variable +CONFIG_TCG_STORAGE_TEST_DEVICE="/dev/nvme0n1" +CONFIG_TCG_STORAGE_TEST_DEVICE_TYPE="nvme" +CONFIG_TCG_STORAGE_TEST_PASSWORD="testpassword123" + +# Enable both unit and integration tests for real hardware +CONFIG_TCG_STORAGE_RUN_UNIT_TESTS=y +CONFIG_TCG_STORAGE_RUN_INTEGRATION_TESTS=y + +# Enable all TCG test types for real hardware +CONFIG_TCG_STORAGE_TEST_TAKE_OWNERSHIP=y +CONFIG_TCG_STORAGE_TEST_LOCKING_RANGES=y +# Be careful with revert on real hardware +CONFIG_TCG_STORAGE_TEST_REVERT=n + +CONFIG_TCG_STORAGE_RESULTS_DIR="workflows/tcg-storage/results"
kconfigs/workflows/Kconfig +31 -0
@@ -248,6 +248,15 @@ config KDEVOPS_WORKFLOW_DEDICATE_BUILD_LINUX This will dedicate your configuration to running only the build-linux workflow for repeated Linux kernel builds. +config KDEVOPS_WORKFLOW_DEDICATE_TCG_STORAGE + bool "tcg-storage" + depends on !KDEVOPS_USE_DECLARED_HOSTS + select KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE + help + This will dedicate your configuration to running only the + TCG storage workflow for testing TCG/OPAL functionality on + self-encrypting drives. + endchoice config KDEVOPS_WORKFLOW_NAME
@@ -267,6 +276,7 @@ config KDEVOPS_WORKFLOW_NAME default "ai" if KDEVOPS_WORKFLOW_DEDICATE_AI default "minio" if KDEVOPS_WORKFLOW_DEDICATE_MINIO default "build-linux" if KDEVOPS_WORKFLOW_DEDICATE_BUILD_LINUX + default "tcg-storage" if KDEVOPS_WORKFLOW_DEDICATE_TCG_STORAGE endif
@@ -395,6 +405,16 @@ config KDEVOPS_WORKFLOW_NOT_DEDICATED_ENABLE_AI Select this option if you want to provision AI benchmarks on a single target node for by-hand testing. +config KDEVOPS_WORKFLOW_NOT_DEDICATED_ENABLE_TCG_STORAGE + bool "tcg-storage" + depends on !KDEVOPS_USE_DECLARED_HOSTS + select KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE + depends on LIBVIRT || TERRAFORM_PRIVATE_NET + help + Select this option if you want to provision TCG storage testing on a + single target node for testing TCG/OPAL functionality on + self-encrypting drives. + endif # !WORKFLOWS_DEDICATED_WORKFLOW config KDEVOPS_WORKFLOW_ENABLE_FSTESTS
@@ -552,6 +572,17 @@ source "workflows/build-linux/Kconfig" endmenu endif # KDEVOPS_WORKFLOW_ENABLE_BUILD_LINUX +config KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE + bool + output yaml + default y if KDEVOPS_WORKFLOW_NOT_DEDICATED_ENABLE_TCG_STORAGE || KDEVOPS_WORKFLOW_DEDICATE_TCG_STORAGE + +if KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE +menu "Configure and run TCG storage tests" +source "workflows/tcg-storage/Kconfig" +endmenu +endif # KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE + config KDEVOPS_WORKFLOW_ENABLE_SSD_STEADY_STATE bool "Attain SSD steady state prior to tests" output yaml
playbooks/roles/ansible_cfg/defaults/main.yml +3 -0
@@ -1,4 +1,7 @@ --- +ansible_cfg_file: "{{ topdir_path | default(playbook_dir | dirname) }}/ansible.cfg" +topdir_path: "{{ playbook_dir | dirname }}" +ansible_cfg_inventory: "{{ topdir_path | default(playbook_dir | dirname) }}/hosts" ansible_cfg_deprecation_warnings: true ansible_cfg_callback_plugin_string: dense ansible_cfg_callback_plugin_check_mode_markers: false
playbooks/roles/gen_hosts/defaults/main.yml +3 -0
@@ -1,5 +1,6 @@ # SPDX-License-Identifier GPL-2.0+ --- +ansible_cfg_inventory: "{{ topdir_path | default(playbook_dir | dirname) }}/hosts" topdir_path: "/dev/null" hosts_type_generic: true
@@ -30,6 +31,8 @@ kdevops_workflow_enable_sysbench: false kdevops_workflow_enable_fio_tests: false kdevops_workflow_enable_mmtests: false kdevops_workflow_enable_ai: false +kdevops_workflow_enable_minio: false +kdevops_workflow_enable_tcg_storage: false workflows_reboot_limit: false kdevops_use_declared_hosts: false
playbooks/roles/gen_hosts/tasks/main.yml +15 -0
@@ -270,6 +270,21 @@ - ansible_hosts_template.stat.exists - not kdevops_use_declared_hosts|default(false)|bool +- name: Generate the Ansible hosts file for a dedicated TCG Storage setup + tags: ['hosts'] + ansible.builtin.template: + src: "{{ kdevops_hosts_template }}" + dest: "{{ ansible_cfg_inventory }}" + force: true + trim_blocks: True + lstrip_blocks: True + mode: '0644' + when: + - kdevops_workflows_dedicated_workflow + - kdevops_workflow_enable_tcg_storage|default(false)|bool + - ansible_hosts_template.stat.exists + - not kdevops_use_declared_hosts|default(false)|bool + - name: Verify if final host file exists ansible.builtin.stat: path: "{{ ansible_cfg_inventory }}"
playbooks/roles/gen_hosts/templates/workflows/tcg-storage.j2 new file +38 -0
@@ -0,0 +1,38 @@ +{# +TCG Storage workflow hosts template + +This template generates the Ansible hosts file for the TCG Storage testing workflow. +It supports both single node and baseline/dev (A/B testing) configurations. +#} +[all] +localhost ansible_connection=local +{{ kdevops_host_prefix }}-tcg-storage +{% if kdevops_baseline_and_dev %} +{{ kdevops_host_prefix }}-tcg-storage-dev +{% endif %} + +[all:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +[baseline] +{{ kdevops_host_prefix }}-tcg-storage + +[baseline:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +{% if kdevops_baseline_and_dev %} +[dev] +{{ kdevops_host_prefix }}-tcg-storage-dev + +[dev:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +{% endif %} +[tcg-storage] +{{ kdevops_host_prefix }}-tcg-storage +{% if kdevops_baseline_and_dev %} +{{ kdevops_host_prefix }}-tcg-storage-dev +{% endif %} + +[tcg-storage:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}"
playbooks/roles/gen_nodes/defaults/main.yml +2 -0
@@ -13,6 +13,8 @@ kdevops_workflow_enable_selftests: false kdevops_workflow_enable_mmtests: false kdevops_workflow_enable_fio_tests: false kdevops_workflow_enable_ai: false +kdevops_workflow_enable_minio: false +kdevops_workflow_enable_tcg_storage: false kdevops_nfsd_enable: false kdevops_smbd_enable: false kdevops_krb5_enable: false
playbooks/roles/gen_nodes/tasks/main.yml +35 -0
@@ -906,6 +906,41 @@ - kdevops_baseline_and_dev - not minio_enable_multifs_testing|default(false)|bool +# TCG Storage nodes +- name: Generate the TCG Storage kdevops nodes file using {{ kdevops_nodes_template }} as jinja2 source template + tags: ['hosts'] + vars: + node_template: "{{ kdevops_nodes_template | basename }}" + nodes: "{{ [kdevops_host_prefix + '-tcg-storage'] }}" + all_generic_nodes: "{{ [kdevops_host_prefix + '-tcg-storage'] }}" + ansible.builtin.template: + src: "{{ node_template }}" + dest: "{{ topdir_path }}/{{ kdevops_nodes }}" + force: true + mode: '0644' + when: + - kdevops_workflows_dedicated_workflow + - kdevops_workflow_enable_tcg_storage|default(false)|bool + - ansible_nodes_template.stat.exists + - not kdevops_baseline_and_dev + +- name: Generate the TCG Storage kdevops nodes file with dev hosts using {{ kdevops_nodes_template }} as jinja2 source template + tags: ['hosts'] + vars: + node_template: "{{ kdevops_nodes_template | basename }}" + nodes: "{{ [kdevops_host_prefix + '-tcg-storage', kdevops_host_prefix + '-tcg-storage-dev'] }}" + all_generic_nodes: "{{ [kdevops_host_prefix + '-tcg-storage', kdevops_host_prefix + '-tcg-storage-dev'] }}" + ansible.builtin.template: + src: "{{ node_template }}" + dest: "{{ topdir_path }}/{{ kdevops_nodes }}" + force: true + mode: '0644' + when: + - kdevops_workflows_dedicated_workflow + - kdevops_workflow_enable_tcg_storage|default(false)|bool + - ansible_nodes_template.stat.exists + - kdevops_baseline_and_dev + # Build-linux workflow nodes # Multi-filesystem Build-linux configurations
playbooks/roles/guestfs/defaults/main.yml +3 -0
@@ -1,6 +1,9 @@ --- distro_debian_based: false +virtbuilder_os_version: "debian-13-generic-amd64-daily" libvirt_uri_system: false libvirt_enable_largeio: false bootlinux_9p: false +kdevops_workflow_enable_minio: false +kdevops_workflow_enable_tcg_storage: false
playbooks/roles/tcg_storage/defaults/main.yml new file +28 -0
@@ -0,0 +1,28 @@ +--- +# TCG Storage testing defaults + +# Test configuration +tcg_storage_test_device: "/dev/nvme0n1" +tcg_storage_test_device_type: "nvme" +tcg_storage_test_password: "debug" + +# Repository configuration +tcg_storage_use_local: false +tcg_storage_local_path: "{{ topdir_path }}/go-tcg-storage" +tcg_storage_github_url: "https://github.com/open-source-firmware/go-tcg-storage.git" +tcg_storage_branch: "main" + +# Test options +run_unit_tests: false +run_integration_tests: false +test_take_ownership: false +test_locking_ranges: false +test_revert: false + +# Paths +tcg_storage_dir: "{{ data_path | default('/tmp') }}/go-tcg-storage" +tcg_storage_results_dir: "{{ topdir_path }}/workflows/tcg-storage/results" +tcg_storage_bin_dir: "/usr/local/bin" + +# Test configuration template variables +tcg_test_config_file: "{{ tcg_storage_dir }}/test-config.yaml"
playbooks/roles/tcg_storage/tasks/baseline.yml new file +14 -0
@@ -0,0 +1,14 @@ +--- +# Establish baseline for TCG Storage tests + +- name: Include test running tasks + ansible.builtin.include_tasks: run_tests.yml + +- name: Mark results as baseline + ansible.builtin.copy: + content: | + Baseline established at: {{ ansible_date_time.iso8601 }} + Host: {{ inventory_hostname }} + Kernel: {{ ansible_kernel }} + dest: "{{ tcg_storage_results_dir }}/baseline_info_{{ inventory_hostname }}.txt" + delegate_to: localhost
playbooks/roles/tcg_storage/tasks/build_tools.yml new file +71 -0
72 lines not on this page · raw message
playbooks/roles/tcg_storage/tasks/device_info.yml new file +65 -0
66 lines not on this page · raw message
playbooks/roles/tcg_storage/tasks/install_deps.yml new file +21 -0
@@ -0,0 +1,21 @@ +--- +# Install dependencies for TCG Storage testing + +- name: Install system dependencies including Go + ansible.builtin.package: + name: + - golang + - git + - gcc + - make + state: present + become: yes + +- name: Install TCG/OPAL specific dependencies + ansible.builtin.package: + name: + - sed-opal-unlocker + - libblockdev-crypto + state: present + become: yes + failed_when: false # These packages might not be available on all distros
playbooks/roles/tcg_storage/tasks/main.yml new file +38 -0
@@ -0,0 +1,38 @@ +--- +# Main tasks for TCG Storage testing + +- name: Install dependencies + ansible.builtin.include_tasks: install_deps.yml + tags: [deps] + +- name: Build TCG storage tools + ansible.builtin.include_tasks: build_tools.yml + tags: [build] + +- name: Run TCG storage tests + ansible.builtin.include_tasks: run_tests.yml + tags: [run_tests] + +- name: Establish baseline + ansible.builtin.include_tasks: baseline.yml + tags: [baseline] + +- name: Show tools information + ansible.builtin.include_tasks: tools_info.yml + tags: [tools_info] + +- name: Show device information + ansible.builtin.include_tasks: device_info.yml + tags: [device_info] + +- name: Test take ownership + ansible.builtin.include_tasks: test_take_ownership.yml + tags: [take_ownership] + +- name: Test locking ranges + ansible.builtin.include_tasks: test_locking_ranges.yml + tags: [locking_ranges] + +- name: Test device revert + ansible.builtin.include_tasks: test_revert.yml + tags: [revert]
playbooks/roles/tcg_storage/tasks/run_tests.yml new file +87 -0
88 lines not on this page · raw message
playbooks/roles/tcg_storage/tasks/test_locking_ranges.yml new file +89 -0
90 lines not on this page · raw message
playbooks/roles/tcg_storage/tasks/test_revert.yml new file +80 -0
81 lines not on this page · raw message
playbooks/roles/tcg_storage/tasks/test_take_ownership.yml new file +57 -0
58 lines not on this page · raw message
playbooks/roles/tcg_storage/tasks/tools_info.yml new file +46 -0
47 lines not on this page · raw message
playbooks/roles/tcg_storage/templates/test_config.yaml.j2 new file +28 -0
@@ -0,0 +1,28 @@ +# TCG Storage Test Configuration +# Generated by kdevops for {{ inventory_hostname }} +# Date: {{ ansible_date_time.iso8601 }} + +device: + path: {{ tcg_storage_test_device }} + type: {{ tcg_storage_test_device_type }} + +credentials: + admin_password: {{ tcg_storage_test_password }} +{% if tcg_storage_psid is defined %} + psid: {{ tcg_storage_psid }} +{% endif %} + +test_settings: + run_unit_tests: {{ run_unit_tests|bool }} + run_integration_tests: {{ run_integration_tests|bool }} + +test_suites: + take_ownership: {{ test_take_ownership|bool }} + locking_ranges: {{ test_locking_ranges|bool }} + revert: {{ test_revert|bool }} + +environment: + hostname: {{ inventory_hostname }} + kernel: {{ ansible_kernel }} + distribution: {{ ansible_distribution }} {{ ansible_distribution_version }} + architecture: {{ ansible_architecture }}
playbooks/tcg-storage.yml new file +16 -0
@@ -0,0 +1,16 @@ +--- +# TCG Storage testing playbook +# This playbook manages TCG/OPAL self-encrypting drive testing using the tcg_storage role + +- name: TCG Storage testing workflow + hosts: baseline:dev + become: yes + become_method: sudo + gather_facts: yes + vars: + data_path: /data + topdir_path: "{{ topdir_path | default(playbook_dir + '/..') }}" + roles: + - role: tcg_storage + tags: ['deps', 'build', 'run_tests', 'baseline', 'tools_info', + 'device_info', 'take_ownership', 'locking_ranges', 'revert']
workflows/Makefile +4 -0
@@ -78,6 +78,10 @@ ifeq (y,$(CONFIG_KDEVOPS_WORKFLOW_ENABLE_BUILD_LINUX)) include workflows/build-linux/Makefile endif # CONFIG_KDEVOPS_WORKFLOW_ENABLE_BUILD_LINUX == y +ifeq (y,$(CONFIG_KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE)) +include workflows/tcg-storage/Makefile +endif # CONFIG_KDEVOPS_WORKFLOW_ENABLE_TCG_STORAGE == y + ANSIBLE_EXTRA_ARGS += $(WORKFLOW_ARGS) ANSIBLE_EXTRA_ARGS_SEPARATED += $(WORKFLOW_ARGS_SEPARATED) ANSIBLE_EXTRA_ARGS_DIRECT += $(WORKFLOW_ARGS_DIRECT)
workflows/tcg-storage/Kconfig new file +186 -0
187 lines not on this page · raw message
workflows/tcg-storage/Makefile new file +200 -0
201 lines not on this page · raw message
workflows/tcg-storage/README.md new file +222 -0
223 lines not on this page · raw message
workflows/tcg-storage/results/device_report_debian13-tcg-storage.txt new file +9 -0
@@ -0,0 +1,9 @@ +Device: /dev/nvme0n1 +Date: 2025-09-12T02:12:14Z +Host: debian13-tcg-storage + +TCG/OPAL Information: + + +Disk Statistics: +DEVICE MODEL SERIAL FIRMWARE PROTOCOL SSC STATE
workflows/tcg-storage/scripts/check_tcg_device.sh new file +44 -0
45 lines not on this page · raw message
workflows/tcg-storage/scripts/run_kernel_ci.sh new file +40 -0
@@ -0,0 +1,40 @@ +#!/bin/bash +# SPDX-License-Identifier: copyleft-next-0.3.1 +# TCG Storage kernel CI test runner + +# This script runs TCG storage tests in a kernel CI loop + +set -e + +TOPDIR="${TOPDIR:-$(git rev-parse --show-toplevel)}" +RESULTS_DIR="${TOPDIR}/workflows/tcg-storage/results" + +# Source common CI functions if available +if [ -f "${TOPDIR}/scripts/workflows/common/kernel_ci.sh" ]; then + source "${TOPDIR}/scripts/workflows/common/kernel_ci.sh" +fi + +echo "Starting TCG Storage Kernel CI testing..." +echo "Results will be stored in: ${RESULTS_DIR}" + +# Create results directory if it doesn't exist +mkdir -p "${RESULTS_DIR}" + +# Run the TCG storage tests +echo "Running TCG storage tests..." +make tcg-storage + +# Check test results +if [ -f "${RESULTS_DIR}/summary.txt" ]; then + echo "Test summary:" + cat "${RESULTS_DIR}/summary.txt" +fi + +# Exit with proper status +if grep -q "FAILED" "${RESULTS_DIR}/summary.txt" 2>/dev/null; then + echo "TCG Storage tests FAILED" + exit 1 +else + echo "TCG Storage tests PASSED" + exit 0 +fi
workflows/tcg-storage/scripts/run_kernel_ci_kotd.sh new file +44 -0
45 lines not on this page · raw message
Signature · 1 line
2.51.0