From 56d2321c92014e8f1c6d2fe3c23a6c6d1539d6db Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Tue, 3 Apr 2018 13:20:16 +0900 Subject: [PATCH] Units: add a case for testing passwd parser Signed-off-by: Masatake YAMATO --- Units/simple-passwd.d/args.ctags | 1 + Units/simple-passwd.d/expected.tags | 2 ++ Units/simple-passwd.d/input.passwd | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 Units/simple-passwd.d/args.ctags create mode 100644 Units/simple-passwd.d/expected.tags create mode 100644 Units/simple-passwd.d/input.passwd diff --git a/Units/simple-passwd.d/args.ctags b/Units/simple-passwd.d/args.ctags new file mode 100644 index 0000000000..5741bf3cb2 --- /dev/null +++ b/Units/simple-passwd.d/args.ctags @@ -0,0 +1 @@ +--map-passwd=+.passwd diff --git a/Units/simple-passwd.d/expected.tags b/Units/simple-passwd.d/expected.tags new file mode 100644 index 0000000000..32ba7da641 --- /dev/null +++ b/Units/simple-passwd.d/expected.tags @@ -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 diff --git a/Units/simple-passwd.d/input.passwd b/Units/simple-passwd.d/input.passwd new file mode 100644 index 0000000000..b38e5fddb1 --- /dev/null +++ b/Units/simple-passwd.d/input.passwd @@ -0,0 +1,2 @@ +root:x:0:0:root:/root:/bin/bash +bin:x:1:1:bin:/bin:/sbin/nologin