Commit 82c1563b authored by Navid Nikaein's avatar Navid Nikaein

minor updates on OAI test 02

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5331 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 4ba0e233
...@@ -1245,7 +1245,7 @@ int main(int argc, char **argv) { ...@@ -1245,7 +1245,7 @@ int main(int argc, char **argv) {
#endif #endif
} //trials } //trials
printf("\n**********rb> %d ***mcs : %d *********SNR = %f dB (%f): TX %d dB (gain %f dB), N0W %f dB, I0 %d dB [ (%d,%d) dB / (%d,%d) dB ]**************************\n", printf("\n**********rb: %d ***mcs : %d *********SNR = %f dB (%f): TX %d dB (gain %f dB), N0W %f dB, I0 %d dB [ (%d,%d) dB / (%d,%d) dB ]**************************\n",
nb_rb,mcs,SNR,SNR2, nb_rb,mcs,SNR,SNR2,
tx_lev_dB, tx_lev_dB,
20*log10(tx_gain), 20*log10(tx_gain),
......
...@@ -56,7 +56,7 @@ def execute(oai, user, pw, logfile,logdir,debug): ...@@ -56,7 +56,7 @@ def execute(oai, user, pw, logfile,logdir,debug):
trace = logdir + '/log_' + case + test + '.txt;' trace = logdir + '/log_' + case + test + '.txt;'
tee = ' 2>&1 | tee ' + trace tee = ' 2>&1 | tee ' + trace
diag = 'check the compilation errors for dlsim in $OPENAIR1_DIR/SIMULATION/LTE_PHY' diag = 'check the compilation errors for dlsim in $OPENAIR1_DIR/SIMULATION/LTE_PHY'
oai.send('make clean;') oai.send('make cleanall;')
oai.send('rm -f ./dlsim.rel8;') oai.send('rm -f ./dlsim.rel8;')
oai.send_expect_false('make dlsim -j4' + tee, makerr1, 1500) oai.send_expect_false('make dlsim -j4' + tee, makerr1, 1500)
oai.send('cp ./dlsim ./dlsim.rel8;') oai.send('cp ./dlsim ./dlsim.rel8;')
...@@ -73,7 +73,7 @@ def execute(oai, user, pw, logfile,logdir,debug): ...@@ -73,7 +73,7 @@ def execute(oai, user, pw, logfile,logdir,debug):
trace = logdir + '/log_' + case + test + '.txt;' trace = logdir + '/log_' + case + test + '.txt;'
tee = ' 2>&1 | tee ' + trace tee = ' 2>&1 | tee ' + trace
diag = 'check the compilation errors for ulsim in $OPENAIR1_DIR/SIMULATION/LTE_PHY' diag = 'check the compilation errors for ulsim in $OPENAIR1_DIR/SIMULATION/LTE_PHY'
oai.send('make clean;') oai.send('make cleanall;')
oai.send('rm -f ./ulsim.rel8;') oai.send('rm -f ./ulsim.rel8;')
oai.send_expect_false('make ulsim -j4' + tee, makerr1, 1500) oai.send_expect_false('make ulsim -j4' + tee, makerr1, 1500)
oai.send('cp ./ulsim ./ulsim.rel8;') oai.send('cp ./ulsim ./ulsim.rel8;')
......
...@@ -93,7 +93,7 @@ def execute(oai, user, pw, logfile,logdir,debug): ...@@ -93,7 +93,7 @@ def execute(oai, user, pw, logfile,logdir,debug):
try: try:
test = 1 test = 1
MIN_SNR = 2 MIN_SNR = 0
name = 'Run oai.dlsim.perf.'+str(PERF)+'%' name = 'Run oai.dlsim.perf.'+str(PERF)+'%'
diag = 'no diagnostic is available, check the log file' diag = 'no diagnostic is available, check the log file'
for i in range(len(PRB)): for i in range(len(PRB)):
......
...@@ -184,3 +184,10 @@ class openair(core): ...@@ -184,3 +184,10 @@ class openair(core):
os.remove(filepath) os.remove(filepath)
#print 'Could not remove the filepath'+ filepath + ' with error ' + OSError #print 'Could not remove the filepath'+ filepath + ' with error ' + OSError
def create_dir(self,dirname,debug) :
if not os.path.exists(dirname) :
try:
os.makedirs(dirname)
except OSError:
# There was an error on creation, so make sure we know about it
raise
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment