Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dynare
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frédéric Karamé
dynare
Commits
b840af9f
Commit
b840af9f
authored
11 years ago
by
Sébastien Villemot
Browse files
Options
Downloads
Patches
Plain Diff
Modify get_directory_description to return a flat cell
parent
2d966208
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
matlab/utilities/tests/get_directory_description.m
+4
-3
4 additions, 3 deletions
matlab/utilities/tests/get_directory_description.m
matlab/utilities/tests/run_unitary_tests.m
+8
-13
8 additions, 13 deletions
matlab/utilities/tests/run_unitary_tests.m
with
12 additions
and
16 deletions
matlab/utilities/tests/get_directory_description.m
+
4
−
3
View file @
b840af9f
...
...
@@ -24,10 +24,11 @@ file = 1;
for
f
=
1
:
length
(
dd
)
if
~
(
isequal
(
dd
(
f
)
.
name
,
'.'
)
||
isequal
(
dd
(
f
)
.
name
,
'..'
))
if
dd
(
f
)
.
isdir
flist
(
file
)
=
{
get_directory_description
([
basedir
filesep
dd
(
f
)
.
name
])
};
r
=
get_directory_description
([
basedir
filesep
dd
(
f
)
.
name
]);
flist
=
{
flist
{:}
r
{:}
};
else
flist
(
file
)
=
{
[
basedir
filesep
dd
(
f
)
.
name
]
}
;
flist
{
length
(
flist
)
+
1
}
=
[
basedir
filesep
dd
(
f
)
.
name
];
end
file
=
file
+
1
;
end
end
\ No newline at end of file
end
This diff is collapsed.
Click to expand it.
matlab/utilities/tests/run_unitary_tests.m
+
8
−
13
View file @
b840af9f
...
...
@@ -20,22 +20,17 @@ function [report, time] = run_unitary_tests(listoffiles)
report
=
{};
for
f
=
1
:
length
(
listoffiles
)
if
iscell
(
listoffiles
{
f
})
info
=
run_unitary_tests
(
listoffiles
{
f
});
report
=
[
report
;
info
];
else
if
isequal
(
listoffiles
{
f
}(
end
-
1
:
end
),
'.m'
)
&&
isempty
(
strfind
(
listoffiles
{
f
},
'.#'
))
if
is_unitary_test_available
(
listoffiles
{
f
})
disp
([
'***** Process unitary tests in '
listoffiles
{
f
}])
[
check
,
info
]
=
mtest
(
listoffiles
{
f
});
report
=
[
report
;
info
];
else
disp
([
'Booh! No unitary tests available in '
listoffiles
{
f
}])
end
if
isequal
(
listoffiles
{
f
}(
end
-
1
:
end
),
'.m'
)
&&
isempty
(
strfind
(
listoffiles
{
f
},
'.#'
))
if
is_unitary_test_available
(
listoffiles
{
f
})
disp
([
'***** Process unitary tests in '
listoffiles
{
f
}])
[
check
,
info
]
=
mtest
(
listoffiles
{
f
});
report
=
[
report
;
info
];
else
disp
([
'Booh! No unitary tests available in '
listoffiles
{
f
}])
end
end
end
if
nargout
>
1
time
=
clock
;
end
\ No newline at end of file
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment