Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
049d24aa
Commit
049d24aa
authored
9 years ago
by
Cenk Gündoğan
Browse files
Options
Downloads
Patches
Plain Diff
dist/testbed-support: make experiment name configurable
parent
b0ad14c1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dist/testbed-support/Makefile.iotlab
+6
-2
6 additions, 2 deletions
dist/testbed-support/Makefile.iotlab
with
6 additions
and
2 deletions
dist/testbed-support/Makefile.iotlab
+
6
−
2
View file @
049d24aa
...
@@ -7,15 +7,19 @@ IOTLAB_TYPE ?= "m3:at86rf231"
...
@@ -7,15 +7,19 @@ IOTLAB_TYPE ?= "m3:at86rf231"
IOTLAB_AUTH
?=
$(
HOME
)
/.iotlabrc
IOTLAB_AUTH
?=
$(
HOME
)
/.iotlabrc
IOTLAB_USER
?=
$(
shell
cut
-f1
-d
:
$(
IOTLAB_AUTH
))
IOTLAB_USER
?=
$(
shell
cut
-f1
-d
:
$(
IOTLAB_AUTH
))
IOTLAB_EXP_ID
?=
$(
shell experiment-cli get
-l
--state
Running |
grep
-m
1
'"id"'
|
grep
-Eo
'[[:digit:]]+'
)
IOTLAB_EXP_ID
?=
$(
shell experiment-cli get
-l
--state
Running |
grep
-m
1
'"id"'
|
grep
-Eo
'[[:digit:]]+'
)
IOTLAB_EXP_NAME
?=
RIOT_EXP
$(IOTLAB_AUTH)
:
$(IOTLAB_AUTH)
:
auth-cli
-u
$(
IOTLAB_USER
)
auth-cli
-u
$(
IOTLAB_USER
)
iotlab-exp
:
$(IOTLAB_AUTH) all
iotlab-exp
:
$(IOTLAB_AUTH) all
ifneq
(RIOT_EXP,$(IOTLAB_EXP_NAME))
$(eval IOTLAB_EXP_NAME
:
= RIOT_EXP_$(IOTLAB_EXP_NAME))
endif
ifeq
(,$(AD))
ifeq
(,$(AD))
@echo
"experiment-cli submit -d $(IOTLAB_DURATION) -l $(IOTLAB_NODES),archi=$(IOTLAB_TYPE)+site=$(IOTLAB_SITE),$(ELFFILE),$(IOTLAB_PROFILE) -n
riot_makefile_experiment
"
@echo
"experiment-cli submit -d $(IOTLAB_DURATION) -l $(IOTLAB_NODES),archi=$(IOTLAB_TYPE)+site=$(IOTLAB_SITE),$(ELFFILE),$(IOTLAB_PROFILE) -n
$(IOTLAB_EXP_NAME)
"
endif
endif
$(eval NEW_ID
:
= $(shell experiment-cli submit -d $(IOTLAB_DURATION) -l $(IOTLAB_NODES)
,
archi=$(IOTLAB_TYPE)+site=$(IOTLAB_SITE)
,
$(ELFFILE)
,
$(IOTLAB_PROFILE) -n
riot_makefile_experiment
| grep -Eo '[[:digit:]]+'))
$(eval NEW_ID
:
= $(shell experiment-cli submit -d $(IOTLAB_DURATION) -l $(IOTLAB_NODES)
,
archi=$(IOTLAB_TYPE)+site=$(IOTLAB_SITE)
,
$(ELFFILE)
,
$(IOTLAB_PROFILE) -n
$(IOTLAB_EXP_NAME)
| grep -Eo '[[:digit:]]+'))
$(
AD
)
experiment-cli
wait
-i
$(
NEW_ID
)
$(
AD
)
experiment-cli
wait
-i
$(
NEW_ID
)
iotlab-flash
:
$(IOTLAB_AUTH) all
iotlab-flash
:
$(IOTLAB_AUTH) all
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment