Skip to content

Commit

Permalink
ci: allow to test diversity, disabled by default
Browse files Browse the repository at this point in the history
We want to make sure to catch flaws when using different
configurations, especially as those are less tested. Hence, allow
to test them during CI.

Signed-off-by: Norbert Manthey <[email protected]>
  • Loading branch information
conp-solutions committed Apr 5, 2021
1 parent 3632d70 commit 00e04a3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion tools/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ TESTFUZZ=${RUNFUZZ:-1}
TESTSTAREXEC=${RUNSTAREXEC:-1}
TESTOPENWBO=${RUNOPENWBO:-1}
TESTPIASIR=${RUNIPASIR:-1}
TESTDIVERSIFY=${RUNDIVERSIFY:-0}

IPASIR_TIMEOUT=${IPASIR_TIMEOUT:-3600}

Expand All @@ -34,9 +35,23 @@ if [ $TESTFUZZ -eq 1 ]; then
./prepare.sh

# Perform a basic run, and forward its exit code
echo "Solve and check 100 formulas with a 5s timeout"
echo "Solve and check $FUZZ_ROUNDS formulas with a 5s timeout"
./fuzz-drat.sh $FUZZ_ROUNDS 5 || STATUS=$?

echo "Fuzz diversity rank configurations ..."
./fuzz-check-configurations.sh || STATUS=$?

popd
fi

if [ $TESTDIVERSIFY -eq 1 ]; then
# Enter checker repository
pushd tools/checker

# Checkout and build required tools
./prepare.sh

# Perform a basic run, and forward its exit code
echo "Fuzz some pre-defined configurations ..."
./fuzz-check-configurations.sh || STATUS=$?

Expand Down

0 comments on commit 00e04a3

Please sign in to comment.