File: loop.sh

package info (click to toggle)
rust-openpgp-card-rpgp 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 392 kB
  • sloc: sh: 6; makefile: 2
file content (17 lines) | stat: -rwxr-xr-x 468 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# SPDX-FileCopyrightText: Heiko Schaefer <heiko@schaefer.name>
# SPDX-License-Identifier: CC0-1.0

# Helper script to manually run an endless loop of one test (currently hardcoded to "import"),
# and stop on the first error:
#
# $ tests/loop.sh tests/ci/virt-opcard-rs.toml

TEST=import

COUNTER=0
while [ true ]; do
  TEST_CONFIG=$1 cargo test --release $TEST -- --ignored --nocapture || exit 1
  let COUNTER++; echo "=== loop counter: $COUNTER ==="
done