Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite - base
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
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite - base
Commits
42b003dc
Commit
42b003dc
authored
May 31, 2011
by
Samuel Iglesias Gonsalvez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tps: demo release candidate 1.
"Semos cojonudos"
parent
90bb2623
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
tps.py
tps.py
+8
-3
tps.sh
tps.sh
+5
-0
tpsdefault.cfg
tpsdefault.cfg
+9
-0
No files found.
tps.py
View file @
42b003dc
#!
/usr/bin/env
python
#!
/acc/src/dsc/drivers/cohtdrep/siglesia/Python-2.7/
python
# coding: utf8
##! /usr/bin/env python
import
sys
import
cmd
import
glob
...
...
@@ -29,7 +31,7 @@ def run_test(testname, logname):
tmpout
=
sys
.
stdout
sys
.
stdout
=
open
(
logname
,
'w'
)
mod
=
__import__
(
testname
,
globals
(),
locals
(),
[])
mod
.
main
()
mod
.
main
(
default_directory
=
'./test/spec/python'
)
finally
:
sys
.
stdout
.
close
()
sys
.
stdout
=
tmpout
...
...
@@ -44,7 +46,7 @@ class Suite(object):
self
.
config
=
default_config_file
self
.
log_pattern
=
default_log_pattern
self
.
log_name
=
default_log_name
self
.
read_config
(
self
.
config
)
#
self.read_config(self.config)
def
missing
(
self
):
"""report missing fields before suite run"""
...
...
@@ -54,6 +56,7 @@ class Suite(object):
return
missing
def
read_config
(
self
,
name
=
None
):
print
"SIG: name: "
+
name
if
name
:
self
.
config
=
name
try
:
...
...
@@ -62,6 +65,7 @@ class Suite(object):
errmsg
=
'could not read configuration file {0}'
errmsg
=
errmsg
.
format
(
self
.
config
)
raise
TpsCritical
(
errmsg
)
#print "SIG: cfg: " + cfg
config
=
ConfigParser
(
cfg
)
try
:
...
...
@@ -101,6 +105,7 @@ class Suite(object):
if
not
self
.
serial
:
msg
=
'invalid serial number [{0}]'
.
format
(
self
.
serial
)
raise
TpsInvalid
(
msg
)
self
.
serial
=
self
.
serial
.
strip
(
','
)
warnings
.
simplefilter
(
'error'
)
try
:
...
...
tps.sh
0 → 100755
View file @
42b003dc
#!/bin/sh
rm
/tmp/tps
*
time
./tps.py
-b
SPEC
-s
$1
-t
./test/spec/python
-l
/tmp 00 01 02 03 05 06 07 08
tpsdefault.cfg
0 → 100755
View file @
42b003dc
[global]
board = SPEC
serial = 000000
test_path = tests/
log_path = logs/
sequence = ['00', '02', '03']
repeat = 10
randomize = True
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