tests: Revive unixvictim binaries for Linux/x86*

They're useful for testing 32- and 64-bit builds on the same system.
This commit is contained in:
Ole André Vadla Ravnås committed 2022-05-04 20:54:49 +00:00
1 parent 0fedbe59e8
commit 708e9dbc05
3 files changed
+4

No files matched your search

+4
View File
@@ -2,6 +2,7 @@
import os
import platform
import sys
system = platform.system()
@@ -9,6 +10,9 @@ if system == 'Windows':
target_program = r"C:\Windows\notepad.exe"
elif system == 'Darwin':
target_program = os.path.join(os.path.dirname(__file__), "unixvictim-macos")
elif system == 'Linux' and platform.machine() == 'x86_64':
arch = 'x86_64' if sys.maxsize > 2**32 else 'x86'
target_program = os.path.join(os.path.dirname(__file__), "unixvictim-" + system.lower() + "-" + arch)
else:
target_program = "/bin/cat"
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.