From b0560dd5ac5dd9ffffc50350d86c9036d4cbbf6e Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Tue, 17 Nov 2026 20:49:47 +0200 Subject: [PATCH 1/4] Functest: Support Dynamic tests Dynamic test is implementation logic on Ruby. Test itself should perfrom all needed checks. Co-authored-by: Cursor Signed-off-by: Kostiantyn Kostiuk --- lib/engines/functest/dynamic_test.rb | 108 ++++++++++++++++++++++++ lib/engines/functest/functest_models.rb | 2 + lib/engines/functest/test_case.rb | 10 ++- lib/engines/functest/test_executor.rb | 47 ++++++++--- lib/engines/functest/test_loader.rb | 41 +++++++++ 5 files changed, 194 insertions(+), 14 deletions(-) create mode 100644 lib/engines/functest/dynamic_test.rb diff --git a/lib/engines/functest/dynamic_test.rb b/lib/engines/functest/dynamic_test.rb new file mode 100644 index 000000000..09fb561dc --- /dev/null +++ b/lib/engines/functest/dynamic_test.rb @@ -0,0 +1,108 @@ +# frozen_string_literal: true + +module AutoHCK + module Functest + # Namespace for dynamic test class factories. Each dynamic test's .rb file + # defines a method here named after the JSON basename (e.g. vm_pause_resume) + # that returns the DynamicTest subclass to instantiate. + module DynamicTests + end + + # Base class for Ruby-driven functest cases. JSON still supplies metadata + # (name, clients, snapshots, timeout, …); when `"dynamic": true`, AutoHCK + # loads the sibling .rb and delegates pre/steps/cleanup here. + # + # Subclasses receive the same runtime handles TestExecutor uses: + # @project, @clients, @tools, @context, @command_execution_manager, + # @step_handler, and @logger. + class DynamicTest + def initialize(executor) + @project = executor.project + @clients = executor.clients + @tools = executor.tools + @context = executor.context + @command_execution_manager = executor.command_execution_manager + @step_handler = executor.step_handler + @logger = @project.logger + @executor = executor + end + + def run_pre_test_commands(_test); end + + def execute_test_steps(_test, _result) + raise NotImplementedError, "#{self.class} must implement #execute_test_steps" + end + + def run_cleanup(_test); end + + protected + + # Runs a CommandInfo step through StepHandler and appends a step result + # entry, matching JSON-driven step reporting. + def execute_and_record(step, result) + index = result[:steps].length + result[:steps] << @executor.execute_test_step(step, index) + end + + # Runs via CommandExecutionManager (no StepHandler output checks) and + # records a step result. Returns the raw execute() hash. + def execute_raw_and_record(step, result) + index = result[:steps].length + desc = @context.substitute_variables(step.desc) + start_time = Time.now + step_result = { + index: index, description: desc, status: 'running', + start_time: start_time.utc.iso8601 + } + outputs = @command_execution_manager.execute(step, replacement: @context.replacement_map) + finalize_recorded_step(step_result, result, start_time, 'passed') + outputs + rescue StandardError => e + finalize_recorded_step(step_result, result, start_time, 'failed', e.message) + raise + end + + def qmp_command(execute, arguments: nil, desc: nil, timeout: 30) + Models::CommandInfo.new( + desc: desc || "QMP: #{execute}", + qmp_command: Models::QmpCommandConfig.new(execute: execute, arguments: arguments), + timeout: timeout + ) + end + + def guest_run(command, desc:, expected_output_contains: nil, timeout: 60) + Models::CommandInfo.new( + desc: desc, + guest_run: command, + expected_output_contains: expected_output_contains, + timeout: timeout + ) + end + + def primary_qmp_result(outputs, step) + machine = @command_execution_manager.primary_machine(step) + outputs.fetch(:qmp_result).fetch(machine) + end + + private + + def finalize_recorded_step(step_result, result, start_time, status, error = nil) + end_time = Time.now + step_result[:status] = status + step_result[:error] = error if error + step_result[:end_time] = end_time.utc.iso8601 + step_result[:duration] = end_time - start_time + log_recorded_step(step_result, status, error) + result[:steps] << step_result + end + + def log_recorded_step(step_result, status, error) + if status == 'passed' + @logger.info(" PASS: #{step_result[:description]}") + else + @logger.error(" FAIL: #{step_result[:description]} - #{error}") + end + end + end + end +end diff --git a/lib/engines/functest/functest_models.rb b/lib/engines/functest/functest_models.rb index 6cca55cb1..621f749bb 100644 --- a/lib/engines/functest/functest_models.rb +++ b/lib/engines/functest/functest_models.rb @@ -4,6 +4,8 @@ module AutoHCK module Functest extend AutoloadExtension + autoload_relative :DynamicTest, 'dynamic_test' + autoload_relative :DynamicTests, 'dynamic_test' autoload_relative :KnownIssue, 'known_issue' autoload_relative :Suite, 'suite' autoload_relative :TestCase, 'test_case' diff --git a/lib/engines/functest/test_case.rb b/lib/engines/functest/test_case.rb index 584b49604..fc99b64d0 100644 --- a/lib/engines/functest/test_case.rb +++ b/lib/engines/functest/test_case.rb @@ -16,7 +16,8 @@ class TestCase < T::Struct const :extra_software, T::Array[String], default: [] const :pre_test_commands, T::Array[Models::CommandInfo], default: [] const :cycles, Integer, default: 1 - prop :test_steps, T::Array[Models::CommandInfo] + # Empty for dynamic tests; JSON-driven cases still supply steps. + prop :test_steps, T::Array[Models::CommandInfo], default: [] const :cleanup, T::Array[Models::CommandInfo], default: [] # Client ids (e.g. 1, 2) this test case needs booted, by position in @@ -32,6 +33,13 @@ class TestCase < T::Struct # tests can start from via boot_from_snapshot_tag. const :save_snapshot_as, T.nilable(String) + # When true, AutoHCK loads the sibling .rb (see dynamic_path) and + # delegates pre/steps/cleanup to a DynamicTest subclass. Snapshots, + # client scoping, and ordering stay under TestExecutor control. + const :dynamic, T::Boolean, default: false + # Absolute path to the Ruby implementation; set by TestLoader, not JSON. + const :dynamic_path, T.nilable(String) + sig { returns(String) } def safe_name name.gsub(/[^\w\-.]/, '_').gsub(/(^_|_$)/, '') diff --git a/lib/engines/functest/test_executor.rb b/lib/engines/functest/test_executor.rb index 71638bb5b..3c6ec904e 100644 --- a/lib/engines/functest/test_executor.rb +++ b/lib/engines/functest/test_executor.rb @@ -8,7 +8,8 @@ module Functest class TestExecutor include Helper - attr_reader :results, :context + attr_reader :results, :context, :project, :clients, :tools, + :command_execution_manager, :step_handler def test_results @results.map { |r| Models::TestResult.from_functest(r) } @@ -90,6 +91,19 @@ def summary passed_with_known_issue: passed_with_known_issue, results: @results } end + # Public so DynamicTest#execute_and_record can share step result formatting. + def execute_test_step(step, index) + desc = @context.substitute_variables(step.desc) + start_time = Time.now + step_result = { index: index, description: desc, status: 'running', start_time: start_time.utc.iso8601 } + run_step(step, step_result, desc) + step_result + ensure + end_time = Time.now + step_result[:end_time] = end_time.utc.iso8601 + step_result[:duration] = end_time - start_time + end + private def summary_results_entries @@ -224,10 +238,13 @@ def run_test_steps(test, result) # clients, then fails the test right away if any step (including # pre_test_commands, cleanup, and parallel branches) targets an # undeclared client or violates a parallel execution constraint. + # Dynamic tests own their steps in Ruby, so JSON step validation is skipped. def prepare_test_clients!(test) raise EngineError, "Test '#{test.name}' has an empty clients list" if test.clients.empty? @command_execution_manager.scope_to_test(test.clients) + return if test.dynamic + validate_step_clients!(test) validate_parallel_blocks!(test) end @@ -369,6 +386,8 @@ def capture_output_owners(branches) end def execute_test_steps(test, result) + return dynamic_impl_for(test).execute_test_steps(test, result) if test.dynamic + test.test_steps.each_with_index { |step, index| result[:steps] << execute_test_step(step, index) } end @@ -408,18 +427,6 @@ def save_snapshot_if_needed(test) @created_tags << tag end - def execute_test_step(step, index) - desc = @context.substitute_variables(step.desc) - start_time = Time.now - step_result = { index: index, description: desc, status: 'running', start_time: start_time.utc.iso8601 } - run_step(step, step_result, desc) - step_result - ensure - end_time = Time.now - step_result[:end_time] = end_time.utc.iso8601 - step_result[:duration] = end_time - start_time - end - def run_step(step, step_result, desc) @step_handler.execute_step(step) step_result[:status] = 'passed' @@ -441,6 +448,7 @@ def log_section(title) end def run_pre_test_commands(test) + return dynamic_impl_for(test).run_pre_test_commands(test) if test.dynamic return if test.pre_test_commands.empty? @logger.info('Running pre-test commands...') @@ -455,6 +463,7 @@ def run_pre_test_commands(test) end def run_cleanup(test) + return run_dynamic_cleanup(test) if test.dynamic return if test.cleanup.empty? @logger.info('Running cleanup steps...') @@ -465,6 +474,18 @@ def run_cleanup(test) end end + def run_dynamic_cleanup(test) + @logger.info('Running dynamic test cleanup...') + dynamic_impl_for(test).run_cleanup(test) + rescue StandardError => e + @logger.warn("Dynamic cleanup failed (ignoring): #{e.message}") + end + + def dynamic_impl_for(test) + @dynamic_impls ||= {} + @dynamic_impls[test.name] ||= TestLoader.load_dynamic_test_class(test).new(self) + end + def collect_memory_dumps(test_name) id = test_name.gsub(/\W/, '_') MemoryDumpCollector.new(@tools, @machine_names, @project.workspace_path, @logger).collect(id) diff --git a/lib/engines/functest/test_loader.rb b/lib/engines/functest/test_loader.rb index 7efbb072f..57eb699b5 100644 --- a/lib/engines/functest/test_loader.rb +++ b/lib/engines/functest/test_loader.rb @@ -31,6 +31,7 @@ def load_test(test_name) @logger.info("Loading test case: #{test_path}") definition = AutoHCK::Helper::Json.read_json(test_path, @logger) resolve_test_paths(definition) + attach_dynamic_path!(definition, test_path) TestCase.from_hash(definition) end @@ -39,8 +40,48 @@ def load_suite_tests(suite) suite.tests.map { |test_name| load_test(test_name) } end + # Resolves and validates the DynamicTest subclass for a dynamic case. + # Named after the JSON basename (e.g. vm_pause_resume), matching how + # QemuHCK dynamic devices expose factory methods. + def self.load_dynamic_test_class(test) + raise EngineError, "Test '#{test.name}' is not dynamic" unless test.dynamic + + path = test.dynamic_path + raise InvalidConfigFile, "Dynamic test path missing for '#{test.name}'" if path.nil? || path.empty? + + require path + + method_name = File.basename(path, '.rb') + unless DynamicTests.respond_to?(method_name) + raise InvalidConfigFile, "DynamicTests.#{method_name} not defined in #{path}" + end + + klass = DynamicTests.public_send(method_name) + unless klass.is_a?(Class) && klass < DynamicTest + raise InvalidConfigFile, "DynamicTests.#{method_name} must return a DynamicTest subclass" + end + + klass + end + + def load_dynamic_test_class(test) + self.class.load_dynamic_test_class(test) + end + private + def attach_dynamic_path!(definition, test_path) + return unless definition['dynamic'] + + ruby_path = test_path.sub(/\.json\z/, '.rb') + unless File.exist?(ruby_path) + raise InvalidConfigFile, "Dynamic test '#{definition['name']}' requires #{ruby_path}" + end + + definition['dynamic_path'] = File.expand_path(ruby_path) + @logger.info("Dynamic test Ruby implementation: #{definition['dynamic_path']}") + end + def resolve_test_paths(definition) STEP_COLLECTIONS.each do |collection| definition.fetch(collection, []).each { |step| resolve_step_paths(step) } From 5f38ed569dcc23d943a671f38f0f94db8e3cd7e7 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Tue, 17 Nov 2026 21:00:52 +0200 Subject: [PATCH 2/4] rspec: Add functest dynamic test spec Co-authored-by: Cursor Signed-off-by: Kostiantyn Kostiuk --- .../functest/test_executor_dynamic_spec.rb | 121 +++++++++++++++ .../functest/test_loader_dynamic_spec.rb | 146 ++++++++++++++++++ 2 files changed, 267 insertions(+) create mode 100644 spec/engines/functest/test_executor_dynamic_spec.rb create mode 100644 spec/engines/functest/test_loader_dynamic_spec.rb diff --git a/spec/engines/functest/test_executor_dynamic_spec.rb b/spec/engines/functest/test_executor_dynamic_spec.rb new file mode 100644 index 000000000..9274ae2b7 --- /dev/null +++ b/spec/engines/functest/test_executor_dynamic_spec.rb @@ -0,0 +1,121 @@ +# frozen_string_literal: true + +require_relative '../../../lib/all' +require_relative '../../../lib/engines/functest/test_context' +require_relative '../../../lib/engines/functest/test_loader' +require_relative '../../../lib/engines/functest/step_handler' +require_relative '../../../lib/engines/functest/parallel_branch_runner' +require_relative '../../../lib/engines/functest/test_executor' +require 'tmpdir' + +describe AutoHCK::Functest::TestExecutor do + let(:logger) { MonoLogger.new(File::NULL) } + let(:test_options) { double('test_options', platform: 'Win2025x64') } + let(:options) { double('options', test: test_options) } + let(:workspace_path) { Dir.mktmpdir('functest_ws') } + let(:project) do + instance_double( + AutoHCK::Project, + logger: logger, + options: options, + workspace_path: workspace_path, + result_uploader: instance_double(AutoHCK::ResultUploader, upload_file: nil), + generate_result_report: nil, + generate_junit: nil, + update_test_stats: nil + ) + end + let(:client) do + instance_double( + AutoHCK::FunctestClient, + name: 'client1', + replacement_map: {}, + reboot_clean: nil, + reboot_from_snapshot: nil, + save_snapshot: nil + ) + end + let(:tools) { instance_double(AutoHCK::FunctestTools) } + let(:command_execution_manager) do + instance_double( + AutoHCK::CommandExecutionManager, + scope_to_test: nil, + primary_machine: 'client1' + ) + end + let(:engine) do + instance_double( + AutoHCK::FunctestEngine, + project: project, + extensions: [], + suite: nil, + default_timeout: 30 + ) + end + let(:run_context) do + described_class::RunContext.new( + clients: [client], + tools: tools, + command_execution_manager: command_execution_manager + ) + end + let(:executor) { described_class.new(engine, run_context) } + + after do + FileUtils.remove_entry(workspace_path) if Dir.exist?(workspace_path) + end + + def build_dynamic_test(dir) + cases = File.join(dir, 'cases') + FileUtils.mkdir_p(cases) + File.write(File.join(cases, 'dyn.json'), <<~JSON) + { "name": "dyn", "dynamic": true } + JSON + File.write(File.join(cases, 'dyn.rb'), <<~RUBY) + module AutoHCK + module Functest + module DynamicTests + def self.dyn + Class.new(AutoHCK::Functest::DynamicTest) do + def run_pre_test_commands(_test) + @pre_called = true + end + + def execute_test_steps(_test, result) + result[:steps] << { index: 0, description: 'dynamic step', status: 'passed' } + end + + def run_cleanup(_test) + @cleanup_called = true + end + + attr_reader :pre_called, :cleanup_called + end + end + end + end + end + RUBY + + loader = AutoHCK::Functest::TestLoader.new(project, dir) + loader.load_test('dyn') + end + + it 'delegates pre/steps/cleanup to the dynamic implementation' do + Dir.mktmpdir('functest_exec_dyn') do |dir| + test = build_dynamic_test(dir) + allow(AutoHCK::TestSummaryLog).to receive(:write) + allow(AutoHCK::MemoryDumpCollector).to receive(:new) + .and_return(instance_double(AutoHCK::MemoryDumpCollector, collect: nil)) + + summary = executor.execute_tests([test]) + impl = executor.send(:dynamic_impl_for, test) + + expect(summary[:passed]).to eq(1) + expect(summary[:failed]).to eq(0) + expect(summary[:results].first[:steps].first[:description]).to eq('dynamic step') + expect(impl.pre_called).to be(true) + expect(impl.cleanup_called).to be(true) + end + end +end diff --git a/spec/engines/functest/test_loader_dynamic_spec.rb b/spec/engines/functest/test_loader_dynamic_spec.rb new file mode 100644 index 000000000..2d26a02d0 --- /dev/null +++ b/spec/engines/functest/test_loader_dynamic_spec.rb @@ -0,0 +1,146 @@ +# frozen_string_literal: true + +require_relative '../../../lib/all' +require_relative '../../../lib/engines/functest/test_loader' +require 'tmpdir' + +describe AutoHCK::Functest::TestLoader do + let(:logger) { MonoLogger.new(File::NULL) } + let(:project) { instance_double(AutoHCK::Project, logger: logger) } + + def write_case(dir, name, json_body, ruby_body: nil) + cases_dir = File.join(dir, 'cases', File.dirname(name)) + FileUtils.mkdir_p(cases_dir) + base = File.join(dir, 'cases', name) + File.write("#{base}.json", json_body) + File.write("#{base}.rb", ruby_body) if ruby_body + end + + describe '#load_test with dynamic cases' do + it 'attaches dynamic_path when dynamic is true and the sibling .rb exists' do + Dir.mktmpdir('functest_dynamic') do |dir| + write_case( + dir, + 'qmp/sample_dynamic', + <<~JSON, + { + "name": "sample_dynamic", + "dynamic": true + } + JSON + ruby_body: <<~RUBY + module AutoHCK + module Functest + module DynamicTests + def self.sample_dynamic + Class.new(AutoHCK::Functest::DynamicTest) + end + end + end + end + RUBY + ) + + loader = described_class.new(project, dir) + test = loader.load_test('qmp/sample_dynamic') + + expect(test.dynamic).to be(true) + expect(test.dynamic_path).to eq(File.expand_path('cases/qmp/sample_dynamic.rb', dir)) + expect(test.test_steps).to eq([]) + end + end + + it 'raises when dynamic is true but the sibling .rb is missing' do + Dir.mktmpdir('functest_dynamic') do |dir| + write_case( + dir, + 'missing_rb', + <<~JSON + { + "name": "missing_rb", + "dynamic": true + } + JSON + ) + + loader = described_class.new(project, dir) + expect { loader.load_test('missing_rb') }.to raise_error( + AutoHCK::InvalidConfigFile, /requires .*missing_rb\.rb/ + ) + end + end + + it 'leaves dynamic false for ordinary JSON cases' do + Dir.mktmpdir('functest_dynamic') do |dir| + write_case( + dir, + 'plain', + <<~JSON + { + "name": "plain", + "test_steps": [ + { "desc": "noop", "host_run": "true" } + ] + } + JSON + ) + + loader = described_class.new(project, dir) + test = loader.load_test('plain') + + expect(test.dynamic).to be(false) + expect(test.dynamic_path).to be_nil + end + end + end + + describe '.load_dynamic_test_class' do + it 'returns the DynamicTest subclass from DynamicTests.' do + Dir.mktmpdir('functest_dynamic') do |dir| + write_case( + dir, + 'factory_ok', + <<~JSON, + { "name": "factory_ok", "dynamic": true } + JSON + ruby_body: <<~RUBY + module AutoHCK + module Functest + module DynamicTests + def self.factory_ok + Class.new(AutoHCK::Functest::DynamicTest) + end + end + end + end + RUBY + ) + + loader = described_class.new(project, dir) + test = loader.load_test('factory_ok') + klass = described_class.load_dynamic_test_class(test) + + expect(klass).to be < AutoHCK::Functest::DynamicTest + end + end + + it 'raises when the factory method is missing' do + Dir.mktmpdir('functest_dynamic') do |dir| + write_case( + dir, + 'no_factory', + <<~JSON, + { "name": "no_factory", "dynamic": true } + JSON + ruby_body: "# no DynamicTests.no_factory defined\n" + ) + + loader = described_class.new(project, dir) + test = loader.load_test('no_factory') + expect { described_class.load_dynamic_test_class(test) }.to raise_error( + AutoHCK::InvalidConfigFile, /DynamicTests\.no_factory not defined/ + ) + end + end + end +end From efce73df155234e2edcbb3b120fc39e7a25cd273 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Tue, 17 Nov 2026 21:06:03 +0200 Subject: [PATCH 3/4] Functest: Add dynamic test example (vm_pause_resume) Co-authored-by: Cursor Signed-off-by: Kostiantyn Kostiuk --- .../tests/cases/qmp/vm_pause_resume.json | 7 ++ .../tests/cases/qmp/vm_pause_resume.rb | 68 +++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 lib/engines/functest/tests/cases/qmp/vm_pause_resume.json create mode 100644 lib/engines/functest/tests/cases/qmp/vm_pause_resume.rb diff --git a/lib/engines/functest/tests/cases/qmp/vm_pause_resume.json b/lib/engines/functest/tests/cases/qmp/vm_pause_resume.json new file mode 100644 index 000000000..4e5787d8f --- /dev/null +++ b/lib/engines/functest/tests/cases/qmp/vm_pause_resume.json @@ -0,0 +1,7 @@ +{ + "name": "vm_pause_resume", + "description": "Pause and resume the VM via QMP, assert query-status transitions, then verify the guest is still responsive. Works with any driver.", + "test_system_ref": "", + "timeout": 180, + "dynamic": true +} diff --git a/lib/engines/functest/tests/cases/qmp/vm_pause_resume.rb b/lib/engines/functest/tests/cases/qmp/vm_pause_resume.rb new file mode 100644 index 000000000..e11f8bcde --- /dev/null +++ b/lib/engines/functest/tests/cases/qmp/vm_pause_resume.rb @@ -0,0 +1,68 @@ +# frozen_string_literal: true + +module AutoHCK + module Functest + module DynamicTests + def self.vm_pause_resume + VmPauseResume + end + + # Ruby rewrite of the QMP stop/cont pattern used by JSON cases such as + # pvpanic/pvpanic_with_stop_continue, plus query-status checks that are + # awkward to express as plain JSON expected-output rules. + class VmPauseResume < DynamicTest + def execute_test_steps(_test, result) + assert_status!(result, 'running', 'before pause') + + execute_and_record(qmp_command('stop', desc: 'QMP: stop (pause) the VM'), result) + assert_status!(result, 'paused', 'while paused') + + execute_and_record(qmp_command('cont', desc: 'QMP: cont (resume) the VM'), result) + assert_status!(result, 'running', 'after resume') + + execute_and_record( + guest_run( + "Write-Output 'PASS: guest alive after pause/resume'", + desc: 'Verify guest is responsive after pause/resume', + expected_output_contains: 'PASS:', + timeout: 60 + ), + result + ) + end + + def run_cleanup(_test) + return unless query_status_value == 'paused' + + @logger.warn('VM still paused after test; issuing QMP cont during cleanup') + @step_handler.execute_step(qmp_command('cont', desc: 'QMP cleanup: resume VM')) + rescue StandardError => e + @logger.warn("vm_pause_resume cleanup could not resume VM: #{e.message}") + end + + private + + def assert_status!(result, expected, label) + step = qmp_command('query-status', desc: "QMP: query-status #{label}") + response = primary_qmp_result(execute_raw_and_record(step, result), step) + status = status_from(response) + return if status == expected + + raise EngineError, "Expected VM status '#{expected}' #{label}, got '#{status.inspect}'" + end + + def query_status_value + step = qmp_command('query-status') + status_from(primary_qmp_result( + @command_execution_manager.execute(step, replacement: @context.replacement_map), + step + )) + end + + def status_from(response) + response.is_a?(Hash) ? response['status'] : response + end + end + end + end +end From 21ba8b3070bf05f5435af858fcb1c7cbca1020d7 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Tue, 17 Nov 2026 21:06:43 +0200 Subject: [PATCH 4/4] dummy: Add vm_pause_resume Co-authored-by: Cursor Signed-off-by: Kostiantyn Kostiuk --- jenkins/test_func_dummy_ci.sh | 4 ++-- lib/engines/functest/tests/suites/dummy.json | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/jenkins/test_func_dummy_ci.sh b/jenkins/test_func_dummy_ci.sh index 65a21eb25..f85d235c2 100755 --- a/jenkins/test_func_dummy_ci.sh +++ b/jenkins/test_func_dummy_ci.sh @@ -19,5 +19,5 @@ bin/auto_hck --verbose functest \ --commit "${GITHUB_COMMIT}" cat "${AUTO_HCK_WORKSPACE_PATH}/latest/functest_results.json" -# Check that all 8 test cases passed -grep -e '"passed": 8,' "${AUTO_HCK_WORKSPACE_PATH}/latest/functest_results.json" +# Check that all 9 test cases passed +grep -e '"passed": 9,' "${AUTO_HCK_WORKSPACE_PATH}/latest/functest_results.json" diff --git a/lib/engines/functest/tests/suites/dummy.json b/lib/engines/functest/tests/suites/dummy.json index 8ee137fab..5a055d31b 100644 --- a/lib/engines/functest/tests/suites/dummy.json +++ b/lib/engines/functest/tests/suites/dummy.json @@ -1,6 +1,6 @@ { "name": "dummy", - "description": "Dummy CI test suite for functest engine validation: snapshot lifecycle, workspace inspection, variable-to-file, host output capture, and parallel steps", + "description": "Dummy CI test suite for functest engine validation: snapshot lifecycle, workspace inspection, variable-to-file, host output capture, parallel steps, and dynamic QMP", "tests": [ "dummy_ci/snapshot_create", "dummy_ci/snapshot_clean_boot", @@ -9,6 +9,7 @@ "dummy_ci/variable_to_file", "dummy_ci/host_output_capture", "dummy_ci/engine_setup_manager_action", - "dummy_ci/parallel_host_guest" + "dummy_ci/parallel_host_guest", + "qmp/vm_pause_resume" ] }