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
ZhouShuya
OpenXG-RAN
Commits
95873847
Commit
95873847
authored
Dec 08, 2015
by
Rohit Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor updates to the autotest launch script
parent
6f9a17cb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
cmake_targets/autotests/run_exec_autotests.bash
cmake_targets/autotests/run_exec_autotests.bash
+4
-3
cmake_targets/build_oai
cmake_targets/build_oai
+9
-4
No files found.
cmake_targets/autotests/run_exec_autotests.bash
View file @
95873847
...
@@ -400,12 +400,13 @@ else
...
@@ -400,12 +400,13 @@ else
fi
fi
tmpfile
=
`
mktemp
`
tmpfile
=
`
mktemp
`
echo
\'
$passwd
\'
|
sudo
echo
$HOME
>
&
$tmpfile
echo
\'
$passwd
\'
|
$SUDO
echo
$HOME
>
&
$tmpfile
tstsudo
=
`
cat
$tmpfile
`
tstsudo
=
`
cat
$tmpfile
`
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
echo
"User might not have sudo privileges. Exiting"
echo
"
$USER
might not have sudo privileges. Exiting"
echo
"tstsudo =
$tstsudo
"
exit
exit
else
echo
"
$USER
has sudo privileges"
fi
fi
echo
"tstsudo =
$tstsudo
"
echo
"tstsudo =
$tstsudo
"
rm
-fr
$tmpfile
rm
-fr
$tmpfile
...
...
cmake_targets/build_oai
View file @
95873847
...
@@ -555,17 +555,22 @@ function main() {
...
@@ -555,17 +555,22 @@ function main() {
#####################
#####################
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
if
[
"
$OAI_TEST
"
=
"1"
]
;
then
echo_info
"10. Running OAI pre commit tests (pre-ci) ..."
echo_info
"10. Running OAI pre commit tests (pre-ci) ..."
read
-s
-p
"Enter Password: "
mypassword
echo_error
"These scripts ASSUME that user is in /etc/sudoers and can execute commands without PASSWORD prompt"
echo
-e
"
\n
"
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 any time to terminate the autotests..."
echo_info
"You can hit CTRL-C 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
echo
'$mypassword'
|
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-g
"
$TEST_CASE_GROUP
"
-p
'$mypassword'
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
else
else
echo
'$mypassword'
|
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
$OPENAIR_DIR
/cmake_targets/autotests/run_exec_autotests.bash
-p
'$mypassword'
>
&
$OPENAIR_DIR
/cmake_targets/autotests/log/autotests.log &
fi
fi
wait
wait
else
else
...
...
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