35 lines
1.2 KiB
Matlab
35 lines
1.2 KiB
Matlab
function deleteH5toolsTestFiles()
|
|
% Deletes test suite .h5 files
|
|
%
|
|
% Description:
|
|
% Deletes all the HDF5 files created by the test suite
|
|
%
|
|
% Syntax:
|
|
% test.deleteH5ToolsTestFiles()
|
|
%
|
|
% See Also:
|
|
% runH5toolsTestSuite
|
|
|
|
% By Sara Patterson, 2022 (h5tools-matlab)
|
|
% -------------------------------------------------------------------------
|
|
|
|
% Suppress warnings for when the file doesn't exist
|
|
warning('off', 'MATLAB:DELETE:FileNotFound');
|
|
|
|
testPath = fileparts(fileparts(mfilename('fullpath')));
|
|
delete(fullfile(testPath, 'AttributeTest.h5'));
|
|
delete(fullfile(testPath, 'AttributesTest.h5'));
|
|
delete(fullfile(testPath, 'Collection.h5'));
|
|
delete(fullfile(testPath, 'CopyTest1.h5'));
|
|
delete(fullfile(testPath, 'CopyTest2.h5'));
|
|
delete(fullfile(testPath, 'Dataset.h5'));
|
|
delete(fullfile(testPath, 'File.h5'));
|
|
delete(fullfile(testPath, 'GroupTest.h5'));
|
|
delete(fullfile(testPath, 'EnumClassTest.h5'));
|
|
delete(fullfile(testPath, 'LinkTest.h5'));
|
|
delete(fullfile(testPath, 'MoveTest.h5'));
|
|
delete(fullfile(testPath, 'Test.h5'));
|
|
delete(fullfile(testPath, 'ValidatorTest.h5'));
|
|
|
|
% Restore the normal warning settings
|
|
warning('on', 'MATLAB:DELETE:FileNotFound'); |