Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
fd679552
Commit
fd679552
authored
Sep 04, 2018
by
Pavel Vainerman
Committed by
Pavel Vainerman
Nov 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(CI): minor fixes in tests (for tests in docker)
parent
620bdbe5
Pipeline
#3761
passed with stage
in 8 minutes 22 seconds
Changes
6
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
8 deletions
+6
-8
.gitlab-ci.yml
.gitlab-ci.yml
+0
-2
run_test_mbtcpmaster.sh
extensions/ModbusMaster/tests/run_test_mbtcpmaster.sh
+1
-1
run_test_mbtcpmultimaster.sh
extensions/ModbusMaster/tests/run_test_mbtcpmultimaster.sh
+1
-1
test_mbtcpmaster.cc
extensions/ModbusMaster/tests/test_mbtcpmaster.cc
+0
-0
test_delaytimer.cc
tests/test_delaytimer.cc
+2
-2
test_passivetimer.cc
tests/test_passivetimer.cc
+2
-2
No files found.
.gitlab-ci.yml
View file @
fd679552
...
...
@@ -9,8 +9,6 @@ build and test:
stage
:
build
script
:
-
daas rpmbuild sisyphus --use-ccache --ccache ${CI_PROJECT_DIR}/ccache uniset-check.sh
-
git clean -dxf
-
daas rpmbuild --use-ccache --ccache ${CI_PROJECT_DIR}/ccache p8 uniset-check.sh
after_script
:
-
mkdir -p ${CI_PROJECT_DIR}/${ARTIFACTS_PATH}
-
cp -ar ${CI_PROJECT_DIR}/testsuite ${CI_PROJECT_DIR}/${ARTIFACTS_PATH}/
...
...
extensions/ModbusMaster/tests/run_test_mbtcpmaster.sh
View file @
fd679552
...
...
@@ -15,7 +15,7 @@ cd -
--mbtcp-filter-value
1
\
--mbtcp-gateway-iaddr
localhost
\
--mbtcp-gateway-port
20048
\
--mbtcp-polltime
50
--mbtcp-recv-timeout
5
00
--mbtcp-polltime
50
--mbtcp-recv-timeout
2
00
#--mbtcp-log-add-levels any
#--mbtcp-default-mbinit-ok 1
#--dlog-add-levels any
...
...
extensions/ModbusMaster/tests/run_test_mbtcpmultimaster.sh
View file @
fd679552
...
...
@@ -13,7 +13,7 @@ cd -
--smemory-id
SharedMemory
\
--mbtcp-filter-field
mb
\
--mbtcp-filter-value
1
\
--mbtcp-polltime
50
--mbtcp-recv-timeout
500
--mbtcp-checktime
1000
--mbtcp-timeout
3000
--mbtcp-ignore-timeout
30
00
--dlog-add-levels
warn,crit
--mbtcp-polltime
50
--mbtcp-recv-timeout
500
--mbtcp-checktime
500
--mbtcp-timeout
2500
--mbtcp-ignore-timeout
25
00
--dlog-add-levels
warn,crit
# --dlog-add-levels any
#--mbtcp-force-out 1
#--dlog-add-levels any
extensions/ModbusMaster/tests/test_mbtcpmaster.cc
View file @
fd679552
This diff is collapsed.
Click to expand it.
tests/test_delaytimer.cc
View file @
fd679552
...
...
@@ -183,9 +183,9 @@ TEST_CASE("[DelayTimer]: zero time", "[DelayTimer]" )
msleep
(
40
);
CHECK_FALSE
(
dt
.
check
(
false
)
);
CHECK_FALSE
(
dt
.
check
(
true
)
);
msleep
(
8
0
);
msleep
(
7
0
);
CHECK_FALSE
(
dt
.
check
(
true
)
);
msleep
(
4
0
);
msleep
(
5
0
);
CHECK
(
dt
.
check
(
true
)
);
}
...
...
tests/test_passivetimer.cc
View file @
fd679552
...
...
@@ -91,10 +91,10 @@ TEST_CASE("PassiveTimer: 1 msec", "[PassiveTimer][msec]" )
msleep
(
1
);
CHECK
(
pt
.
checkTime
()
);
pt
.
setTiming
(
2
);
pt
.
setTiming
(
3
);
msleep
(
1
);
CHECK_FALSE
(
pt
.
checkTime
()
);
msleep
(
1
);
msleep
(
2
);
CHECK
(
pt
.
checkTime
()
);
}
// -----------------------------------------------------------------------------
...
...
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