source: rtems/testsuites/psxtests/psxpasswd01/psxpasswd01.scn @ 1fe4042

4.11
Last change on this file since 1fe4042 was 1fe4042, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 1, 2010 at 5:26:37 PM

2010-07-01 Bharath Suri <bharath.s.jois@…>

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.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1Initialized console on port COM1 9600-8-N-1
2
3*** PASSWORD/GROUP TEST - 01 ***
4Init - getpwent() -- OK, result should be NULL
5Init - getgrent() -- OK, result should be NULL
6Init - setpwent() -- OK
7Init - setgrent() -- OK
8Init - getpwent() (1) -- OK
9  username: root
10  user password: *
11  user ID: 0
12  group ID: 0
13  real name:
14  home directory: /
15  shell program: /bin/sh
16Init - getpwent() (2) -- OK
17  username: rtems
18  user password: *
19  user ID: 1
20  group ID: 1
21  real name:
22  home directory: /
23  shell program: /bin/sh
24Init - getpwent() (3) -- OK
25  username: tty
26  user password: !
27  user ID: 2
28  group ID: 2
29  real name:
30  home directory: /
31  shell program: /bin/false
32Init - getpwent() (4) -- result should be NULL
33Init - getgrent() (1) -- OK
34  group name: root
35  group  password: x
36  group  ID: 0
37Init - getgrent() (2) -- OK
38  group name: rtems
39  group  password: x
40  group  ID: 1
41Init - getgrent() (3) -- OK
42  group name: tty
43  group  password: x
44  group  ID: 2
45Init - getgrent() (4) -- result should be NULL
46Init - getpwnam("root") -- OK
47  username: root
48  user password: *
49  user ID: 0
50  group ID: 0
51  real name:
52  home directory: /
53  shell program: /bin/sh
54Init - getpwnam("rtems") -- OK
55  username: rtems
56  user password: *
57  user ID: 1
58  group ID: 1
59  real name:
60  home directory: /
61  shell program: /bin/sh
62Init - getpwnam("suser") -- result should be NULL
63Init - getpwuid(0) -- OK
64  username: root
65  user password: *
66  user ID: 0
67  group ID: 0
68  real name:
69  home directory: /
70  shell program: /bin/sh
71Init - getpwuid(1) -- OK
72  username: rtems
73  user password: *
74  user ID: 1
75  group ID: 1
76  real name:
77  home directory: /
78  shell program: /bin/sh
79Init - getpwuid(4) -- result should be NULL
80Init - getgrnam("root") -- OK
81  group name: root
82  group  password: x
83  group  ID: 0
84Init - getgrnam("rtems") -- OK
85  group name: rtems
86  group  password: x
87  group  ID: 1
88Init - getgrgid(0) -- OK
89  group name: root
90  group  password: x
91  group  ID: 0
92Init - getgrgid(1) -- OK
93  group name: rtems
94  group  password: x
95  group  ID: 1
96Init - getgrgid(4) -- result should be NULL
97Init - endpwent() -- OK
98Init - endgrent() -- OK
99*** END OF PASSWORD/GROUP TEST - 01 ***
Note: See TracBrowser for help on using the repository browser.