summaryrefslogtreecommitdiffstats
path: root/test/nbft/nbft-dump-diff.sh.in
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 22:36:07 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-30 22:36:07 +0000
commit97e3d220503a676acd81839dea289f4e700d8bd8 (patch)
tree69791901e1ca15319c5c63ffb52fe9cc686f8bee /test/nbft/nbft-dump-diff.sh.in
parentAdding upstream version 1.4. (diff)
downloadlibnvme-97e3d220503a676acd81839dea289f4e700d8bd8.tar.xz
libnvme-97e3d220503a676acd81839dea289f4e700d8bd8.zip
Adding upstream version 1.5.upstream/1.5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/nbft/nbft-dump-diff.sh.in')
-rwxr-xr-xtest/nbft/nbft-dump-diff.sh.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/nbft/nbft-dump-diff.sh.in b/test/nbft/nbft-dump-diff.sh.in
new file mode 100755
index 0000000..f697bce
--- /dev/null
+++ b/test/nbft/nbft-dump-diff.sh.in
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ $# -ne 2 ]; then
+ echo "Usage: $0 TABLE DIFF" >&2
+ exit 255
+fi
+
+"@NBFT_DUMP_PATH@" "$1" | diff --unified "$2" -