Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cmp_tool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Loidolt
cmp_tool
Commits
419e9a01
Commit
419e9a01
authored
1 year ago
by
Dominik Loidolt
Browse files
Options
Downloads
Patches
Plain Diff
Add wrapper to execute programmes on our LEON setup
parent
cf039d29
No related branches found
No related tags found
1 merge request
!31
Add compression speed test bench
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sparc-efl-gcc.txt
+1
-0
1 addition, 0 deletions
sparc-efl-gcc.txt
test/tools/flash_run_leon.sh
+24
-0
24 additions, 0 deletions
test/tools/flash_run_leon.sh
with
25 additions
and
0 deletions
sparc-efl-gcc.txt
+
1
−
0
View file @
419e9a01
...
@@ -5,6 +5,7 @@ objc = 'sparc-elf-gcc'
...
@@ -5,6 +5,7 @@ objc = 'sparc-elf-gcc'
ar = 'sparc-elf-ar'
ar = 'sparc-elf-ar'
strip = 'sparc-elf-strip'
strip = 'sparc-elf-strip'
ld = 'sparc-elf-ld'
ld = 'sparc-elf-ld'
exe_wrapper = '@GLOBAL_SOURCE_ROOT@' / 'test' / 'tools' / 'flash_run_leon.sh'
# pkgconfig = ['false']
# pkgconfig = ['false']
# cmake = ['false']
# cmake = ['false']
...
...
This diff is collapsed.
Click to expand it.
test/tools/flash_run_leon.sh
0 → 100755
+
24
−
0
View file @
419e9a01
#!/bin/bash
set
-euo
pipefail
IFS
=
$'
\n\t
'
# This script is custom-tailored for our test setup and may not run everywhere.
bin_path
=
${
1
:-}
if
[[
-z
"
$bin_path
"
]]
;
then
echo
"usage:
$0
<binary file>"
exit
1
fi
rm
-f
grmon_output
script
-c
"grmon -freq 80 -ftdi -u -jtagcable 1 -e 'reset; wash; load
$bin_path
; run; reg i0; exit'"
grmon_output
if
grep
-q
"Program exited normally"
grmon_output
;
then
if
grep
-q
"i0 ="
grmon_output
;
then
ret
=
$(
grep
'i0 ='
grmon_output |
tr
-s
' '
|
cut
-d
' '
-f
4
)
exit
$ret
fi
fi
exit
1
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