Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dseries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sébastien Villemot
dseries
Commits
59daae3b
Commit
59daae3b
authored
Sep 15, 2018
by
Stéphane Adjemian(Charybdis)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define exit code in Makefile.
parent
925935c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
Makefile
Makefile
+2
-2
success.sh
success.sh
+0
-8
No files found.
Makefile
View file @
59daae3b
...
...
@@ -5,10 +5,10 @@ all: check-octave check-matlab
check-octave
:
@
cd
tests
;
\
$(OCTAVE)
--no-init-file
--silent
--no-history
--eval
"addpath([pwd() '/../m-unit-tests/src']); runalltests"
$(OCTAVE)
--no-init-file
--silent
--no-history
--eval
"addpath([pwd() '/../m-unit-tests/src']); runalltests"
&&
[
!
-f
./failed
]
&&
[
-f
./pass
]
check-matlab
:
@
$(MATLAB)
-nosplash
-nodisplay
-r
"addpath m-unit-tests/src; cd tests; runalltests; quit"
@
$(MATLAB)
-nosplash
-nodisplay
-r
"addpath m-unit-tests/src; cd tests; runalltests; quit"
&&
[
!
-f
./tests/failed
]
&&
[
-f
./tests/pass
]
check-clean
:
rm
-f
tests/
*
_test_
*
.m tests/
*
.csv tests/
*
.xls tests/
*
.xlsx tests/
*
.mat tests/failed tests/datafile_for_test
success.sh
deleted
100755 → 0
View file @
925935c9
#!/bin/bash
if
[[
-f
./tests/failed
]]
;
then
exit
1
elif
[[
-f
./tests/pass
]]
;
then
exit
0
else
exit
1
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment