aboutsummaryrefslogtreecommitdiffstats
path: root/test-test
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-03-24 23:21:17 +0100
committerMattias Andrée <maandree@kth.se>2016-03-24 23:21:17 +0100
commit0f0e8f9b00aa24dbc3072d339f6674ef39ed5044 (patch)
treeb3ed4f436f0e2fcff4944e1570d36ac79aa3df73 /test-test
parentadd test-test (diff)
downloadbase-util-tests-0f0e8f9b00aa24dbc3072d339f6674ef39ed5044.tar.gz
base-util-tests-0f0e8f9b00aa24dbc3072d339f6674ef39ed5044.tar.bz2
base-util-tests-0f0e8f9b00aa24dbc3072d339f6674ef39ed5044.tar.xz
test-test: add -S test
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rwxr-xr-xtest-test/test18
1 files changed, 16 insertions, 2 deletions
diff --git a/test-test/test b/test-test/test
index 5d9a583..53f82bc 100755
--- a/test-test/test
+++ b/test-test/test
@@ -531,16 +531,30 @@ np_prec ()
report_np $? "np_prec"
}
+Sflag ()
+{
+ touch tmp1; rm tmp1
+ touch tmp2; rm tmp2
+ touch tmp2
+ python3 <<EOF
+import socket
+socket.socket(socket.AF_UNIX, socket.SOCK_STREAM).bind('tmp1')
+EOF
+ T -S tmp1 &&
+ F -S tmp2
+ report $? "Sflag"
+ rm tmp1 tmp2
+}
+
# TODO -G (NON-POSIX)
# TODO -O (NON-POSIX)
-# TODO -S
if test $# = 0; then
set bracket bflag cflag dflag eflag fflag gflag hflag_1 hflag_2 kflag Lflag_1 Lflag_2 nflag \
pflag rflag sflag tflag uflag wflag xflag_f xflag_d zflag string eq_sign ne_sign eq_flag \
ne_flag gt_flag ge_flag lt_flag le_flag ef_flag nt_flag ot_flag aflag oflag excl \
- excl_prec oflag_aflag parenthesis multiexcl multiexcl_many bigint prec np_prec
+ excl_prec oflag_aflag parenthesis multiexcl multiexcl_many bigint prec np_prec Sflag
fi
(
for f in $@; do