File tree Expand file tree Collapse file tree 16 files changed +493
-27
lines changed
jepsen_atomic_writes.test
jepsen_register_nemesis.test Expand file tree Collapse file tree 16 files changed +493
-27
lines changed Original file line number Diff line number Diff line change @@ -60,17 +60,6 @@ sc_resume
60
60
DISABLED TESTS:
61
61
async_sc_bench.test -- benchmark for paper
62
62
halt_processor_tds.test -- requires a cluster
63
- jepsen_a6.test -- jepsen tests require java & root access
64
- jepsen_a6_nemesis.test
65
- jepsen_atomic_writes.test
66
- jepsen_bank_nemesis.test
67
- jepsen_bank.test
68
- jepsen_dirty_reads.test
69
- jepsen_g2.test
70
- jepsen_register_nemesis.test
71
- jepsen_register.test
72
- jepsen_sets_nemesis.test
73
- jepsen_sets.test
74
63
killcluster.test
75
64
netloss.test -- does not pass most of the time; requires kernel 4.x & docker 17.x
76
65
overflowblobs.test -- timesout
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ RUN apt-get update && \
12
12
gdb \
13
13
git \
14
14
iproute2 \
15
+ iptables \
15
16
iputils-ping \
16
17
jq \
17
18
libevent-dev \
@@ -29,10 +30,12 @@ RUN apt-get update && \
29
30
libz-dev \
30
31
lsof \
31
32
make \
33
+ maven \
32
34
ncurses-dev \
33
35
netcat-openbsd \
34
36
net-tools \
35
37
openssh-server \
38
+ openjdk-11-jdk \
36
39
protobuf-c-compiler \
37
40
psmisc \
38
41
pstack \
@@ -50,14 +53,17 @@ RUN apt-get update && \
50
53
51
54
COPY . /comdb2
52
55
53
- RUN cd /comdb2 && \
56
+ RUN export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java)))) && \
57
+ cd /comdb2/cdb2jdbc && \
58
+ make install && \
59
+ cd /comdb2 && \
54
60
rm -rf build && \
55
61
mkdir build && \
56
62
cd build && \
57
63
cmake -DWITH_TCL=1 -DCOMDB2_TEST=1 .. && \
58
64
make -j4 && \
59
65
make -j4 test-tools && \
60
- make install && \
66
+ make install && \
61
67
cp /comdb2/tests/docker/client / && \
62
68
cp /comdb2/tests/docker/server / && \
63
69
apt-get clean
Original file line number Diff line number Diff line change 5
5
# debug_trace="-D"
6
6
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
7
export CDB2JDBC_VERIFY_RETRY=0
8
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
8
9
9
10
[[ " $debug " == 1 ]] && set -x
10
11
needcluster=0
@@ -98,7 +99,7 @@ function runtestwithoptions
98
99
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
99
100
(
100
101
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
101
- lein run test $testargs > $outfile 2>&1 < /dev/null
102
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
102
103
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
103
104
)
104
105
cat $outfile
Original file line number Diff line number Diff line change 5
5
# debug_trace="-D"
6
6
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
7
export CDB2JDBC_VERIFY_RETRY=0
8
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
8
9
9
10
[[ " $debug " == 1 ]] && set -x
10
11
needcluster=0
@@ -98,7 +99,7 @@ function runtestwithoptions
98
99
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
99
100
(
100
101
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
101
- lein run test $testargs > $outfile 2>&1 < /dev/null
102
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
102
103
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
103
104
)
104
105
cat $outfile
Original file line number Diff line number Diff line change 5
5
# debug_trace="-D"
6
6
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
7
export CDB2JDBC_VERIFY_RETRY=0
8
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
8
9
9
10
[[ " $debug " == 1 ]] && set -x
10
11
needcluster=0
@@ -98,7 +99,7 @@ function runtestwithoptions
98
99
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
99
100
(
100
101
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
101
- lein run test $testargs > $outfile 2>&1 < /dev/null
102
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
102
103
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
103
104
)
104
105
cat $outfile
Original file line number Diff line number Diff line change 5
5
# debug_trace="-D"
6
6
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
7
export CDB2JDBC_VERIFY_RETRY=0
8
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
8
9
9
10
[[ " $debug " == 1 ]] && set -x
10
11
needcluster=0
@@ -97,7 +98,7 @@ function runtestwithoptions
97
98
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
98
99
(
99
100
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
100
- lein run test $testargs > $outfile 2>&1 < /dev/null
101
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
101
102
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
102
103
)
103
104
cat $outfile
Original file line number Diff line number Diff line change 5
5
# debug_trace="-D"
6
6
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
7
export CDB2JDBC_VERIFY_RETRY=0
8
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
8
9
9
10
[[ " $debug " == 1 ]] && set -x
10
11
needcluster=1
@@ -97,7 +98,7 @@ function runtestwithoptions
97
98
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
98
99
(
99
100
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
100
- lein run test $testargs > $outfile 2>&1 < /dev/null
101
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
101
102
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
102
103
)
103
104
cat $outfile
Original file line number Diff line number Diff line change 5
5
# debug_trace="-D"
6
6
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
7
export CDB2JDBC_VERIFY_RETRY=0
8
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
8
9
9
10
[[ " $debug " == 1 ]] && set -x
10
11
needcluster=0
@@ -97,7 +98,7 @@ function runtestwithoptions
97
98
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
98
99
(
99
100
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
100
- lein run test $testargs > $outfile 2>&1 < /dev/null
101
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
101
102
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
102
103
)
103
104
cat $outfile
Original file line number Diff line number Diff line change 5
5
# debug_trace="-D"
6
6
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
7
export CDB2JDBC_VERIFY_RETRY=0
8
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
8
9
9
10
[[ " $debug " == 1 ]] && set -x
10
11
needcluster=0
@@ -99,7 +100,7 @@ function runtestwithoptions
99
100
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
100
101
(
101
102
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
102
- lein run test $testargs > $outfile 2>&1 < /dev/null
103
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
103
104
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
104
105
)
105
106
cat $outfile
Original file line number Diff line number Diff line change 6
6
export COMDB2_DEBUG=1
7
7
export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
8
8
export CDB2JDBC_VERIFY_RETRY=0
9
+ export LEIN=" ${LEIN:= $TESTSROOTDIR / tools/ lein} "
9
10
10
11
[[ " $debug " == 1 ]] && set -x
11
12
needcluster=0
@@ -98,7 +99,7 @@ function runtestwithoptions
98
99
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
99
100
(
100
101
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
101
- lein run test $testargs > $outfile 2>&1 < /dev/null
102
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
102
103
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
103
104
)
104
105
cat $outfile
You can’t perform that action at this time.
0 commit comments