-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mriyam Tamuli <mbtamuli@gmail.com>
- Loading branch information
Showing
4 changed files
with
88 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin/ | ||
test.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -o errexit # abort on nonzero exitstatus | ||
set -o nounset # abort on unbound variable | ||
set -o pipefail # don't hide errors within pipes | ||
|
||
socket_path="unix://$PWD/test.sock" | ||
plugin="${1:-emptydirclone} --endpoint $socket_path" | ||
csc="${2:-csc} --endpoint $socket_path" | ||
|
||
printf '\nRunning csc tests\n' | ||
|
||
printf '\nRunning the CSI plugin in background\n' | ||
$plugin > /dev/null 2>&1 & | ||
sleep 2 | ||
|
||
printf '\nIdentity service\n' | ||
printf '\n==> csc identity plugin-info\n' | ||
$csc identity plugin-info | ||
|
||
kill %1 |