diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-01 17:26:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-07-01 17:26:37 +0000 |
commit | 1fe4042000bb5daea3b4914106869e53c79d3671 (patch) | |
tree | f6a016403b5621d3b7f39a4d63fddca4700b0218 /testsuites/psxtests/psxpasswd01/psxpasswd01.scn | |
parent | 2010-07-01 Vinu Rajashekhar <vinutheraj@gmail.com> (diff) | |
download | rtems-1fe4042000bb5daea3b4914106869e53c79d3671.tar.bz2 |
2010-07-01 Bharath Suri <bharath.s.jois@gmail.com>
PR 1598/testing
* Makefile.am, configure.ac, psxpasswd01/init.c,
psxpasswd01/psxpasswd01.doc, psxpasswd01/psxpasswd01.scn: Add testing
for POSIX user database (e.g. /etc/group and /etc/passwd) access
routines which are implemented in libcsupport/src/getpwent.c.
* psxpasswd02/.cvsignore, psxpasswd02/Makefile.am, psxpasswd02/init.c,
psxpasswd02/psxpasswd02.doc, psxpasswd02/psxpasswd02.scn: New files.
Diffstat (limited to 'testsuites/psxtests/psxpasswd01/psxpasswd01.scn')
-rw-r--r-- | testsuites/psxtests/psxpasswd01/psxpasswd01.scn | 79 |
1 files changed, 75 insertions, 4 deletions
diff --git a/testsuites/psxtests/psxpasswd01/psxpasswd01.scn b/testsuites/psxtests/psxpasswd01/psxpasswd01.scn index 80128cc6f1..a0d0a647ad 100644 --- a/testsuites/psxtests/psxpasswd01/psxpasswd01.scn +++ b/testsuites/psxtests/psxpasswd01/psxpasswd01.scn @@ -1,4 +1,48 @@ -*** PASSWORD/GROUP TEST *** +Initialized console on port COM1 9600-8-N-1 + +*** PASSWORD/GROUP TEST - 01 *** +Init - getpwent() -- OK, result should be NULL +Init - getgrent() -- OK, result should be NULL +Init - setpwent() -- OK +Init - setgrent() -- OK +Init - getpwent() (1) -- OK + username: root + user password: * + user ID: 0 + group ID: 0 + real name: + home directory: / + shell program: /bin/sh +Init - getpwent() (2) -- OK + username: rtems + user password: * + user ID: 1 + group ID: 1 + real name: + home directory: / + shell program: /bin/sh +Init - getpwent() (3) -- OK + username: tty + user password: ! + user ID: 2 + group ID: 2 + real name: + home directory: / + shell program: /bin/false +Init - getpwent() (4) -- result should be NULL +Init - getgrent() (1) -- OK + group name: root + group password: x + group ID: 0 +Init - getgrent() (2) -- OK + group name: rtems + group password: x + group ID: 1 +Init - getgrent() (3) -- OK + group name: tty + group password: x + group ID: 2 +Init - getgrent() (4) -- result should be NULL Init - getpwnam("root") -- OK username: root user password: * @@ -15,7 +59,24 @@ Init - getpwnam("rtems") -- OK real name: home directory: / shell program: /bin/sh - +Init - getpwnam("suser") -- result should be NULL +Init - getpwuid(0) -- OK + username: root + user password: * + user ID: 0 + group ID: 0 + real name: + home directory: / + shell program: /bin/sh +Init - getpwuid(1) -- OK + username: rtems + user password: * + user ID: 1 + group ID: 1 + real name: + home directory: / + shell program: /bin/sh +Init - getpwuid(4) -- result should be NULL Init - getgrnam("root") -- OK group name: root group password: x @@ -24,5 +85,15 @@ Init - getgrnam("rtems") -- OK group name: rtems group password: x group ID: 1 -*** END OF PASSWORD/GROUP TEST *** - +Init - getgrgid(0) -- OK + group name: root + group password: x + group ID: 0 +Init - getgrgid(1) -- OK + group name: rtems + group password: x + group ID: 1 +Init - getgrgid(4) -- result should be NULL +Init - endpwent() -- OK +Init - endgrent() -- OK +*** END OF PASSWORD/GROUP TEST - 01 *** |