Skip to content

Commit

Permalink
Use one master script for setting up .mat files for unit tests.
Browse files Browse the repository at this point in the history
- setup_unit_tests.m now calls all the other data-generating scripts in the folder to save updating the ci.yaml each time.
  • Loading branch information
willGraham01 authored and samcunliffe committed May 12, 2023
1 parent 82860d7 commit f6789ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: Produce MATLAB unit test data
uses: matlab-actions/run-command@v1
with:
command: cd('tdms/tests/unit/matlab_benchmark_scripts/'), make_data_dir, create_structure_array, create_tdms_object_data
command: cd('tdms/tests/unit/matlab_benchmark_scripts/'), setup_unit_tests

# -------------------------------------------------------------------------------
# Ubuntu
Expand Down
3 changes: 0 additions & 3 deletions tdms/tests/unit/matlab_benchmark_scripts/make_data_dir.m

This file was deleted.

7 changes: 7 additions & 0 deletions tdms/tests/unit/matlab_benchmark_scripts/setup_unit_tests.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
if ~exist('matlab_data', 'dir')
mkdir('matlab_data');
end

create_structure_array;
create_tdms_object_data;
create_bad_tdms_object_data;

0 comments on commit f6789ab

Please sign in to comment.