summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMatthias Reitinger <reima@edenprime.de>2020-10-05 01:11:52 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-05 07:22:54 +0200
commit2f77da781317194350289d4c481f7cf92047e509 (patch)
tree27d9cd79602668a43a92d4c8591ccc253790e0ba /tests
parent9897c9919042a9b37ef12d6a950709c2b5e334ef (diff)
Add /etc/passwd syntax test file
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-tests/highlighted/Passwd/passwd7
-rw-r--r--tests/syntax-tests/source/Passwd/passwd7
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Passwd/passwd b/tests/syntax-tests/highlighted/Passwd/passwd
new file mode 100644
index 00000000..72e27773
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Passwd/passwd
@@ -0,0 +1,7 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
+nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
+syslog:x:104:106::/nonexistent:/usr/sbin/nologin
+sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
+reima:x:1000:1000:,,,:/home/reima:/bin/bash
+
diff --git a/tests/syntax-tests/source/Passwd/passwd b/tests/syntax-tests/source/Passwd/passwd
new file mode 100644
index 00000000..766e9077
--- /dev/null
+++ b/tests/syntax-tests/source/Passwd/passwd
@@ -0,0 +1,7 @@
+root:x:0:0:root:/root:/bin/bash
+daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
+nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin
+syslog:x:104:106::/nonexistent:/usr/sbin/nologin
+sshd:x:109:65534::/run/sshd:/usr/sbin/nologin
+reima:x:1000:1000:,,,:/home/reima:/bin/bash
+