From 7fca49dd3d7b0121b32d0a4615ae86cfa150babe Mon Sep 17 00:00:00 2001 From: bcoles Date: Tue, 1 Oct 2024 18:27:30 +1000 Subject: [PATCH] Add tests for Linux Reboot 32-bit/64-bit RISC-V LE payloads --- spec/modules/payloads_spec.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/spec/modules/payloads_spec.rb b/spec/modules/payloads_spec.rb index 19e66f977327b..102f3aa1757e6 100644 --- a/spec/modules/payloads_spec.rb +++ b/spec/modules/payloads_spec.rb @@ -1845,6 +1845,26 @@ reference_name: 'linux/ppc64/shell_reverse_tcp' end + context 'linux/riscv32le/reboot' do + it_should_behave_like 'payload cached size is consistent', + ancestor_reference_names: [ + 'singles/linux/riscv32le/reboot' + ], + dynamic_size: false, + modules_pathname: modules_pathname, + reference_name: 'linux/riscv32le/reboot' + end + + context 'linux/riscv64le/reboot' do + it_should_behave_like 'payload cached size is consistent', + ancestor_reference_names: [ + 'singles/linux/riscv64le/reboot' + ], + dynamic_size: false, + modules_pathname: modules_pathname, + reference_name: 'linux/riscv64le/reboot' + end + context 'linux/x64/exec' do it_should_behave_like 'payload cached size is consistent', ancestor_reference_names: [