diff options
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/config/unix.exp | 11 | ||||
-rw-r--r-- | testsuite/site.exp | 3 | ||||
-rw-r--r-- | testsuite/sos.test/normal_users.exp | 5 |
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 } +} |