Skip to content

Commit

Permalink
Units: add a case for testing passwd parser
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Apr 24, 2018
1 parent 0793bfc commit 308047a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Units/simple-passwd.d/args.ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--map-passwd=+.passwd
2 changes: 2 additions & 0 deletions Units/simple-passwd.d/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin input.passwd /^bin:x:1:1:bin:\/bin:\/sbin\/nologin$/;" u home:/bin shell:/sbin/nologin
root input.passwd /^root:x:0:0:root:\/root:\/bin\/bash$/;" u home:/root shell:/bin/bash
2 changes: 2 additions & 0 deletions Units/simple-passwd.d/input.passwd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin

0 comments on commit 308047a

Please sign in to comment.