test_script:
- 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && file.exe fio.exe && make.exe test'
- - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && python.exe t/run-fio-tests.py --skip 5 --debug'
+ - 'bash.exe -lc "cd \"${APPVEYOR_BUILD_FOLDER}\" && python.exe t/run-fio-tests.py --debug'
artifacts:
- path: os\windows\*.msi
_root = False
_zoned_nullb = False
_not_macos = False
+ _not_windows = False
_unittests = False
_cpucount4 = False
def __init__(self, fio_root):
Requirements._not_macos = platform.system() != "Darwin"
+ Requirements._not_windows = platform.system() != "Windows"
Requirements._linux = platform.system() == "Linux"
if Requirements._linux:
Requirements.root,
Requirements.zoned_nullb,
Requirements.not_macos,
+ Requirements.not_windows,
Requirements.unittests,
Requirements.cpucount4]
for req in req_list:
def not_macos():
return Requirements._not_macos, "platform other than macOS required"
+ def not_windows():
+ return Requirements._not_windows, "platform other than Windows required"
+
def unittests():
return Requirements._unittests, "Unittests support required"
'pre_job': None,
'pre_success': None,
'output_format': 'json',
- 'requirements': [],
+ 'requirements': [Requirements.not_windows],
},
{
'test_id': 6,
# check runtime, confirm criterion calculation, and confirm that criterion was not met
expected = job['timeout'] * 1000
actual = jsonjob['read']['runtime']
- if abs(expected - actual) > 10:
+ if abs(expected - actual) > 50:
line = 'FAILED ' + line + ' ss not attained, expected runtime {0} != actual runtime {1}'.format(expected, actual)
else:
line = line + ' ss not attained, runtime {0} != ss_dur {1} + ss_ramp {2},'.format(actual, job['ss_dur'], job['ss_ramp'])
else:
expected = job['timeout'] * 1000
actual = jsonjob['read']['runtime']
- if abs(expected - actual) < 10:
- result = 'PASSED '
- passed = passed + 1
- else:
+ if abs(expected - actual) > 50:
result = 'FAILED '
failed = failed + 1
+ else:
+ result = 'PASSED '
+ passed = passed + 1
line = result + line + ' no ss, expected runtime {0} ~= actual runtime {1}'.format(expected, actual)
print(line)
if 'steadystate' in jsonjob: