Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
Added missing code for uploading reports, reduced test cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Apr 1, 2018
1 parent 7b00886 commit d3c1588
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cov_tests/burst_corruption_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ file_size=$[1024 * 1024 * 1]
dd if=/dev/urandom of=dummy bs=$file_size count=1 &>/dev/null

for ver in ${VERSIONS[*]}; do
for (( i=0; i < 3; i++ )); do
for (( i=0; i < 1; i++ )); do
if [[ $ver == 17 ]]; then
data_shards=$((1 + RANDOM % 128))
parity_shards=$((1 + RANDOM % 128))
Expand Down
2 changes: 1 addition & 1 deletion cov_tests/corruption_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ file_size=$[1024 * 1024 * 1]
dd if=/dev/urandom of=dummy bs=$file_size count=1 &>/dev/null

for ver in ${VERSIONS[*]}; do
for (( i=0; i < 3; i++ )); do
for (( i=0; i < 1; i++ )); do
if [[ $ver == 17 ]]; then
data_shards=$((1 + RANDOM % 128))
parity_shards=$((1 + RANDOM % 128))
Expand Down
2 changes: 1 addition & 1 deletion cov_tests/file_size_calc_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VERSIONS=(1 2 3 17 18 19)
touch dummy

for ver in ${VERSIONS[*]}; do
for (( i=0; i < 3; i++ )); do
for (( i=0; i < 1; i++ )); do
actual_file_size=$((RANDOM % 4096))
truncate -s $actual_file_size dummy

Expand Down
3 changes: 2 additions & 1 deletion cov_tests/kcov_rsbx_fun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ fi
mkdir -p "$HOME/target/cov/rsbx"

function kcov_rsbx() {
kcov --exclude-pattern=/.cargo,/usr/lib --verify "$HOME/target/cov/rsbx" rsbx "$@"
kcov --exclude-pattern=/.cargo,/usr/lib --verify "$HOME/target/cov/rsbx" rsbx "$@"; bash <(curl -s https://codecov.io/bash)
kcov --coveralls-id=$TRAVIS_JOB_ID --exclude-pattern=/.cargo,/usr/lib --verify "$HOME/target/cov/rsbx" rsbx "$@"
}
2 changes: 1 addition & 1 deletion cov_tests/repair_truncated_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ file_size=$[1024 * 1024 * 1]
dd if=/dev/urandom of=dummy bs=$file_size count=1 &>/dev/null

for ver in ${VERSIONS[*]}; do
for (( i=0; i < 3; i++ )); do
for (( i=0; i < 1; i++ )); do
if [[ $ver == 17 ]]; then
data_shards=$((1 + RANDOM % 128))
parity_shards=$((1 + RANDOM % 128))
Expand Down
2 changes: 1 addition & 1 deletion cov_tests/sort_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ file_size=$[1024 * 1024 * 10]
dd if=/dev/urandom of=dummy bs=$file_size count=1 &>/dev/null

for ver in ${VERSIONS[*]}; do
for (( i=0; i < 3; i++ )); do
for (( i=0; i < 1; i++ )); do
if [[ $ver == 1 ]]; then
data_shards=$((1 + RANDOM % 128))
parity_shards=$((1 + RANDOM % 128))
Expand Down

0 comments on commit d3c1588

Please sign in to comment.