Skip to content

Commit 5c5063f

Browse files
committed
update test.yml
1 parent 67a5afc commit 5c5063f

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.github/workflows/tests.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,17 @@ jobs:
5353
run: |
5454
Invoke-WebRequest -URI "${{ matrix.ghidra-release-url }}" -OutFile "./tmp/ghidra.zip"
5555
mkdir ./tmp/ghidra
56-
tar -xf .\tmp\ghidra.zip -C .\tmp\ghidra
56+
tar -xf ./tmp/ghidra.zip -C ./tmp/ghidra
5757
Rename-Item -Path "./tmp/ghidra/$((Get-ChildItem -Path "./tmp/ghidra").BaseName)" -NewName "ghidra_PUBLIC"
5858
Invoke-WebRequest -URI "${{ matrix.jep-jar-release-url }}" -OutFile "./lib/jep-4.2.0.jar"
5959
- name: Build Ghidrathon
60-
run: gradle -PGHIDRA_INSTALL_DIR=${{ github.workspace }}/tmp/ghidra/ghidra_PUBLIC
60+
run: gradle -PGHIDRA_INSTALL_DIR=${{ github.workspace }}/tmp/ghidra/ghidra_PUBLIC
61+
- name: Install Ghidrathon Linux/macOS
62+
if : ${{ matrix.os != 'windows-2019' }}
63+
run: unzip ./dist/$(ls ./dist) -d ./tmp/ghidra/ghidra_PUBLIC/Ghidra/Extensions/
64+
- name: Install Ghidrathon Windows
65+
if : ${{ matrix.os == 'windows-2019' }}
66+
shell: pwsh
67+
run: |
68+
Rename-Item -Path "./dist/$((Get-ChildItem -Path "./dist").BaseName)" -NewName "Ghidrathon.zip"
69+
tar -xf ./dist/Ghidrathon.zip -C ./tmp/ghidra/ghidra_PUBLIC/Ghidra/Extensions/

data/python/tests/hello.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Run Ghidrathon unit tests.
2+
# @author Mike Hunhoff ([email protected])
3+
# @category Python 3
4+
# Copyright (C) 2024 Mandiant, Inc. All Rights Reserved.
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at: [package root]/LICENSE.txt
8+
# Unless required by applicable law or agreed to in writing, software distributed under the License
9+
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
# See the License for the specific language governing permissions and limitations under the License.
11+
12+
import pathlib
13+
import jep
14+
15+
path = pathlib.Path("hello.txt")
16+
path.write_text(f"Hello from Jep {jep.__version__}", encoding="utf-8")

0 commit comments

Comments
 (0)