Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test files #49

Merged
merged 3 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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