Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vimc-scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Dafna Hirschfeld
vimc-scripts
Commits
faca52b7
Commit
faca52b7
authored
Nov 19, 2019
by
Dafna Hirschfeld
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add unit test for link to same entity
parent
f21dc5d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
unit-tests.sh
unit-tests.sh
+17
-1
No files found.
unit-tests.sh
View file @
faca52b7
...
...
@@ -438,8 +438,24 @@ function test15 {
}
function
test16
{
reinstall_vimc
modprobe
-r
vimc
modprobe
-v
vimc
sca_mult
=
1
echo
"============================================="
echo
"make sure it is impossible to create a link from an entity to itself"
echo
"============================================="
DEV
=
mdev
mkdir
"/configfs/vimc/mdev/"
||
exit
1
mkdir
"/configfs/vimc/mdev/vimc-scaler:sca1"
||
exit
1
link
sca1 vimc-scaler 1 sca1 vimc-scaler 0 on
&&
echo
"Failure: connecting a scaler to itself should not be allowed"
&&
exit
1
}
if
[
$#
==
0
]
;
then
for
test_idx
in
{
1..
9
}
for
test_idx
in
{
1..
16
}
do
test
$test_idx
...
...
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