summaryrefslogtreecommitdiffstats
path: root/xdp-monitor/tests/test-xdp-monitor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'xdp-monitor/tests/test-xdp-monitor.sh')
-rw-r--r--xdp-monitor/tests/test-xdp-monitor.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/xdp-monitor/tests/test-xdp-monitor.sh b/xdp-monitor/tests/test-xdp-monitor.sh
new file mode 100644
index 0000000..b85c7c9
--- /dev/null
+++ b/xdp-monitor/tests/test-xdp-monitor.sh
@@ -0,0 +1,11 @@
+XDP_LOADER=${XDP_LOADER:-./xdp-loader}
+XDP_MONITOR=${XDP_MONITOR:-./xdp-monitor}
+ALL_TESTS="test_monitor"
+
+test_monitor()
+{
+ export XDP_SAMPLE_IMMEDIATE_EXIT=1
+ check_run $XDP_MONITOR -vv
+ check_run $XDP_MONITOR -s -vv
+ check_run $XDP_MONITOR -e -vv
+}