summaryrefslogtreecommitdiff
path: root/integrationtests/sync_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrationtests/sync_test.go')
-rw-r--r--integrationtests/sync_test.go46
1 files changed, 46 insertions, 0 deletions
diff --git a/integrationtests/sync_test.go b/integrationtests/sync_test.go
new file mode 100644
index 0000000..5f6a314
--- /dev/null
+++ b/integrationtests/sync_test.go
@@ -0,0 +1,46 @@
+package integrationtests
+
+import "testing"
+
+func TestSyncBasic(t *testing.T) {
+ runScenario(t, "sync-basic", []ExpectedEvent{
+ {
+ PathContains: "syncfile.txt",
+ Tracepoint: "enter_fsync",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestSyncFdatasync(t *testing.T) {
+ runScenario(t, "sync-fdatasync", []ExpectedEvent{
+ {
+ PathContains: "fdatasyncfile.txt",
+ Tracepoint: "enter_fdatasync",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestSyncSync(t *testing.T) {
+ runScenario(t, "sync-sync", []ExpectedEvent{
+ {
+ Tracepoint: "enter_sync",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}
+
+func TestSyncSyncFileRange(t *testing.T) {
+ runScenario(t, "sync-sync-file-range", []ExpectedEvent{
+ {
+ PathContains: "syncrangefile.txt",
+ Tracepoint: "enter_sync_file_range",
+ Comm: "ioworkload",
+ MinCount: 1,
+ },
+ })
+}