summaryrefslogtreecommitdiff
path: root/test/scripts/light-system-test-prepare-merge-takeover.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/scripts/light-system-test-prepare-merge-takeover.sh')
-rwxr-xr-xtest/scripts/light-system-test-prepare-merge-takeover.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/scripts/light-system-test-prepare-merge-takeover.sh b/test/scripts/light-system-test-prepare-merge-takeover.sh
new file mode 100755
index 0000000..c292c9b
--- /dev/null
+++ b/test/scripts/light-system-test-prepare-merge-takeover.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -o nounset
+set -o errexit
+
+SOFTHSM=/usr/local/bin/softhsm2-util
+INSTDIR=../catlfish
+PREFIX=..
+
+. test.shvars
+
+mv ${INSTDIR}/tests/mergedb ${INSTDIR}/tests/mergedb-down
+mv ${INSTDIR}/tests/mergedb-secondary ${INSTDIR}/tests/mergedb
+mkdir ${INSTDIR}/tests/mergedb-secondary
+touch ${INSTDIR}/tests/mergedb-secondary/logorder
+printf 0 > ${INSTDIR}/tests/mergedb-secondary/verifiedsize