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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
971ab65f
Commit
971ab65f
authored
1 year ago
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Physims don't need sudo
parent
13517cd6
Branches unavailable
2025.w14
2025.w13
2025.w12
2025.w11
2025.w10
2025.w09
2025.w08
2025.w07
2025.w06
2025.w05
2025.w04
2025.w03
2025.w02
2024.w51
2024.w50
2024.w49
2024.w48
2024.w47
2024.w46
2024.w45
2024.w44
2024.w43
2024.w42
2024.w41
2024.w40
2024.w39
2024.w38
2024.w36
2024.w35
2024.w34
2024.w33
2024.w32
2024.w31
2024.w30
2024.w29
2024.w28
2024.w27
2024.w26
2024.w25
2024.w24
2024.w23
2024.w22
v2.2.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
21 deletions
+2
-21
cmake_targets/autotests/run_exec_autotests.bash
cmake_targets/autotests/run_exec_autotests.bash
+0
-12
cmake_targets/build_oai
cmake_targets/build_oai
+2
-9
No files found.
cmake_targets/autotests/run_exec_autotests.bash
View file @
971ab65f
...
@@ -30,7 +30,6 @@ fi
...
@@ -30,7 +30,6 @@ fi
source
$OPENAIR_DIR
/cmake_targets/tools/test_helper
source
$OPENAIR_DIR
/cmake_targets/tools/test_helper
SUDO
=
"sudo -E"
tdir
=
$OPENAIR_DIR
/cmake_targets/autotests
tdir
=
$OPENAIR_DIR
/cmake_targets/autotests
rm
-fr
$tdir
/bin
rm
-fr
$tdir
/bin
mkdir
-p
$tdir
/bin
mkdir
-p
$tdir
/bin
...
@@ -178,8 +177,6 @@ RUN_GROUP=0
...
@@ -178,8 +177,6 @@ RUN_GROUP=0
test_case_group
=
""
test_case_group
=
""
test_case_group_array
=()
test_case_group_array
=()
test_case_array
=()
test_case_array
=()
echo_info
"Note that the user should be sudoer for executing certain commands, for example loading kernel modules"
until
[
-z
"
$1
"
]
;
do
until
[
-z
"
$1
"
]
;
do
case
"
$1
"
in
case
"
$1
"
in
...
@@ -207,15 +204,6 @@ until [ -z "$1" ]; do
...
@@ -207,15 +204,6 @@ until [ -z "$1" ]; do
esac
esac
done
done
tmpfile
=
`
mktemp
`
$SUDO
echo
$HOME
>
$tmpfile
tstsudo
=
`
cat
$tmpfile
`
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
echo_error
"
$USER
does not have sudo privileges. Exiting"
exit
fi
rm
-fr
$tmpfile
test_case_excl_list
=
`
xmlstarlet sel
-t
-v
"/testCaseList/TestCaseExclusionList"
$xml_conf
`
test_case_excl_list
=
`
xmlstarlet sel
-t
-v
"/testCaseList/TestCaseExclusionList"
$xml_conf
`
test_case_excl_list
=
`
sed
"s/
\+
/
\*
/g"
<<<
"
$test_case_excl_list
"
`
# Replace + with * for bash string substituion
test_case_excl_list
=
`
sed
"s/
\+
/
\*
/g"
<<<
"
$test_case_excl_list
"
`
# Replace + with * for bash string substituion
echo
"Test Case Exclusion List =
$test_case_excl_list
"
echo
"Test Case Exclusion List =
$test_case_excl_list
"
...
...
This diff is collapsed.
Click to expand it.
cmake_targets/build_oai
View file @
971ab65f
...
@@ -542,22 +542,15 @@ function main() {
...
@@ -542,22 +542,15 @@ function main() {
# Auto-tests #
# Auto-tests #
##############
##############
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
echo_error
"These scripts ASSUME that user is in /etc/sudoers and can execute commands without PASSWORD prompt"
echo_error
"Add the following lines in /etc/sudoers file to make your __user_name__ sudo without password prompt"
echo_error
" __your_user_name__ ALL = (ALL:ALL) NOPASSWD: ALL"
echo_error
" __your_user_name__ ALL = (ALL) NOPASSWD: ALL "
echo_info
"The log file for the autotest script for debugging is located here:
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log "
echo_info
"The log file for the autotest script for debugging is located here:
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log "
echo_info
"The results of autotests results is located here:
$OPENAIR_DIR
/cmake_targets/autotests/log/results_autotests.xml "
echo_info
"The results of autotests results is located here:
$OPENAIR_DIR
/cmake_targets/autotests/log/results_autotests.xml "
echo_info
"You can hit CTRL-C at any time to terminate the autotests..."
echo_info
"You can hit CTRL-C at any time to terminate the autotests..."
echo
"Current User Name:
$USER
"
read
-s
-p
"Enter Password: "
mypassword
echo
-e
"
\n
"
rm
-fr
$OPENAIR_DIR
/cmake_targets/autotests/log
rm
-fr
$OPENAIR_DIR
/cmake_targets/autotests/log
mkdir
-p
$OPENAIR_DIR
/cmake_targets/autotests/log
mkdir
-p
$OPENAIR_DIR
/cmake_targets/autotests/log
if
[
"
$RUN_GROUP
"
-eq
"1"
]
;
then
if
[
"
$RUN_GROUP
"
-eq
"1"
]
;
then
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
-p
$mypassword
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log
else
else
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-p
$mypassword
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log
fi
fi
wait
wait
else
else
...
...
This diff is collapsed.
Click to expand it.
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