aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/testsuite/09domain.sh
blob: 9208dda0ec4ffd2725c8999c451f00f6470213a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh
# Test domain communication.

# Create a domain, write an entry.
[ "`echo -e 'introduce 1 100 7 /my/home
1 write /entry1 create contents
dir /' | ./xs_test 2>&1`" = "handle is 1
entry1" ]

# Release that domain.
[ "`echo -e 'release 1' | ./xs_test`" = "" ]

# Introduce and release by same connection.
[ "`echo -e 'introduce 1 100 7 /my/home
release 1' | ./xs_test 2>&1`" = "handle is 1" ]