Skip to content

Commit 53b2c1c

Browse files
committed
added tests/test_getent.sh
1 parent ac983e1 commit 53b2c1c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

tests/test_getent.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env bash
2+
# vim:ts=4:sts=4:sw=4:et
3+
#
4+
# Author: Hari Sekhon
5+
# Date: 2016-11-20 15:35:37 +0000 (Sun, 20 Nov 2016)
6+
#
7+
# https://github.com/harisekhon/pytools
8+
#
9+
# License: see accompanying Hari Sekhon LICENSE file
10+
#
11+
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
12+
#
13+
# https://www.linkedin.com/in/harisekhon
14+
#
15+
16+
set -euo pipefail
17+
[ -n "${DEBUG:-}" ] && set -x
18+
srcdir="$(cd "$(dirname "$0")" && pwd)"
19+
20+
cd "$srcdir/.."
21+
22+
. ./bash-tools/utils.sh
23+
24+
if [ `uname -s` = Darwin ]; then
25+
section "Getent (Mac)"
26+
./getent.py passwd
27+
hr
28+
./getent.py passwd $USER
29+
hr
30+
./getent.py group
31+
hr
32+
./getent.py group $(id -gn)
33+
hr
34+
fi

0 commit comments

Comments
 (0)