Skip to content

Commit 32964be

Browse files
author
David Scott
committed
setup.sh: start the local allocator to complete the connect
Note there is a 'sleep 30' to work around #94 Signed-off-by: David Scott <[email protected]>
1 parent 96436dd commit 32964be

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

setup.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,25 @@ export BISECT_FILE=_build/xenvm.coverage
3232
./xenvm.native lvchange -ay /dev/djstest/live
3333

3434
#./xenvm.native benchmark
35-
3635
# create and connect to hosts
3736
./xenvm.native host-create /dev/djstest host1
3837
./xenvm.native host-connect /dev/djstest host1
38+
cat test.local_allocator.conf.in | sed -r "s|@BIGDISK@|$LOOP|g" | sed -r "s|@HOST@|host1|g" > test.local_allocator.host1.conf
39+
./local_allocator.native --config ./test.local_allocator.host1.conf > /dev/null &
40+
3941
./xenvm.native host-create /dev/djstest host2
4042
./xenvm.native host-connect /dev/djstest host2
43+
cat test.local_allocator.conf.in | sed -r "s|@BIGDISK@|$LOOP|g" | sed -r "s|@HOST@|host2|g" > test.local_allocator.host2.conf
44+
./local_allocator.native --config ./test.local_allocator.host2.conf > /dev/null &
4145

46+
sleep 30
4247
./xenvm.native host-list /dev/djstest
4348

4449
# destroy hosts
4550
./xenvm.native host-disconnect /dev/djstest host2
46-
./xenvm.native host-destroy host2
51+
./xenvm.native host-destroy /dev/djstest host2
4752
./xenvm.native host-disconnect /dev/djstest host1
48-
./xenvm.native host-destroy host1
53+
./xenvm.native host-destroy /dev/djstest host1
4954

5055
./xenvm.native host-list /dev/djstest
5156

0 commit comments

Comments
 (0)