Commit 80951882 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[enh] ci: check sync against ĞTest as well

parent a047b7b6
......@@ -80,7 +80,8 @@ test:
# Clean the dump directory before testing
- rm -rf /tmp/duniter_ci_dump/
- mkdir -p /tmp/duniter_ci_dump/
#- bash .gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/
- bash .gitlab/test/check_g1_sync.sh
- bash .gitlab/test/check_gt_sync.sh
# Code coverage display in GitLab
- tar cvzf coverage.tar.gz coverage/
- sed -n 23p coverage/index.html | grep -Po "\d+.\d+" | sed -e "s/\(.*\)/<coverage>\1%<\/coverage>/"
......
#!/usr/bin/env bash
G1_TARGET_BLOCK=132446 # This is a fixed block# which determines to the sha1 hashes
G1_IINDEX_CS=26393b64cdb9abb8e4012d6914f475635cba4c60
G1_MINDEX_CS=7c5f07c7705647365b8965fcfc5a084c2f82a388
G1_CINDEX_CS=3803c1ed8d3dd8f31558666d8dfd30272a6d0b74
G1_SINDEX_CS=551bdba1855d5c49cd503fcb8ad787b2a24c2c42
.gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/ g1 ${G1_TARGET_BLOCK} ${G1_IINDEX_CS} ${G1_MINDEX_CS} ${G1_CINDEX_CS} ${G1_SINDEX_CS}
#!/usr/bin/env bash
GT_TARGET_BLOCK=210000 # This is a fixed block# which determines to the sha1 hashes
GT_IINDEX_CS=dfd2dfc3d4d0ced4c101badb4d4a1ab85de8cbde
GT_MINDEX_CS=9d8f665f5fcf1f21082278c4787bb3df085ff109
GT_CINDEX_CS=b141361fb40f4c13f03f4640151c7674e190a4dd
GT_SINDEX_CS=7c6801027e39b9fea9be973d8773ac77d2c9a1f9
.gitlab/test/check_indexes.sh /tmp/duniter_ci_dump/ gt ${GT_TARGET_BLOCK} ${GT_IINDEX_CS} ${GT_MINDEX_CS} ${GT_CINDEX_CS} ${GT_SINDEX_CS}
#!/usr/bin/env bash
ORIGIN_DIR=`pwd`
mkdir -p $1
DUMP_DIR=`cd $1 && pwd`
ARCHIVES="$DUMP_DIR/archives"
DB_TEST_G1="gitlab_ci_sync_test_g1"
DB_TEST_GT="gitlab_ci_sync_test_gt"
G1_TARGET_BLOCK=132446 # This is a fixed block# which determines to the sha1 hashes
G1_IINDEX_CS=26393b64cdb9abb8e4012d6914f475635cba4c60
G1_MINDEX_CS=7c5f07c7705647365b8965fcfc5a084c2f82a388
G1_CINDEX_CS=3803c1ed8d3dd8f31558666d8dfd30272a6d0b74
G1_SINDEX_CS=551bdba1855d5c49cd503fcb8ad787b2a24c2c42
CURRENCY=$2
DB_TEST="gitlab_ci_sync_test_$CURRENCY"
G1_TARGET_BLOCK=$3 # This is a fixed block# which determines to the sha1 hashes
G1_IINDEX_CS=$4
G1_MINDEX_CS=$5
G1_CINDEX_CS=$6
G1_SINDEX_CS=$7
checksum_test() {
local table=$1
......@@ -53,8 +54,8 @@ echo "Positionnement dans $ORIGIN_DIR"
cd ${ORIGIN_DIR}
sync_data ${DB_TEST_G1} "$ARCHIVES/g1" ${G1_TARGET_BLOCK}
checksum_test i_index ${G1_IINDEX_CS} ${DB_TEST_G1}
checksum_test m_index ${G1_MINDEX_CS} ${DB_TEST_G1}
checksum_test c_index ${G1_CINDEX_CS} ${DB_TEST_G1}
checksum_test s_index ${G1_SINDEX_CS} ${DB_TEST_G1}
sync_data ${DB_TEST} "$ARCHIVES/$CURRENCY" ${G1_TARGET_BLOCK}
checksum_test i_index ${G1_IINDEX_CS} ${DB_TEST}
checksum_test m_index ${G1_MINDEX_CS} ${DB_TEST}
checksum_test c_index ${G1_CINDEX_CS} ${DB_TEST}
checksum_test s_index ${G1_SINDEX_CS} ${DB_TEST}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment