Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72027084
psql_tests.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jul 14, 07:42
Size
843 B
Mime Type
text/x-python
Expires
Tue, Jul 16, 07:42 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19024646
Attached To
R3127 blackdynamite
psql_tests.py
View Options
#!/usr/bin/env python3
import
subprocess
def
_run
(
cmd
):
print
(
cmd
)
ret
=
subprocess
.
call
(
cmd
,
cwd
=
'../example'
,
shell
=
True
)
assert
ret
==
0
def
test_psql
():
_run
(
'createDB.py --bdconf localhost.bd --study test --truerun --yes'
)
_run
(
'createJobs.py --bdconf localhost.bd --study test --truerun --yes'
)
_run
(
'createRuns.py --bdconf localhost.bd --study test --machine_name black --nproc 1 --run_name test --truerun'
)
_run
(
'getRunInfo.py --bdconf localhost.bd --study test --truerun'
)
_run
(
'launchRuns.py --bdconf localhost.bd --study test --outpath /tmp/ --truerun'
)
_run
(
'canYouDigIt.py --bdconf localhost.bd --study test --list_quantities'
)
_run
(
'canYouDigIt.py --bdconf localhost.bd --study test --quantity ekin --fileout tmp.pdf'
)
_run
(
'post_treatment.py --bdconf localhost.bd --study test'
)
Event Timeline
Log In to Comment