| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | path | |||
| logical, | public | :: | cleanup_on_destroy | = | .true. |
| final :: temp_dir_destroy |
| procedure, public :: create => temp_dir_create | |
| procedure, public :: get_path => temp_dir_get_path | |
| procedure, public :: get_file_path => temp_dir_get_file_path | |
| procedure, public :: cleanup => temp_dir_cleanup |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | prefix |
Create a unique temporary file path without creating a directory
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | prefix | |||
| character(len=*), | intent(in), | optional | :: | extension |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | temp_dir | |||
| character(len=*), | intent(in) | :: | filename |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | path1 | |||
| character(len=*), | intent(in) | :: | path2 |
Create a unique test cache directory to avoid race conditions in parallel tests
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | test_name |
Create a command that runs fortrun with isolated cache
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | test_name |
Create a command that runs fortrun with specified cache directory
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | cache_dir |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | temp_dir |
Safe mkdir that creates parent directories and doesn't terminate on failure (unlike FPM's mkdir)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | dir_path |