Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoziha/mini-test
Minimal test library, born for Fortran.
https://github.com/zoziha/mini-test
fortran fpm minimal test
Last synced: 25 days ago
JSON representation
Minimal test library, born for Fortran.
- Host: GitHub
- URL: https://github.com/zoziha/mini-test
- Owner: zoziha
- License: mit
- Created: 2021-09-08T06:42:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-08T13:26:25.000Z (over 3 years ago)
- Last Synced: 2024-01-29T08:49:05.343Z (12 months ago)
- Topics: fortran, fpm, minimal, test
- Language: Fortran
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MINI-TEST
A minimal test library, born for `Fortran`.
## Getting started
### Get the code
```sh
git clone https://github.com/zoziha/mini-test.git
cd mini-test
```### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm)
Fortran Package Manager (fpm) is a great package manager and build system for Fortran.
You can build using provided `fpm.toml`:
```sh
fpm build
```To use `mini-test` for your `fpm` project tests, add the following to your `fpm.toml` file:
```toml
[dev-dependencies]
mini-test = { git="https://github.com/zoziha/mini-test.git", branch="mt-fpm" }
```## API-Doc
```fortran
public :: check, is_close, disp !! core
public :: optval, to_string !! extra
```Some examples are prepared in the `./example` folder, and you can use `fpm` to run them:
```sh
fpm run --example --list
fpm run --example
```## Links
The `check/optval/to_string` routines are from `fortran-lang/stdlib`; and the `disp` routine is from `keurfonluu/Forlab`.
Thanks for your contributions![fortran-lang/stdlib](https://github.com/fortran-lang/stdlib)
[keurfonluu/Forlab](https://github.com/keurfonluu/Forlab)