-
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.
changes for regression framework and functions for mounting
- Loading branch information
1 parent
7ed2ddd
commit ff62dce
Showing
7 changed files
with
76 additions
and
176 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 |
---|---|---|
@@ -1,25 +1,13 @@ | ||
#!/bin/bash | ||
|
||
source ./regression_helpers | ||
source ./init | ||
|
||
GLUSTERD_DIR=$(dirname $GLUSTERD); | ||
VOLNAME="vol"; | ||
$GLUSTERFSDIR/gluster volume create $VOLNAME $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null; | ||
|
||
mkdir $EXPORT_DIR/$global_bug_id/; | ||
$GLUSTERFSDIR/gluster --mode=script volume stop $VOLNAME | grep "started state" 2>/dev/null 1>/dev/null; | ||
|
||
$GLUSTERD_DIR/gluster volume create vol $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null; | ||
exit $?; | ||
|
||
$GLUSTERD_DIR/gluster --mode=script volume stop vol | grep "started state" 2>/dev/null 1>/dev/null; | ||
|
||
if [ $? -ne 0 ]; then | ||
echo -n "$global_bug_id: " | ||
not_ok; | ||
else | ||
echo -n "$global_bug_id: " | ||
ok; | ||
fi | ||
|
||
test_kill; | ||
|
||
test_cleanup; | ||
|
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 |
---|---|---|
@@ -1,20 +1,9 @@ | ||
#!/bin/bash | ||
|
||
source ./init | ||
source ./regression_helpers | ||
|
||
GLUSTERD_DIR=$(dirname $GLUSTERD); | ||
mkdir $EXPORT_DIR/$global_bug_id/; | ||
VOLNAME="abcdefg"; | ||
$GLUSTERFSDIR/gluster volume delete $VOLNAME --mode=script | grep -i "exist" 2>/dev/null 1>/dev/null | ||
exit $?; | ||
|
||
$GLUSTERD_DIR/gluster volume delete abcdsdrgf --mode=script | grep -i "exist" 2>/dev/null 1>/dev/null | ||
if [ $? -ne 0 ]; then | ||
echo -n "$global_bug_id: " | ||
not_ok; | ||
else | ||
echo -n "$global_bug_id: " | ||
ok; | ||
fi | ||
|
||
test_kill; | ||
|
||
test_cleanup; |
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 |
---|---|---|
@@ -1,22 +1,9 @@ | ||
#!/bin/bash | ||
|
||
|
||
source ./init | ||
source ./regression_helpers | ||
|
||
GLUSTERD_DIR=$(dirname $GLUSTERD); | ||
mkdir $EXPORT_DIR/$global_bug_id/; | ||
|
||
$GLUSTERD_DIR/gluster volume create vol transport tcp,rdma $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null | ||
|
||
if [ $? -ne 0 ]; then | ||
echo -n "$global_bug_id: " | ||
not_ok; | ||
else | ||
echo -n "$global_bug_id: " | ||
ok; | ||
fi | ||
VOLNAME="vol"; | ||
$GLUSTERFSDIR/gluster volume create $VOLNAME transport tcp,rdma $(hostname):$EXPORT_DIR/$global_bug_id/export1 2>/dev/null 1>/dev/null | ||
exit $?; | ||
|
||
test_kill; | ||
|
||
test_cleanup; |
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