Skip to content

Commit

Permalink
not sim
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Sep 18, 2024
1 parent 0c495b4 commit 351ad68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 152 deletions.
125 changes: 0 additions & 125 deletions src/rpc/test/config-test-sim.ini

This file was deleted.

File renamed without changes.
31 changes: 4 additions & 27 deletions src/rpc/test/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
Expand All @@ -15,33 +15,10 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

if [ -z "${REPORT_DIR}" ]; then
REPORT_DIR="."
fi

test_cases=(config-test.ini config-test-sim.ini)
for test_case in ${test_cases[*]}; do
output_xml="${REPORT_DIR}/dsn_runtime_tests_${test_case/.ini/.xml}"
echo "============ run dsn_runtime_tests ${test_case} ============"
./clear.sh
GTEST_OUTPUT="xml:${output_xml}" ./dsn_runtime_tests ${test_case} < command.txt

if [ $? -ne 0 ]; then
echo "run dsn_runtime_tests $test_case failed"
echo "---- ls ----"
ls -l
if [ `find . -name pegasus.log.* | wc -l` -ne 0 ]; then
echo "---- tail -n 100 pegasus.log.* ----"
tail -n 100 `find . -name pegasus.log.*`
fi
if [ -f core ]; then
echo "---- gdb ./dsn_runtime_tests core ----"
gdb ./dsn_runtime_tests core -ex "thread apply all bt" -ex "set pagination 0" -batch
fi
exit 1
fi
echo "============ done dsn_runtime_tests ${test_case} ============"
done

echo "============ done dsn_runtime_tests ============"
rm -rf data dsn_rpc_tests.xml
output_xml="${REPORT_DIR}/dsn_rpc_tests.xml"
GTEST_OUTPUT="xml:${output_xml}" ./dsn_rpc_tests config.ini

0 comments on commit 351ad68

Please sign in to comment.