Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
21012a07
Commit
21012a07
authored
Sep 07, 2020
by
Claes
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Project pwrtest01 double node tests added
parent
65e11f0b
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1240 additions
and
107 deletions
+1240
-107
project/pwrtest01/build/src/makefile
project/pwrtest01/build/src/makefile
+4
-0
project/pwrtest01/src/appl/makefile
project/pwrtest01/src/appl/makefile
+10
-0
project/pwrtest01/src/appl/ra_nethtest.cpp
project/pwrtest01/src/appl/ra_nethtest.cpp
+643
-0
project/pwrtest01/src/appl/ra_nethtest.h
project/pwrtest01/src/appl/ra_nethtest.h
+32
-0
project/pwrtest01/src/appl/ra_testall_a.sh
project/pwrtest01/src/appl/ra_testall_a.sh
+16
-0
project/pwrtest01/src/db/directory.wb_load
project/pwrtest01/src/db/directory.wb_load
+15
-5
project/pwrtest01/src/db/pwrp_cnf_distribute.dat
project/pwrtest01/src/db/pwrp_cnf_distribute.dat
+2
-0
project/pwrtest01/src/db/volpwrtest01a.wb_dmp
project/pwrtest01/src/db/volpwrtest01a.wb_dmp
+50
-50
project/pwrtest01/src/db/volpwrtest01b.wb_dmp
project/pwrtest01/src/db/volpwrtest01b.wb_dmp
+468
-52
No files found.
project/pwrtest01/build/src/makefile
View file @
21012a07
...
...
@@ -37,4 +37,8 @@ clean_project:
@
if
[
-e
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01b.db
]
;
then
rm
-r
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01b.db
;
fi
@
if
[
-e
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01c.db
]
;
then
rm
-r
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01c.db
;
fi
@
if
[
-e
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01d.db
]
;
then
rm
-r
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01d.db
;
fi
@
if
[
-e
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01a.db.lock
]
;
then
rm
-r
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01a.db.lock
;
fi
@
if
[
-e
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01b.db.lock
]
;
then
rm
-r
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01b.db.lock
;
fi
@
if
[
-e
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01c.db.lock
]
;
then
rm
-r
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01c.db.loci
;
fi
@
if
[
-e
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01d.db.lock
]
;
then
rm
-r
$(pwre_croot)
/project/pwrtest01/src/db/volpwrtest01d.db.lock
;
fi
@
if
[
-e
$(release_root)
/bld/project/pwrtest01/bld
]
;
then
rm
-r
$(release_root)
/bld/project/pwrtest01/bld
;
fi
project/pwrtest01/src/appl/makefile
View file @
21012a07
...
...
@@ -3,6 +3,8 @@ my : demo_all
include
$(pwr_exe)/pwrp_rules.mk
demo_modules
=
$(pwrp_exe)
/ra_status
\
$(pwrp_exe)
/ra_nethtest
\
$(pwrp_exe)
/ra_testall_a.sh
\
$(pwrp_exe)
/ra_plctest
\
$(pwrp_exe)
/ra_gdhtest
\
$(pwrp_exe)
/ra_timetest
\
...
...
@@ -28,6 +30,14 @@ $(pwrp_exe)/ra_status : $(pwrp_appl)/ra_status.cpp
@
echo
"Building ra_status"
@
g++
-g
-o
$(target)
$(source)
$(pwr_obj)
/pwr_msg_rt.o
-I
$(pwr_inc)
-L
$(pwr_lib)
-lpwr_rt
-lpwr_co
-lpwr_msg_dummy
-lrpcsvc
-lpthread
-lm
-lrt
$(pwrp_exe)/ra_nethtest
:
$(pwrp_appl)/ra_nethtest.cpp $(pwrp_appl)/ra_nethtest.h
@
echo
"Building ra_nethtest"
@
g++
-g
-o
$(target)
$(source)
$(pwr_obj)
/pwr_msg_co.o
$(pwr_obj)
/pwr_msg_rt.o
-I
$(pwrp_inc)
-I
$(pwr_inc)
-L
$(pwr_lib)
-lpwr_rt
-lpwr_co
-lpwr_msg_dummy
-lrpcsvc
-lpthread
-lm
-lrt
-Wall
$(pwrp_exe)/ra_testall_a.sh
:
$(pwrp_appl)/ra_testall_a.sh
@
echo
"Building ra_testall_a"
@
cp
-p
$(source)
$(target)
$(pwrp_exe)/ra_plctest
:
$(pwrp_appl)/ra_plctest.cpp
@
echo
"Building ra_plctest"
@
g++
-g
-o
$(target)
$(source)
$(pwr_obj)
/pwr_msg_rt.o
-I
$(pwr_inc)
-L
$(pwr_lib)
-lpwr_rt
-lpwr_co
-lpwr_msg_dummy
-lrpcsvc
-lpthread
-lm
-lrt
-Wall
...
...
project/pwrtest01/src/appl/ra_nethtest.cpp
0 → 100644
View file @
21012a07
This diff is collapsed.
Click to expand it.
project/pwrtest01/src/appl/ra_nethtest.h
0 → 100644
View file @
21012a07
#include "pwr.h"
#include "co_cdh.h"
#include "rt_gdh.h"
#include "co_tst_log.h"
class
ra_nethtest
{
pwr_tStatus
m_sts
;
tst_log
*
m_log
;
pwr_tOid
m_root
;
pwr_tOid
m_child
;
pwr_tOid
m_dynroot
;
pwr_tStatus
check_object
(
pwr_tOid
oid
);
public:
ra_nethtest
();
~
ra_nethtest
();
void
ObjidToName
(
void
);
void
GetChild
(
void
);
void
GetParent
(
void
);
void
GetNextSibling
(
void
);
void
GetPreviousSibling
(
void
);
void
NameToAttrref
(
void
);
void
AttrrefToName
(
void
);
void
ArefDisabled
(
void
);
void
GetObjectSize
(
void
);
void
GetObjectClass
(
void
);
void
GetAttrRefTid
(
void
);
void
GetObjectLocation
(
void
);
};
project/pwrtest01/src/appl/ra_testall_a.sh
0 → 100755
View file @
21012a07
#!/bin/bash
exec
()
{
echo
"Executing
$1
"
$1
}
dexec
()
{
echo
"Executing
$1
"
$1
&
}
exec
"ra_nethtest"
project/pwrtest01/src/db/directory.wb_load
View file @
21012a07
! Generated by wb_print_wbl 03-
JUN-2020 19:45:06.65
! Generated by wb_print_wbl 03-
SEP-2020 16:41:51.54
! Volume directory
! Version V5.7.1
Volume directory $DirectoryVolume 254.254.254.253
...
...
@@ -16,7 +16,7 @@ Volume directory $DirectoryVolume 254.254.254.253
Attr BusNumber = 999
EndBody
Object PwrTest01a NodeConfig 10 25-MAR-2020 09:04:16.06
Body RtBody 03-
JUN-2020 19:45:06.62
Body RtBody 03-
SEP-2020 16:41:51.48
Attr NodeName = "pwrtest01a"
Attr OperatingSystem = 128
Attr Address = "10.255.100.1"
...
...
@@ -39,10 +39,20 @@ Volume directory $DirectoryVolume 254.254.254.253
Attr Source = "$pwrp_exe/ra_status"
EndBody
EndObject
Object ra_nethtest ApplDistribute 76 03-SEP-2020 16:11:23.15
Body DevBody 03-SEP-2020 16:11:28.98
Attr Source = "$pwrp_exe/ra_nethtest"
EndBody
EndObject
Object ra_testall_a ApplDistribute 77 03-SEP-2020 16:11:55.02
Body DevBody 03-SEP-2020 16:11:59.71
Attr Source = "$pwrp_exe/ra_testall_a.sh"
EndBody
EndObject
EndObject
EndObject
Object PwrTest01b NodeConfig 26 25-MAR-2020 09:06:55.29
Body RtBody 03-
JUN-2020 19:45:06.62
Body RtBody 03-
SEP-2020 16:41:51.48
Attr NodeName = "pwrtest01b"
Attr OperatingSystem = 128
Attr Address = "10.255.100.2"
...
...
@@ -68,7 +78,7 @@ Volume directory $DirectoryVolume 254.254.254.253
EndObject
EndObject
Object PwrTest01c NodeConfig 33 26-MAR-2020 10:23:36.40
Body RtBody 03-
JUN-2020 19:45:06.62
Body RtBody 03-
SEP-2020 16:41:51.48
Attr NodeName = "pwrtest01c"
Attr OperatingSystem = 128
Attr Address = "127.0.0.1"
...
...
@@ -170,7 +180,7 @@ Volume directory $DirectoryVolume 254.254.254.253
EndObject
EndObject
Object PwrTest01d SevNodeConfig 38 26-MAR-2020 10:24:30.82
Body RtBody 03-
JUN-2020 19:45:06.62
Body RtBody 03-
SEP-2020 16:41:51.48
Attr NodeName = "pwrtest01d"
Attr OperatingSystem = 128
Attr Address = "10.255.100.3"
...
...
project/pwrtest01/src/db/pwrp_cnf_distribute.dat
View file @
21012a07
...
...
@@ -21,6 +21,8 @@ appl pwrtest01a S $pwrp_web/*.jpg
appl pwrtest01a S $pwrp_web/*.pdf
appl pwrtest01a S $pwrp_web/*.pwg
appl pwrtest01a E $pwrp_exe/ra_status
appl pwrtest01a E $pwrp_exe/ra_nethtest
appl pwrtest01a E $pwrp_exe/ra_testall_a.sh
node pwrtest01b 128 999 0 - -
load pwrtest01b
appl pwrtest01b W $pwrp_cnf/pwrtest01b/pwr_user2.dat:$pwra_db/pwr_user2.dat $pwra_db/pwr_user2.dat
...
...
project/pwrtest01/src/db/volpwrtest01a.wb_dmp
View file @
21012a07
This diff is collapsed.
Click to expand it.
project/pwrtest01/src/db/volpwrtest01b.wb_dmp
View file @
21012a07
This diff is collapsed.
Click to expand it.
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