Skip to content

Commit

Permalink
Add test files (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
puffyCid authored Dec 21, 2024
1 parent 7d132c4 commit 6f6fddb
Show file tree
Hide file tree
Showing 6 changed files with 1,368 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pullrequest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
run: cargo clippy

- name: Download test files
run: wget -O ./tests.zip https://github.com/mandiant/macos-UnifiedLogs/releases/download/v1.0.0/tests.zip && unzip tests.zip
run: cd tests && wget -O ./test_data.zip https://github.com/mandiant/macos-UnifiedLogs/releases/download/v1.0.0/test_data.zip && unzip test_data.zip
- name: Build tests
run: cargo test --no-run --release
- name: Run tests
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
Cargo.lock
*.DS_Store
*.logarchive
tests.zip
tests/
test*.zip
tests/test_data
12 changes: 6 additions & 6 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@

# Running test suite
1. Follow steps above
2. Download `tests.zip` from Github releases
3. Copy/move `tests.zip` to clone repo
4. Decompress `tests.zip`
2. Download `test_data.zip` from Github releases
3. Copy/move `test_data.zip` to clone repo `tests` directory
4. Decompress `test_data.zip`
5. Execute `cargo test --release` to run tests
* You can also just use `cargo test` to run tests but it will be slower


# Running benchmarks
1. Download `tests.zip` from Github releases
2. Copy/move `tests.zip` to clone repo
3. Decompress `tests.zip`
1. Download `test_data.zip` from Github releases
2. Copy/move `test_data.zip` to clone repo `tests` directory
3. Decompress `test_data.zip`
4. Run `cargo bench`
or
4. Install criterion, `cargo install cargo-criterion`
Expand Down
Loading

0 comments on commit 6f6fddb

Please sign in to comment.