summaryrefslogtreecommitdiffstats
path: root/test/TEST-60-MOUNT-RATELIMIT
diff options
context:
space:
mode:
authorAnita Zhang <the.anitazha@gmail.com>2021-06-08 09:04:35 +0200
committerAnita Zhang <the.anitazha@gmail.com>2021-06-09 21:04:56 +0200
commit0c81900965a72b29eb76e0737ed899b925ee75b6 (patch)
treea8a628157169dad20fd554e21c5fdf2ee737035c /test/TEST-60-MOUNT-RATELIMIT
parentman: update docs on systemd-system.conf logging (LogTime=) (#19846) (diff)
downloadsystemd-0c81900965a72b29eb76e0737ed899b925ee75b6.tar.xz
systemd-0c81900965a72b29eb76e0737ed899b925ee75b6.zip
test: add extended test for triggering mount rate limit
It's hard to trigger the failure to exit the rate limit state in isolation as it needs multiple event sources in order to show that it gets stuck in the queue. Hence why this is an extended test.
Diffstat (limited to 'test/TEST-60-MOUNT-RATELIMIT')
l---------test/TEST-60-MOUNT-RATELIMIT/Makefile1
-rwxr-xr-xtest/TEST-60-MOUNT-RATELIMIT/test.sh7
2 files changed, 8 insertions, 0 deletions
diff --git a/test/TEST-60-MOUNT-RATELIMIT/Makefile b/test/TEST-60-MOUNT-RATELIMIT/Makefile
new file mode 120000
index 0000000000..e9f93b1104
--- /dev/null
+++ b/test/TEST-60-MOUNT-RATELIMIT/Makefile
@@ -0,0 +1 @@
+../TEST-01-BASIC/Makefile \ No newline at end of file
diff --git a/test/TEST-60-MOUNT-RATELIMIT/test.sh b/test/TEST-60-MOUNT-RATELIMIT/test.sh
new file mode 100755
index 0000000000..f9eb11ccb4
--- /dev/null
+++ b/test/TEST-60-MOUNT-RATELIMIT/test.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -e
+TEST_DESCRIPTION="Test that mount/unmount storms can enter/exit rate limit state and will not leak units"
+
+. $TEST_BASE_DIR/test-functions
+
+do_test "$@"