-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new design and cleaner output feat: CMake build fix: Cleaner code fix: Cleaner documentation
- Loading branch information
1 parent
55de0d4
commit a68cc72
Showing
30 changed files
with
731 additions
and
543 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## [BUG] [Subject of the issue] | ||
|
||
### Description | ||
|
||
Describe your issue in as much detail as possible here. | ||
|
||
### Your environment | ||
|
||
* OS and version | ||
* branch that causes this issue | ||
|
||
### Steps to reproduce | ||
|
||
* Tell us how to reproduce this issue <br /> | ||
* Where the issue is, if you know <br /> | ||
* Which commands triggered the issue, if any | ||
|
||
### Expected behaviour | ||
|
||
Tell us what should happen | ||
|
||
### Actual behaviour | ||
|
||
Tell us what happens instead | ||
|
||
### Logs | ||
|
||
Please paste any logs here that demonstrate the issue, if they exist | ||
|
||
### Proposed solution | ||
|
||
If you have an idea of how to fix this issue, please write it down here, so we can begin discussing it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
name: Feature report | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
## [FEATURES] [Subject of the issue] | ||
|
||
### Description | ||
|
||
Describe your issue in as much detail as possible here. | ||
|
||
### Your environment | ||
|
||
* OS and version | ||
* branch that causes this issue | ||
|
||
### Is your feature request related to a problem? Please describe. | ||
|
||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
### Describe the solution you'd like | ||
|
||
A clear and concise description of what you want to happen. | ||
|
||
### Expected behaviour | ||
|
||
Tell us what should happen | ||
|
||
### Actual behaviour | ||
|
||
Tell us what happens instead | ||
|
||
### Logs | ||
|
||
Please paste any logs here that demonstrate the issue, if they exist | ||
|
||
### Additional context | ||
|
||
Add any other context or screenshots about the feature request here. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Description | ||
|
||
Please provide a detailed description of what was done in this PR. | ||
|
||
# Changes include | ||
|
||
- [ ] Bugfix (non-breaking change that solves an issue) | ||
- [ ] New feature (non-breaking change that adds functionality) | ||
- [ ] Breaking change (change that is not backwards-compatible and/or changes current functionality) | ||
|
||
# Breaking changes | ||
|
||
Please complete this section if any breaking changes have been made, otherwise delete it. | ||
|
||
# Checklist | ||
|
||
- [ ] I have assigned this PR to myself | ||
- [ ] I have added at least 1 reviewer | ||
- [ ] I have tested this code | ||
- [ ] I have added sufficient documentation in the code | ||
|
||
# Additional comments | ||
|
||
Please post additional comments in this section if you have them, otherwise delete it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build_and_test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build Project | ||
run: make | ||
|
||
- name: Build Unit Tests | ||
run: make tests | ||
|
||
- name: Run Unit Tests | ||
run: ./unit_tests | ||
|
||
- name: Cleanup | ||
run: make fclean |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,25 @@ | ||
# Editor files and folders | ||
# Editor Files and Folders | ||
|
||
.idea/ | ||
.vscode/ | ||
*.DS_Store | ||
.DS_Store | ||
*~ | ||
\#*# | ||
|
||
# Binary files | ||
# Build Files and Binaries | ||
|
||
*.log | ||
*.o | ||
*.so | ||
*.dll | ||
*.dylib | ||
cmake-build-*/ | ||
*build/ | ||
*build_tests/ | ||
IO_Tester | ||
unit_tests | ||
|
||
# Documentation Generation Files | ||
|
||
doc/latex/ | ||
doc/html/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
cmake_minimum_required(VERSION 3.17) | ||
|
||
project(IO_Tester) | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) | ||
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
option(UNIT_TESTS "When sets to ON, build the unit tests" OFF) | ||
|
||
if(UNIT_TESTS) | ||
set(BIN unit_tests) | ||
else() | ||
set(BIN IO_Tester) | ||
endif() | ||
|
||
if(UNIT_TESTS) | ||
find_package(googletest QUIET) | ||
include(FetchContent) | ||
FetchContent_Declare( | ||
googletest | ||
URL https://github.com/google/googletest/archive/609281088cfefc76f9d0ce82e1ff6c30cc3591e5.zip | ||
) | ||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
FetchContent_MakeAvailable(googletest) | ||
endif() | ||
|
||
if(UNIX) | ||
add_compile_options(-Wall -Wextra -Weffc++) | ||
elseif(WIN32) | ||
add_compile_options(/W4) | ||
endif() | ||
|
||
set(MAIN src/main.cpp) | ||
|
||
set(SOURCES | ||
src/io_tester.cpp | ||
src/tools.cpp | ||
src/parsing.cpp | ||
src/test.cpp | ||
src/diff.cpp | ||
src/updater.cpp | ||
) | ||
|
||
set(TEST_SOURCES | ||
tests/parser.cpp | ||
) | ||
|
||
if(UNIT_TESTS) | ||
add_executable(${BIN} | ||
${SOURCES} | ||
${TEST_SOURCES} | ||
) | ||
enable_testing() | ||
include(GoogleTest) | ||
gtest_discover_tests(${BIN}) | ||
target_link_libraries(${BIN} PRIVATE gtest_main) | ||
else() | ||
add_executable(${BIN} | ||
${MAIN} | ||
${SOURCES} | ||
) | ||
endif() | ||
|
||
target_link_libraries(${BIN} PRIVATE pthread) | ||
|
||
target_include_directories(${BIN} PRIVATE include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.