Skip to content

Commit 8ba1034

Browse files
committed
Add tests for Linux Execute Command 32-bit/64-bit RISC-V LE payloads
1 parent 27ebde9 commit 8ba1034

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

spec/modules/payloads_spec.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,6 +1845,16 @@
18451845
reference_name: 'linux/ppc64/shell_reverse_tcp'
18461846
end
18471847

1848+
context 'linux/riscv32le/exec' do
1849+
it_should_behave_like 'payload cached size is consistent',
1850+
ancestor_reference_names: [
1851+
'singles/linux/riscv32le/exec'
1852+
],
1853+
dynamic_size: false,
1854+
modules_pathname: modules_pathname,
1855+
reference_name: 'linux/riscv32le/exec'
1856+
end
1857+
18481858
context 'linux/riscv32le/reboot' do
18491859
it_should_behave_like 'payload cached size is consistent',
18501860
ancestor_reference_names: [
@@ -1855,6 +1865,16 @@
18551865
reference_name: 'linux/riscv32le/reboot'
18561866
end
18571867

1868+
context 'linux/riscv64le/exec' do
1869+
it_should_behave_like 'payload cached size is consistent',
1870+
ancestor_reference_names: [
1871+
'singles/linux/riscv64le/exec'
1872+
],
1873+
dynamic_size: false,
1874+
modules_pathname: modules_pathname,
1875+
reference_name: 'linux/riscv64le/exec'
1876+
end
1877+
18581878
context 'linux/riscv64le/reboot' do
18591879
it_should_behave_like 'payload cached size is consistent',
18601880
ancestor_reference_names: [

0 commit comments

Comments
 (0)