Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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
promise
OpenXG-RAN
Commits
016185c1
Commit
016185c1
authored
Oct 16, 2018
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polartest will now create output files in current directory (otherwise it will not run on CI bench)
parent
4b1c9d83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
cmake_targets/autotests/test_case_list.xml
cmake_targets/autotests/test_case_list.xml
+1
-1
openair1/PHY/CODING/TESTBENCH/polartest.c
openair1/PHY/CODING/TESTBENCH/polartest.c
+14
-8
No files found.
cmake_targets/autotests/test_case_list.xml
View file @
016185c1
...
...
@@ -1037,7 +1037,7 @@
<pre_exec_args></pre_exec_args>
<main_exec>
$OPENAIR_DIR/targets/bin/polartest.Rel15
</main_exec>
<main_exec_args>
-q -s-10 -f0
</main_exec_args>
<tags>
ldpc
test.test1
</tags>
<tags>
polar
test.test1
</tags>
<search_expr_true>
BLER= 0.000000
</search_expr_true>
<search_expr_false>
segmentation fault|assertion|exiting|fatal
</search_expr_false>
<nruns>
3
</nruns>
...
...
openair1/PHY/CODING/TESTBENCH/polartest.c
View file @
016185c1
...
...
@@ -82,6 +82,7 @@ int main(int argc, char *argv[]) {
SNRstop
=-
6
.
0
;
decoder_int16
=
1
;
break
;
case
'h'
:
printf
(
"./polartest -s SNRstart -d SNRinc -f SNRstop -m [0=PBCH|1=DCI|2=UCI] -i iterations -l decoderListSize -a pathMetricAppr -q (use fixed point decoder)
\n
"
);
exit
(
-
1
);
...
...
@@ -108,10 +109,13 @@ int main(int argc, char *argv[]) {
//Logging
time_t
currentTime
;
time
(
&
currentTime
);
char
*
folderName
,
fileName
[
512
],
currentTimeInfo
[
25
];
char
fileName
[
512
],
currentTimeInfo
[
25
];
char
folderName
[]
=
"."
;
/*
folderName=getenv("HOME");
strcat(folderName,"/Desktop/polartestResults");
*/
#ifdef DEBUG_POLAR_TIMING
sprintf
(
fileName
,
"%s/TIMING_ListSize_%d_pmAppr_%d_Payload_%d_Itr_%d"
,
folderName
,
decoderListSize
,
pathMetricAppr
,
testLength
,
iterations
);
...
...
@@ -122,8 +126,10 @@ int main(int argc, char *argv[]) {
strcat
(
fileName
,
currentTimeInfo
);
//Create "~/Desktop/polartestResults" folder if it doesn't already exist.
/*
struct stat folder = {0};
if (stat(folderName, &folder) == -1) mkdir(folderName, S_IRWXU | S_IRWXG | S_IRWXO);
*/
FILE
*
logFile
;
logFile
=
fopen
(
fileName
,
"w"
);
...
...
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