Skip to content

v0.2.53..v0.2.54 changeset DuplicateNodeRemoverTest.sh

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/test-files/cmd/quick/DuplicateNodeRemoverTest.sh b/test-files/cmd/quick/DuplicateNodeRemoverTest.sh
new file mode 100755
index 0000000..797aabc
--- /dev/null
+++ b/test-files/cmd/quick/DuplicateNodeRemoverTest.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+IN_DIR=test-files/cmd/quick/DuplicateNodeRemoverTest
+OUT_DIR=test-output/cmd/quick/DuplicateNodeRemoverTest
+mkdir -p $OUT_DIR
+
+CONFIG="--warn -C Testing.conf"
+
+hoot convert $CONFIG -D convert.ops="hoot::DuplicateNodeRemover" $IN_DIR/input.json $OUT_DIR/output.json
+hoot diff $CONFIG $IN_DIR/input.json $OUT_DIR/output.json || diff $IN_DIR/input.json $OUT_DIR/output.json
Clone this wiki locally