Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smoke: enable every possible volume type for testing posix compliance #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 61 additions & 6 deletions smoke.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,20 @@ function start_fs_with_arbiter()
chmod 0755 $P/export;

glusterd;
gluster --mode=script volume create $V replica 3 arbiter 1 $H:$P/export/export{1,2,3,4,5,6} force;
gluster --mode=script volume create $V replica 2 arbiter 1 $H:$P/export/arbiter{1,2,3,4,5,6} force;
gluster volume start $V;
glusterfs -s $H --volfile-id $V $M;
# mount -t glusterfs $H:/$V $M;
}

function start_fs_with_replica()
{
mkdir -p $P/export;
chmod 0755 $P/export;

glusterd;
gluster --mode=script volume create $V replica 3 $H:$P/export/replica{1,2,3,4,5,6} force;
gluster volume start $V;
gluster volume set $V performance.write-behind off;
glusterfs -s $H --volfile-id $V $M;
# mount -t glusterfs $H:/$V $M;
}
Expand All @@ -37,9 +48,33 @@ function start_fs_with_disperse()
chmod 0755 $P/export;

glusterd;
gluster --mode=script volume create $V disperse 6 redundancy 2 $H:$P/export/export{1,2,3,4,5,6,7,8,9,10,11,12} force;
gluster --mode=script volume create $V disperse 6 redundancy 2 $H:$P/export/disperse{1,2,3,4,5,6,7,8,9,10,11,12} force;
gluster volume start $V;
glusterfs -s $H --volfile-id $V $M;
# mount -t glusterfs $H:/$V $M;
}

function start_fs_with_shard()
{
mkdir -p $P/export;
chmod 0755 $P/export;

glusterd;
gluster --mode=script volume create $V $H:$P/export/shard{1,2,3,4,5} force;
gluster volume set $V features.shard enable;
gluster volume start $V;
glusterfs -s $H --volfile-id $V $M;
# mount -t glusterfs $H:/$V $M;
}

function start_fs_with_distribute()
{
mkdir -p $P/export;
chmod 0755 $P/export;

glusterd;
gluster --mode=script volume create $V $H:$P/export/dht{1,2,3,4,5} force;
gluster volume start $V;
gluster volume set $V performance.write-behind off;
glusterfs -s $H --volfile-id $V $M;
# mount -t glusterfs $H:/$V $M;
}
Expand Down Expand Up @@ -114,9 +149,29 @@ function main ()

cleanup;

#start_fs_with_disperse;
start_fs_with_disperse;

run_tests;

cleanup;

start_fs_with_replica;

run_tests;

cleanup;

start_fs_with_shard;

run_tests;

cleanup;

start_fs_with_distribute;

#run_tests;
run_tests;

cleanup;
}

main "$@";