aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:26:42 +0000
committerastokes <astokes@ef72aa8b-4018-0410-8976-d6e080ef94d8>2010-03-31 19:26:42 +0000
commit8681288aace77dadd3dcd7495c1326eaa1a68c9b (patch)
treed4583c2e9e1b49615ed8b1d5bade47a67d6b4418 /testsuite
parent612e8440fec2a0fd46f7da8a4028c13a35e56f20 (diff)
downloadsos-8681288aace77dadd3dcd7495c1326eaa1a68c9b.tar.gz
dejagnu tests
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@903 ef72aa8b-4018-0410-8976-d6e080ef94d8
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/config/unix.exp11
-rw-r--r--testsuite/site.exp3
-rw-r--r--testsuite/sos.test/normal_users.exp5
3 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/config/unix.exp b/testsuite/config/unix.exp
new file mode 100644
index 00000000..db3331e1
--- /dev/null
+++ b/testsuite/config/unix.exp
@@ -0,0 +1,11 @@
+proc sos_start {} {
+ global SOS
+
+ send_user "starting $SOS"
+ spawn $SOS
+ expect {
+ -re ".*root.*" { perror "Can't start $SOS"; exit 1 }
+ }
+}
+
+sos_start
diff --git a/testsuite/site.exp b/testsuite/site.exp
new file mode 100644
index 00000000..c5e83146
--- /dev/null
+++ b/testsuite/site.exp
@@ -0,0 +1,3 @@
+set tool sos
+set srcdir .
+set objdir sos.test
diff --git a/testsuite/sos.test/normal_users.exp b/testsuite/sos.test/normal_users.exp
new file mode 100644
index 00000000..4bd8c8c8
--- /dev/null
+++ b/testsuite/sos.test/normal_users.exp
@@ -0,0 +1,5 @@
+set test "Test run as normal user"
+exec "/usr/sbin/sosreport"
+expect {
+ -re "root" { pass $test }
+}