From 8681288aace77dadd3dcd7495c1326eaa1a68c9b Mon Sep 17 00:00:00 2001 From: astokes Date: Wed, 31 Mar 2010 19:26:42 +0000 Subject: dejagnu tests git-svn-id: svn+ssh://svn.fedorahosted.org/svn/sos/trunk@903 ef72aa8b-4018-0410-8976-d6e080ef94d8 --- testsuite/config/unix.exp | 11 +++++++++++ testsuite/site.exp | 3 +++ testsuite/sos.test/normal_users.exp | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 testsuite/config/unix.exp create mode 100644 testsuite/site.exp create mode 100644 testsuite/sos.test/normal_users.exp (limited to 'testsuite') 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 } +} -- cgit