ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation.
test_pm_sys Module Reference

This module contains tests of the module pm_sysShell. More...

Functions/Subroutines

subroutine setTest ()
 
logical(LK) function test_sleep_1 ()
 
logical(LK) function test_SystemInfo_type_1 ()
 
logical(LK) function test_EnvVar_type_1 ()
 Test whether environmental variables can be successfully queried. More...
 
logical(LK) function test_EnvVar_type_2 ()
 Test whether environmental variables can be successfully queried. More...
 
logical(LK) function test_EnvVar_type_3 ()
 Test whether environmental variables can be successfully queried. More...
 
logical(LK) function test_CmdArg_type_1 ()
 Test whether input command line arguments can be successfully retrieved. More...
 
logical(LK) function test_OS_type_1 ()
 Query Shell first and then OS to ensure caching the Shell query results work correctly. More...
 
logical(LK) function test_OS_type_2 ()
 Query Shell first and then OS to ensure caching the Shell query results work correctly. More...
 
logical(LK) function test_OS_type_3 ()
 Query OS first without shell query and then query OS with shell. This will test the remaining uncovered cached conditions in queryOS(). More...
 
logical(LK) function test_SysCmd_type_1 ()
 Test the success of a SysCmd action. More...
 
logical(LK) function test_isFailedExec_1 ()
 Test the success of a SysCmd action. More...
 
logical(LK) function test_isFailedExec_2 ()
 Test the success of a SysCmd action. More...
 
logical(LK) function test_getPathNew_1 ()
 
logical(LK) function test_removeFile_1 ()
 
logical(LK) function test_removeFile_2 ()
 
logical(LK) function test_getSysInfo_1 ()
 Obtain the system info without providing the cachefile name, in which case, no cache file will be generated. More...
 
logical(LK) function test_copyFile_1 ()
 

Variables

type(test_typetest
 

Detailed Description

This module contains tests of the module pm_sysShell.

Author:
Amir Shahmoradi

Function/Subroutine Documentation

◆ setTest()

subroutine test_pm_sys::setTest

Definition at line 36 of file test_pm_sys.F90.

◆ test_CmdArg_type_1()

logical(LK) function test_pm_sys::test_CmdArg_type_1

Test whether input command line arguments can be successfully retrieved.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 183 of file test_pm_sys.F90.

◆ test_copyFile_1()

logical(LK) function test_pm_sys::test_copyFile_1

Definition at line 603 of file test_pm_sys.F90.

References pm_kind::RK.

◆ test_EnvVar_type_1()

logical(LK) function test_pm_sys::test_EnvVar_type_1

Test whether environmental variables can be successfully queried.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 101 of file test_pm_sys.F90.

◆ test_EnvVar_type_2()

logical(LK) function test_pm_sys::test_EnvVar_type_2

Test whether environmental variables can be successfully queried.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 125 of file test_pm_sys.F90.

◆ test_EnvVar_type_3()

logical(LK) function test_pm_sys::test_EnvVar_type_3

Test whether environmental variables can be successfully queried.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 159 of file test_pm_sys.F90.

◆ test_getPathNew_1()

logical(LK) function test_pm_sys::test_getPathNew_1

Definition at line 499 of file test_pm_sys.F90.

◆ test_getSysInfo_1()

logical(LK) function test_pm_sys::test_getSysInfo_1

Obtain the system info without providing the cachefile name, in which case, no cache file will be generated.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 581 of file test_pm_sys.F90.

◆ test_isFailedExec_1()

logical(LK) function test_pm_sys::test_isFailedExec_1

Test the success of a SysCmd action.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 428 of file test_pm_sys.F90.

◆ test_isFailedExec_2()

logical(LK) function test_pm_sys::test_isFailedExec_2

Test the success of a SysCmd action.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 468 of file test_pm_sys.F90.

◆ test_OS_type_1()

logical(LK) function test_pm_sys::test_OS_type_1

Query Shell first and then OS to ensure caching the Shell query results work correctly.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 218 of file test_pm_sys.F90.

◆ test_OS_type_2()

logical(LK) function test_pm_sys::test_OS_type_2

Query Shell first and then OS to ensure caching the Shell query results work correctly.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 258 of file test_pm_sys.F90.

◆ test_OS_type_3()

logical(LK) function test_pm_sys::test_OS_type_3

Query OS first without shell query and then query OS with shell. This will test the remaining uncovered cached conditions in queryOS().

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 322 of file test_pm_sys.F90.

◆ test_removeFile_1()

logical(LK) function test_pm_sys::test_removeFile_1

Definition at line 525 of file test_pm_sys.F90.

◆ test_removeFile_2()

logical(LK) function test_pm_sys::test_removeFile_2

Definition at line 552 of file test_pm_sys.F90.

References pm_kind::RK.

◆ test_sleep_1()

logical(LK) function test_pm_sys::test_sleep_1

Definition at line 73 of file test_pm_sys.F90.

References pm_kind::RK.

◆ test_SysCmd_type_1()

logical(LK) function test_pm_sys::test_SysCmd_type_1

Test the success of a SysCmd action.

Todo:
This test needs further improvements in the future. See comments in the body of the test.

Definition at line 384 of file test_pm_sys.F90.

◆ test_SystemInfo_type_1()

logical(LK) function test_pm_sys::test_SystemInfo_type_1

Definition at line 85 of file test_pm_sys.F90.

Variable Documentation

◆ test

type(test_type) test_pm_sys::test

Definition at line 28 of file test_pm_sys.F90.