Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
ab8210fe
You need to sign in or sign up before continuing.
Commit
ab8210fe
authored
1 year ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/test_play.sh: add --ipfs support
parent
e0602e09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
test_play.sh
tests/test_play.sh
+16
-9
No files found.
tests/test_play.sh
View file @
ab8210fe
...
@@ -12,6 +12,11 @@ fatal()
...
@@ -12,6 +12,11 @@ fatal()
EPM
=
$(
realpath
$(
dirname
$0
)
/../bin/epm
)
EPM
=
$(
realpath
$(
dirname
$0
)
/../bin/epm
)
if
[
"
$1
"
==
"--ipfs"
]
;
then
ipfs
=
"--ipfs"
shift
fi
if
[
"
$1
"
==
"--hasher"
]
;
then
if
[
"
$1
"
==
"--hasher"
]
;
then
shift
shift
...
@@ -25,7 +30,7 @@ if [ "$1" == "--hasher" ] ; then
...
@@ -25,7 +30,7 @@ if [ "$1" == "--hasher" ] ; then
if
[
"
$APP
"
==
"all"
]
;
then
if
[
"
$APP
"
==
"all"
]
;
then
$EPM
play
--list-all
--short
|
while
read
app
;
do
$EPM
play
--list-all
--short
|
while
read
app
;
do
$0
--hasher
$B
$app
</dev/null
||
fatal
$0
$ipfs
--hasher
$B
$app
</dev/null
||
fatal
done
done
exit
exit
fi
fi
...
@@ -35,7 +40,7 @@ if [ "$1" == "--hasher" ] ; then
...
@@ -35,7 +40,7 @@ if [ "$1" == "--hasher" ] ; then
HDIR
=
$(
loginhsh
-q
-t
-d
-p
epm
$B
)
HDIR
=
$(
loginhsh
-q
-t
-d
-p
epm
$B
)
cp
-afv
../
*
$HDIR
/chroot/.in
cp
-afv
../
*
$HDIR
/chroot/.in
loginhsh
-t
-p
epm
$B
-o
-r
"bash -x /.in/tests/test_play.sh --local
$APP
"
||
exit
loginhsh
-t
-p
epm
$B
-o
-r
"bash -x /.in/tests/test_play.sh
$ipfs
--local
$APP
"
||
exit
loginhsh
-c
-t
-p
epm
$B
loginhsh
-c
-t
-p
epm
$B
exit
exit
fi
fi
...
@@ -63,11 +68,11 @@ $EPM --version
...
@@ -63,11 +68,11 @@ $EPM --version
$EPM
print info
$EPM
print info
if
[
-n
"
$SILENT
"
]
;
then
if
[
-n
"
$SILENT
"
]
;
then
$EPM
play
--list-all
--short
|
while
read
app
;
do
$EPM
play
$ipfs
--list-all
--short
|
while
read
app
;
do
echo
-n
"Silent installing
$app
... "
echo
-n
"Silent installing
$app
... "
$EPM
--auto
play
$app
</dev/null
>
/dev/null 2>/dev/null
&&
echo
-n
"DONE"
||
{
echo
"ERROR"
;
continue
;
}
$EPM
--auto
play
$
ipfs
$
app
</dev/null
>
/dev/null 2>/dev/null
&&
echo
-n
"DONE"
||
{
echo
"ERROR"
;
continue
;
}
echo
-n
" Removing
$app
... "
echo
-n
" Removing
$app
... "
$EPM
--auto
play
--remove
$app
</dev/null
>
/dev/null 2>/dev/null
&&
echo
-n
"DONE"
||
{
echo
"ERROR"
;
continue
;
}
$EPM
--auto
play
$ipfs
--remove
$app
</dev/null
>
/dev/null 2>/dev/null
&&
echo
-n
"DONE"
||
{
echo
"ERROR"
;
continue
;
}
done
done
exit
exit
fi
fi
...
@@ -76,18 +81,20 @@ if [ -n "$APP" ] ; then
...
@@ -76,18 +81,20 @@ if [ -n "$APP" ] ; then
app
=
"
$APP
"
app
=
"
$APP
"
echo
echo
echo
"Installing
$app
... "
echo
"Installing
$app
... "
$EPM
--auto
play
--verbose
$app
</dev/null
||
exit
$EPM
--auto
play
--verbose
$ipfs
$app
</dev/null
||
exit
bash
echo
" Removing
$app
... "
echo
" Removing
$app
... "
$EPM
--auto
play
--remove
$app
</dev/null
$EPM
--auto
play
$ipfs
--remove
$app
</dev/null
exit
exit
fi
fi
$EPM
play
--list-all
--short
|
while
read
app
;
do
$EPM
play
--list-all
--short
|
while
read
app
;
do
echo
echo
echo
"Installing
$app
... "
echo
"Installing
$app
... "
$EPM
--auto
play
--verbose
$app
</dev/null
||
exit
$EPM
--auto
play
--verbose
$ipfs
$app
</dev/null
||
exit
bash
echo
" Removing
$app
... "
echo
" Removing
$app
... "
$EPM
--auto
play
--remove
$app
</dev/null
$EPM
--auto
play
$ipfs
--remove
$app
</dev/null
done
done
exit
exit
This diff is collapsed.
Click to expand it.
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