File tree Expand file tree Collapse file tree 18 files changed +530
-51
lines changed
jepsen_atomic_writes.test
jepsen_register_nemesis.test Expand file tree Collapse file tree 18 files changed +530
-51
lines changed Original file line number Diff line number Diff line change 1
1
# shortcut for building jdbc driver via make
2
2
BASEDIR: =$(realpath ..)
3
3
VERSION? =$(shell grep ^comdb2 ../pkg/changelog | sed 's/^comdb2 .//; s/-.* //g')
4
+ MVNFLAGS? =$(shell echo "${COMDB2_MVN_FLAGS}")
4
5
5
6
.PHONY : jdbc
6
7
MAVEN_VER := $(shell mvn -version 2>/dev/null)
@@ -9,21 +10,21 @@ envSkipTests?='true'
9
10
10
11
jdbc :
11
12
ifdef MAVEN_VER
12
- +mvn package
13
+ +mvn $(MVNFLAGS) package
13
14
else
14
15
$(error "Could not find maven")
15
16
endif
16
17
17
18
clean :
18
19
ifdef MAVEN_VER
19
- +mvn clean
20
+ +mvn $(MVNFLAGS) clean
20
21
else
21
22
$(error "Could not find maven")
22
23
endif
23
24
24
25
install : jdbc
25
26
ifdef MAVEN_VER
26
- +mvn install
27
+ +mvn $(MVNFLAGS) install
27
28
else
28
29
$(error "Could not find maven")
29
30
endif
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,18 @@ 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
+ export COMDB2_MVN_FLAGS="-Dhttp.proxyHost=devproxy.bloomberg.com -Dhttp.proxyPort=82 -Dhttps.proxyHost=devproxy.bloomberg.com -Dhttps.proxyPort=82" && \
58
+ cd /comdb2/cdb2jdbc && \
59
+ make install && \
60
+ cd /comdb2 && \
54
61
rm -rf build && \
55
62
mkdir build && \
56
63
cd build && \
57
64
cmake -DWITH_TCL=1 -DCOMDB2_TEST=1 .. && \
58
65
make -j4 && \
59
66
make -j4 test-tools && \
60
- make install && \
67
+ make install && \
61
68
cp /comdb2/tests/docker/client / && \
62
69
cp /comdb2/tests/docker/server / && \
63
70
apt-get clean
Original file line number Diff line number Diff line change 3
3
# Runs the register linearizability test
4
4
# debug=1
5
5
# debug_trace="-D"
6
- export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
- export CDB2JDBC_VERIFY_RETRY=0
6
+
7
+ . ${TESTSROOTDIR} /tools/jepsen_setup.sh
8
8
9
9
[[ " $debug " == 1 ]] && set -x
10
10
needcluster=0
@@ -98,7 +98,7 @@ function runtestwithoptions
98
98
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
99
99
(
100
100
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
101
- lein run test $testargs > $outfile 2>&1 < /dev/null
101
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
102
102
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
103
103
)
104
104
cat $outfile
Original file line number Diff line number Diff line change 3
3
# Runs the register linearizability test
4
4
# debug=1
5
5
# debug_trace="-D"
6
- export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
- export CDB2JDBC_VERIFY_RETRY=0
6
+
7
+ . ${TESTSROOTDIR} /tools/jepsen_setup.sh
8
8
9
9
[[ " $debug " == 1 ]] && set -x
10
10
needcluster=0
@@ -98,7 +98,7 @@ function runtestwithoptions
98
98
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
99
99
(
100
100
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
101
- lein run test $testargs > $outfile 2>&1 < /dev/null
101
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
102
102
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
103
103
)
104
104
cat $outfile
Original file line number Diff line number Diff line change 3
3
# Runs the register linearizability test
4
4
# debug=1
5
5
# debug_trace="-D"
6
- export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
- export CDB2JDBC_VERIFY_RETRY=0
6
+
7
+ . ${TESTSROOTDIR} /tools/jepsen_setup.sh
8
8
9
9
[[ " $debug " == 1 ]] && set -x
10
10
needcluster=0
@@ -98,7 +98,7 @@ function runtestwithoptions
98
98
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
99
99
(
100
100
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
101
- lein run test $testargs > $outfile 2>&1 < /dev/null
101
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
102
102
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
103
103
)
104
104
cat $outfile
Original file line number Diff line number Diff line change 3
3
# Runs the register linearizability test
4
4
# debug=1
5
5
# debug_trace="-D"
6
- export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
- export CDB2JDBC_VERIFY_RETRY=0
6
+
7
+ . ${TESTSROOTDIR} /tools/jepsen_setup.sh
8
8
9
9
[[ " $debug " == 1 ]] && set -x
10
10
needcluster=0
@@ -97,7 +97,7 @@ function runtestwithoptions
97
97
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
98
98
(
99
99
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
100
- lein run test $testargs > $outfile 2>&1 < /dev/null
100
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
101
101
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
102
102
)
103
103
cat $outfile
Original file line number Diff line number Diff line change 3
3
# Runs the register linearizability test
4
4
# debug=1
5
5
# debug_trace="-D"
6
- export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
- export CDB2JDBC_VERIFY_RETRY=0
6
+
7
+ . ${TESTSROOTDIR} /tools/jepsen_setup.sh
8
8
9
9
[[ " $debug " == 1 ]] && set -x
10
10
needcluster=1
@@ -97,7 +97,7 @@ function runtestwithoptions
97
97
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
98
98
(
99
99
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
100
- lein run test $testargs > $outfile 2>&1 < /dev/null
100
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
101
101
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
102
102
)
103
103
cat $outfile
Original file line number Diff line number Diff line change 3
3
# Runs the register linearizability test
4
4
# debug=1
5
5
# debug_trace="-D"
6
- export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
- export CDB2JDBC_VERIFY_RETRY=0
6
+
7
+ . ${TESTSROOTDIR} /tools/jepsen_setup.sh
8
8
9
9
[[ " $debug " == 1 ]] && set -x
10
10
needcluster=0
@@ -97,7 +97,7 @@ function runtestwithoptions
97
97
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
98
98
(
99
99
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
100
- lein run test $testargs > $outfile 2>&1 < /dev/null
100
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
101
101
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
102
102
)
103
103
cat $outfile
Original file line number Diff line number Diff line change 3
3
# Runs the register linearizability test
4
4
# debug=1
5
5
# debug_trace="-D"
6
- export CDB2JDBC_STATEMENT_QUERYEFFECTS=1
7
- export CDB2JDBC_VERIFY_RETRY=0
6
+
7
+ . ${TESTSROOTDIR} /tools/jepsen_setup.sh
8
8
9
9
[[ " $debug " == 1 ]] && set -x
10
10
needcluster=0
@@ -99,7 +99,7 @@ function runtestwithoptions
99
99
export CDB2_CONFIG_FILE=${CDB2_CONFIG}
100
100
(
101
101
cd ${TESTSROOTDIR} /tools/linearizable/jepsen
102
- lein run test $testargs > $outfile 2>&1 < /dev/null
102
+ $LEIN run test $testargs > $outfile 2>&1 < /dev/null
103
103
r=$? ; [[ $r != 0 ]] && echo " XXX JEPSEN ERROR Lein test returns $r " >> $outfile
104
104
)
105
105
cat $outfile
You can’t perform that action at this time.
0 commit comments