1#!/usr/bin/env bash
2# SPDX-License-Identifier: LGPL-2.1-or-later
3set -eux
4set -o pipefail
5
6echo 1 >/sys/fs/selinux/enforce || {
7    echo "Can't make selinux enforcing, skipping test"
8    touch /testok
9    exit
10}
11
12runcon -t systemd_test_start_t systemctl start hola
13runcon -t systemd_test_reload_t systemctl reload hola
14runcon -t systemd_test_stop_t systemctl stop hola
15
16touch /testok
17