Skip to content

Commit

Permalink
use test data repo for dev and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clearbluejar committed Sep 9, 2023
1 parent 72e9597 commit 41f19cd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ fi
# install local workspace and test requirements
pip install -e ".[testing]"

# pull down test data
git clone [email protected]:clearbluejar/ghidriff-test-data.git tests/data

# Setup Ghidra Dev for Reference
# git clone https://github.com/NationalSecurityAgency/ghidra.git ~/ghidra-master
# pushd ~/ghidra-master
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pytest-devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: ${{github.ref}}
- name: Test with pytest on devcontainer
uses: devcontainers/[email protected]
with:
Expand All @@ -33,6 +31,7 @@ jobs:
push: never
runCmd: |
pip install --upgrade pip
pip install -e ".[testing]"
# pip install -r tests/pytest-requirements.txt
pip install -e ".[testing]"
# download data to shared data
git clone [email protected]:clearbluejar/ghidriff-test-data.git tests/data
pytest -rA
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,7 @@ dmypy.json
.ghidra_projects*/
.ghidra_bridge*/
.symbols*/
.ghidriffs/
ghidriffs/

# pytest data (pulled from https://github.com/clearbluejar/ghidriff-test-data)
tests/data
Empty file removed tests/data/.placeholder
Empty file.

0 comments on commit 41f19cd

Please sign in to comment.