cmdlineTests: Extract script-based test out of cmdlineTests.sh

- Just extraction, with as few changes to the code as possible.
This commit is contained in:
Kamil Śliwak
2023-06-02 16:10:40 +02:00
parent dd10334754
commit 6b061ba696
15 changed files with 382 additions and 307 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
# shellcheck source=scripts/common.sh
source "${REPO_ROOT}/scripts/common.sh"
# shellcheck source=scripts/common_cmdline.sh
source "${REPO_ROOT}/scripts/common_cmdline.sh"
printTask "Compiling various other contracts and libraries..."
(
cd "$REPO_ROOT"/test/compilationTests/
for dir in */
do
echo " - $dir"
cd "$dir"
# shellcheck disable=SC2046 # These file names are not supposed to contain spaces.
compileFull --expect-warnings $(find . -name '*.sol')
cd ..
done
)