Skip to content

Commit

Permalink
Add unit test for arm64 Linux. Fix Vector35#588
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Jul 11, 2024
1 parent 789f8ca commit 262d1e0
Show file tree
Hide file tree
Showing 23 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions scripts/build_linux-arm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
export PATH=~/.local/bin:$PATH
export PYTHONUNBUFFERED=1
poetry install --sync --no-root
poetry run python3 scripts/build.py "$@"
Binary file added test/binaries/Linux-arm64/cat
Binary file not shown.
Binary file added test/binaries/Linux-arm64/commandline_test
Binary file not shown.
Binary file added test/binaries/Linux-arm64/do_exception
Binary file not shown.
Binary file added test/binaries/Linux-arm64/exitcode
Binary file not shown.
Binary file added test/binaries/Linux-arm64/getcwd
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_func
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_func_pie
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_loop
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_loop_pie
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_pie
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_recursion
Binary file not shown.
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_thread
Binary file not shown.
Binary file not shown.
Binary file added test/binaries/Linux-arm64/helloworld_virtual
Binary file not shown.
Binary file added test/binaries/Linux-arm64/many_stdlib_calls
Binary file not shown.
Binary file added test/binaries/Linux-arm64/md5
Binary file not shown.
Binary file added test/binaries/Linux-arm64/nopspeed
Binary file not shown.
Binary file added test/binaries/Linux-arm64/read_input
Binary file not shown.
Binary file added test/binaries/Linux-arm64/test_library
Binary file not shown.
5 changes: 3 additions & 2 deletions test/debugger_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,18 +313,19 @@ def test_attach(self):
dbg.quit_and_wait()


@unittest.skipIf(platform.system() != 'Darwin' or platform.machine() != 'arm64', "Only run arm64 tests on arm Mac")
@unittest.skipIf(platform.machine() not in ['arm64', 'aarch64'], "Only run arm64 tests on arm Mac or Linux")
class DebuggerArm64Test(DebuggerAPI):
def setUp(self) -> None:
self.arch = 'arm64'


@unittest.skipIf(platform.system() == 'Linux' and platform.machine() in ['arm64', 'aarch64'], 'x86 tests not supported on arm64 macOS or Linux')
class Debuggerx64Test(DebuggerAPI):
def setUp(self) -> None:
self.arch = 'x86_64'


@unittest.skipIf(platform.system() in ['Darwin'], 'x86 tests not supported on macOS/Windows')
@unittest.skipIf(platform.machine() in ['arm64', 'aarch64'], 'x86 tests not supported on macOS or arm64 Linux')
class Debuggerx86Test(DebuggerAPI):
def setUp(self) -> None:
self.arch = 'x86'
Expand Down

0 comments on commit 262d1e0

Please sign in to comment.