Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
e5fb47d1
Commit
e5fb47d1
authored
Jun 20, 2020
by
Antoine Kaufmann
Browse files
experiments: default values assuming tools are cloned to root dir of this repo
parent
0baaed18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
experiments/common-functions.sh
experiments/common-functions.sh
+7
-4
No files found.
experiments/common-functions.sh
View file @
e5fb47d1
#!/bin/bash
if
[
!
-f
local-config.sh
]
;
then
echo
"local-config.sh does not exist"
exit
1
EHSIM_BASE
=
"
$(
readlink
-f
$(
dirname
${
BASH_SOURCE
[0]
}
)
/..
)
"
QEMU_CMD
=
"
$EHSIM_BASE
/qemu/x86_64-softmmu/qemu-system-x86_64"
GEM5_BASE
=
"
$EHSIM_BASE
/gem5"
NS3_BASE
=
"
$EHSIM_BASE
/ns-3"
if
[
-f
local-config.sh
]
;
then
source
local-config.sh
fi
source
local-config.sh
if
[
!
-d
"
$EHSIM_BASE
"
]
;
then
echo
"
\$
EHSIM_BASE should be set to the absolute path of the root"
\
...
...
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