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

Fully test codebase, make crash directory configurable #17

Merged
merged 23 commits into from
Jan 25, 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
19 changes: 16 additions & 3 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,30 @@ name: Makefile CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches:
- main

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: make install_devel
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ build/
/.devel_installed
/cobrafuzz.egg-info
/crashes
/.coverage
/coverage.xml
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Support code coverage and fuzzing at the same time

### Changed

- Make crash dir configurable (#13)

## [1.0.12] - 2024-01-24

### Added
Expand All @@ -22,5 +32,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Rename to cobrafuzz
- Enable GitHub CI

[Unreleased]: https://github.com/senier/cobrafuzz/compare/v1.0.12...HEAD
[1.0.12]: https://github.com/senier/cobrafuzz/compare/v1.0.11...v1.0.12
[1.0.11]: https://github.com/senier/cobrafuzz/compare/1.0.10...v1.0.11
35 changes: 0 additions & 35 deletions CONTRIBUTING.md

This file was deleted.

6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ check_kacl: .devel_installed
test: test_unit test_integration test_build

test_unit: .devel_installed
PYTHONPATH=. pytest tests/unit
PYTHONPATH=. pytest -vv --cov-report term:skip-covered --cov-report xml:coverage.xml --cov=cobrafuzz --cov=tests.unit --cov-branch --cov-fail-under=100 tests/unit

test_integration: .devel_installed
PYTHONPATH=. pytest tests/integration
PYTHONPATH=. pytest -vv tests/integration

test_build: .devel_installed
python3 -m build
Expand All @@ -39,6 +39,6 @@ format:
black $(PYTHON_PACKAGES)

clean:
rm -rf dist cobrafuzz.egg-info crashes .devel_installed .ruff_cache build .venv
rm -rf dist cobrafuzz.egg-info crashes .devel_installed .ruff_cache build

.PHONY: check check_black check_kacl check_mypy check_ruff test test_build test_integration test_unit install_devel
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@ Which is in turn heavily based on [Michal Zalewski](https://twitter.com/lcamtuf)

## Contributions

Contributions are welcome!:) There are still a lot of things to improve, and tests and features to add. We will slowly post those in the
issues section. Before doing any major contribution please open an issue so we can discuss and help guide the process before
any unnecessary work is done.
Contributions are welcome, feel free to open issues and pull requests.

## Trophies

Expand Down
Loading
Loading