mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
590 B
Bash
19 lines
590 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
# shellcheck source=scripts/common.sh
|
||
|
source "${REPO_ROOT}/scripts/common.sh"
|
||
|
|
||
|
printTask "Testing soljson via the fuzzer..."
|
||
|
SOLTMPDIR=$(mktemp -d)
|
||
|
(
|
||
|
set -e
|
||
|
cd "$SOLTMPDIR"
|
||
|
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/test/
|
||
|
"$REPO_ROOT"/scripts/isolate_tests.py "$REPO_ROOT"/docs/
|
||
|
|
||
|
echo ./*.sol | xargs -P 4 -n 50 "${SOLIDITY_BUILD_DIR}/test/tools/solfuzzer" --quiet --input-files
|
||
|
echo ./*.sol | xargs -P 4 -n 50 "${SOLIDITY_BUILD_DIR}/test/tools/solfuzzer" --without-optimizer --quiet --input-files
|
||
|
)
|
||
|
rm -r "$SOLTMPDIR"
|