Remove broken scripts
This commit is contained in:
parent
bef129da85
commit
502880061b
3 changed files with 1 additions and 66 deletions
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
COUNT=$1
|
||||
WAITFOR=1800 # 30min
|
||||
|
||||
for i in {1..$COUNT}; do
|
||||
timeout $WAITFOR bash <<EOF
|
||||
./xp-instance-runner witness 6000 100 100 &
|
||||
./xp-instance-runner witness2 6000 100 100 &
|
||||
./xp-instance-runner orig 6000 100 100 &
|
||||
./xp-instance-runner naive 6000 100 100 &
|
||||
./xp-instance-runner rr 6000 100 100 &
|
||||
./xp-instance-runner rrh 6000 100 100 &
|
||||
./xp-instance-runner dup2 6000 100 100 &
|
||||
wait;
|
||||
EOF
|
||||
done
|
|
@ -1,48 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Create workdir
|
||||
XP_NAME=$1
|
||||
XP_FOLDER=`mktemp -d -p . ${XP_NAME}-XXXXXXXXXXXXXXXX`
|
||||
XP_ID=`echo $XP_FOLDER|cut -c 3-`
|
||||
cd $XP_FOLDER
|
||||
COUNT=$2
|
||||
INTERVAL=$3
|
||||
SIZE=$4
|
||||
ALLOWED_BOOTSTRAP=190
|
||||
|
||||
# Create folders
|
||||
docker run \
|
||||
--rm \
|
||||
-v `pwd`:/mnt \
|
||||
ubuntu \
|
||||
bash -c "cd /mnt; mkdir -p ./{shared,log,res}; chown -R 1000 ./{shared,log,res}"
|
||||
|
||||
# Run server
|
||||
docker run \
|
||||
--privileged \
|
||||
--rm \
|
||||
-d \
|
||||
--name "$XP_ID-server" \
|
||||
-v `pwd`/shared:/home/donar/shared \
|
||||
-v `pwd`/log:/home/donar/log \
|
||||
registry.gitlab.inria.fr/qdufour/donar \
|
||||
${XP_NAME}-server
|
||||
|
||||
sleep 10
|
||||
docker ps
|
||||
|
||||
# Run client
|
||||
docker run \
|
||||
--privileged \
|
||||
--rm \
|
||||
--name "$XP_ID-client" \
|
||||
$( [[ "${XP_NAME}" == 'witness' ]] && echo "--net=container:$XP_ID-server" ) \
|
||||
-v `pwd`/res:/home/donar/res \
|
||||
-v `pwd`/shared:/home/donar/shared \
|
||||
-v `pwd`/log:/home/donar/log \
|
||||
registry.gitlab.inria.fr/qdufour/donar \
|
||||
${XP_NAME}-client $COUNT $INTERVAL $SIZE
|
||||
|
||||
# Kill
|
||||
#docker kill "$XP_ID-client" || true
|
||||
docker kill "$XP_ID-server" || true
|
|
@ -111,7 +111,7 @@ enum FD_STATE read_packet_from_udp (int fd, struct buffer_packet* bp, struct udp
|
|||
if (nread == -1 && errno == EAGAIN) return FDS_AGAIN;
|
||||
if (nread == 0) return FDS_AGAIN;
|
||||
if (nread == -1) {
|
||||
fprintf(stderr, "A system error occured\n");
|
||||
fprintf(stderr, "A system error occurred\n");
|
||||
return FDS_ERR;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue