halt='Unstyled diagnostic quoting detected' \
$(_sc_search_regexp)
+sc_prohibit-skip:
+ @prohibit='\|\| skip ' \
+ halt='Use skip_ not skip' \
+ $(_sc_search_regexp)
+
sc_sun_os_names:
@grep -nEi \
'solaris[^[:alnum:]]*2\.(7|8|9|[1-9][0-9])|sunos[^[:alnum:]][6-9]' \
# Check basic functionality - before check on fixed context mount
touch c || framework_failure_
-chcon $ctx c || skip "Failed to set context: $ctx"
+chcon $ctx c || skip_ "Failed to set context: $ctx"
cp -a c d 2>err || framework_failure_
cp --preserve=context c e || framework_failure_
cp --preserve=all c f || framework_failure_
if ! fallocate -l2G $big; then
rm -f $big
{
- is_local_dir_ . || skip 'Not writing 2GB data to remote'
+ is_local_dir_ . || skip_ 'Not writing 2GB data to remote'
for i in $(seq 100); do
# Note: 2147483648 == 2^31. Print floor(2^31/100) per iteration.
printf %21474836s x || fail=1
mkdir subdir || framework_failure_
ctx='root:object_r:tmp_t'
mls_enabled_ && ctx="$ctx:s0"
-chcon "$ctx" subdir || skip "Failed to set context: $ctx"
+chcon "$ctx" subdir || skip_ "Failed to set context: $ctx"
cd subdir
# Since in a tmp_t dir, dirs can be created as user_tmp_t ...
t1=tmp_t
range=s0
ctx=$u1:$r1:$t1:$range
-chcon $ctx f || skip "Failed to set context: $ctx"
+chcon $ctx f || skip_ "Failed to set context: $ctx"
stat --printf='f|%C\n' f > out || fail=1
# Use --reference.
ctx='root:object_r:tmp_t'
mls_enabled_ && ctx="$ctx:s0"
-chcon $ctx f d p || skip "Failed to set context: $ctx"
+chcon $ctx f d p || skip_ "Failed to set context: $ctx"
# inspect that context with both ls -Z and stat.
for i in d f p; do
mkdir subdir || framework_failure_
ctx='root:object_r:tmp_t'
mls_enabled_ && ctx="$ctx:s0"
-chcon "$ctx" subdir || skip "Failed to set context: $ctx"
+chcon "$ctx" subdir || skip_ "Failed to set context: $ctx"
cd subdir
# --- mkdir -Z ---