Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed May 8, 2024
1 parent 87faa66 commit 25c4fe7
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 29 deletions.
20 changes: 0 additions & 20 deletions .gitattributes

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/ci_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: cmake --workflow --preset default
11 changes: 4 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
cmake_minimum_required(VERSION 3.15)
cmake_minimum_required(VERSION 3.19)

project(LunarLander1969
LANGUAGES Fortran)

enable_testing()

# --- auto-ignore build directory
if(NOT EXISTS ${PROJECT_BINARY_DIR}/.gitignore)
file(WRITE ${PROJECT_BINARY_DIR}/.gitignore "*")
endif()

add_executable(lunar-lander lunar.f90)

add_test(NAME basic
COMMAND ${CMAKE_COMMAND}
-Dexe:FILEPATH=$<TARGET_FILE:lunar-lander>
-P ${CMAKE_CURRENT_SOURCE_DIR}/tests/test_stdin.cmake
-P ${CMAKE_CURRENT_SOURCE_DIR}/test/test_stdin.cmake
)
set_property(TEST basic PROPERTY PASS_REGULAR_EXPRESSION "GOOD LANDING")

file(GENERATE OUTPUT .gitignore CONTENT "*")
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_stdin.py → test/test_stdin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@

args = P.args.strip("\"'").split() if P.args else []

subprocess.check_call([str(exe)] + args, stdin=filein.open(), universal_newlines=True)
subprocess.check_call([str(exe)] + args, stdin=filein.open(), text=True)

0 comments on commit 25c4fe7

Please sign in to comment.