vfs_default: implement FSCTL_DUP_EXTENTS_TO_FILE with copy_reflink()
[samba4-gss.git] / nsswitch / tests / test_wbinfo_sids_to_xids.sh
blobc910d194966d17d294b75a4eb5c3f58dd007a7b8
1 #!/bin/sh
3 incdir=$(dirname $0)/../../testprogs/blackbox
4 . $incdir/subunit.sh
7 # S-1-5-123456789 fails, but S-1-5-11 succeeds. Check that S-1-5-11 is
8 # mapped successfully with a GID in the 1000x range
10 wbinfo_some_mapped()
12 output=$($VALGRIND $BINDIR/wbinfo --sids-to-unix-ids=S-1-5-123456789,S-1-5-11)
13 test x"$?" = x"0" || {
14 return 1
17 printf '%s' "$output" | grep -q 'S-1-5-123456789 -> unmapped' || {
18 printf '%s' "$output"
19 return 1
22 printf '%s' "$output" | grep -q 'S-1-5-11 -> gid 10000' || {
23 printf '%s' "$output"
24 return 1
27 return 0
30 testit "wbinfo some mapped" wbinfo_some_mapped || failed=$(expr $failed + 1)
32 testok $0 $failed