-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Resolves #41: Starting unit test from docker-compose. * Fixing fdbserver startup script. * Adding license header.
- Loading branch information
Showing
5 changed files
with
100 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ARG FDB_VERSION=6.0.15 | ||
|
||
FROM foundationdb/foundationdb:$FDB_VERSION | ||
LABEL version=0.0.2 | ||
|
||
COPY local_fdb.bash /var/fdb/scripts/ | ||
|
||
CMD /var/fdb/scripts/local_fdb.bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
# | ||
# local_fdb.bash | ||
# | ||
# This source file is part of the FoundationDB open source project | ||
# | ||
# Copyright 2013-2019 Apple Inc. and the FoundationDB project authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# MongoDB is a registered trademark of MongoDB, Inc. | ||
# | ||
|
||
set -ex | ||
|
||
/var/fdb/scripts/fdb.bash & | ||
FDB_PID=$! | ||
|
||
sleep 1 | ||
fdbcli --exec "configure new single memory;" | ||
|
||
wait ${FDB_PID} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
# | ||
# run-tests.bash | ||
# | ||
# This source file is part of the FoundationDB open source project | ||
# | ||
# Copyright 2013-2018 Apple Inc. and the FoundationDB project authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# MongoDB is a registered trademark of MongoDB, Inc. | ||
# | ||
|
||
set -ex | ||
|
||
FDB_HOST_IP=$(dig +short ${FDB_HOST}) | ||
|
||
echo "docker:docker@${FDB_HOST_IP}:${FDB_PORT}" > fdb.cluster | ||
|
||
./build/bin/fdbdoc -l 127.0.0.1:27000 -d test -VV > test.out 2> test.err & | ||
|
||
cd test/correctness/ | ||
python document-correctness.py --doclayer-port 27000 unit doclayer mm |