Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
680fba7e
Commit
680fba7e
authored
Oct 24, 2012
by
Alexander Smorkalov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repo normalization problems fixed.
parent
4f0f6686
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
22 deletions
+22
-22
all.py
android/service/all.py
+17
-17
push_native.py
android/service/push_native.py
+2
-2
test_native.py
android/service/test_native.py
+3
-3
No files found.
android/service/all.py
View file @
680fba7e
...
...
@@ -8,7 +8,7 @@ LOCAL_LOG_PATH = os.path.join(os.getcwd(), "logs")
if
(
__name__
==
"__main__"
):
if
(
not
os
.
path
.
exists
(
LOCAL_LOG_PATH
)):
os
.
makedirs
(
LOCAL_LOG_PATH
)
os
.
makedirs
(
LOCAL_LOG_PATH
)
print
(
"Building native part of OpenCV Manager..."
)
HomeDir
=
os
.
getcwd
()
...
...
@@ -19,25 +19,25 @@ if (__name__ == "__main__"):
#print(BuildCommand)
res
=
os
.
system
(
BuildCommand
)
if
(
0
==
res
):
print
(
"Build
\t
[OK]"
)
print
(
"Build
\t
[OK]"
)
else
:
print
(
"Build
\t
[FAILED]"
)
print
(
"Build
\t
[FAILED]"
)
sys
.
exit
(
-
1
)
os
.
chdir
(
HomeDir
)
ConfFile
=
open
(
"device.conf"
,
"rt"
)
for
s
in
ConfFile
.
readlines
():
keys
=
s
.
split
(
";"
)
if
(
len
(
keys
)
<
2
):
print
(
"Error: invalid config line:
\"
%
s
\"
"
%
s
)
continue
Arch
=
keys
[
0
]
Name
=
keys
[
1
]
print
(
"testing
\"
%
s
\"
arch"
%
Arch
)
print
(
"Pushing to device
\"
%
s
\"
"
%
Name
)
PushCommand
=
"
%
s
\"
%
s
\"
\"
%
s
\"
2>&1"
%
(
os
.
path
.
join
(
HomeDir
,
"push_native.py"
),
Arch
,
Name
)
os
.
system
(
PushCommand
)
print
(
"Testing on device
\"
%
s
\"
"
%
Name
)
TestCommand
=
"
%
s
\"
%
s
\"
\"
%
s
\"
2>&1"
%
(
os
.
path
.
join
(
HomeDir
,
"test_native.py"
),
Arch
,
Name
)
os
.
system
(
TestCommand
)
\ No newline at end of file
keys
=
s
.
split
(
";"
)
if
(
len
(
keys
)
<
2
):
print
(
"Error: invalid config line:
\"
%
s
\"
"
%
s
)
continue
Arch
=
keys
[
0
]
Name
=
keys
[
1
]
print
(
"testing
\"
%
s
\"
arch"
%
Arch
)
print
(
"Pushing to device
\"
%
s
\"
"
%
Name
)
PushCommand
=
"
%
s
\"
%
s
\"
\"
%
s
\"
2>&1"
%
(
os
.
path
.
join
(
HomeDir
,
"push_native.py"
),
Arch
,
Name
)
os
.
system
(
PushCommand
)
print
(
"Testing on device
\"
%
s
\"
"
%
Name
)
TestCommand
=
"
%
s
\"
%
s
\"
\"
%
s
\"
2>&1"
%
(
os
.
path
.
join
(
HomeDir
,
"test_native.py"
),
Arch
,
Name
)
os
.
system
(
TestCommand
)
\ No newline at end of file
android/service/push_native.py
View file @
680fba7e
...
...
@@ -10,8 +10,8 @@ DEVICE_ARCH = "armeabi"
if
(
__name__
==
"__main__"
):
if
(
len
(
sys
.
argv
)
>=
3
):
DEVICE_ARCH
=
sys
.
argv
[
1
]
DEVICE_NAME
=
sys
.
argv
[
2
]
DEVICE_ARCH
=
sys
.
argv
[
1
]
DEVICE_NAME
=
sys
.
argv
[
2
]
if
(
DEVICE_NAME
!=
""
):
DEVICE_STR
=
"-s
\"
"
+
DEVICE_NAME
+
"
\"
"
...
...
android/service/test_native.py
View file @
680fba7e
...
...
@@ -18,14 +18,14 @@ def RunTestApp(AppName):
if
(
__name__
==
"__main__"
):
if
(
3
==
len
(
sys
.
argv
)):
DEVICE_ARCH
=
sys
.
argv
[
1
]
DEVICE_NAME
=
sys
.
argv
[
2
]
DEVICE_ARCH
=
sys
.
argv
[
1
]
DEVICE_NAME
=
sys
.
argv
[
2
]
if
(
DEVICE_NAME
!=
""
):
DEVICE_STR
=
"-s
\"
"
+
DEVICE_NAME
+
"
\"
"
if
(
not
os
.
path
.
exists
(
LOCAL_LOG_PATH
)):
os
.
makedirs
(
LOCAL_LOG_PATH
)
os
.
makedirs
(
LOCAL_LOG_PATH
)
print
(
"Waiting for device
\"
%
s
\"
with arch
\"
%
s
\"
..."
%
(
DEVICE_NAME
,
DEVICE_ARCH
))
os
.
system
(
"adb
%
s wait-for-device"
%
DEVICE_STR
)
...
...
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