Skip to content

Commit

Permalink
Add build script for stdlib test projects (FuelLabs#1095)
Browse files Browse the repository at this point in the history
* Merge branch 'master' into furnic/organize-test-directories

* tooling: add build script

* Update build.sh

Co-authored-by: John Adler <[email protected]>

Co-authored-by: John Adler <[email protected]>
  • Loading branch information
nfurfaro and adlerjohn authored Mar 29, 2022
1 parent 1943136 commit 92cc0df
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# Place in root of project and run to build the project and all its tests and artifacts
FILES="./sway-lib-std/tests/test_*/*"
for f in $FILES
do
if [ -d "${f}" ];
then
echo "building test $f..."
forc build -o temp -p $f
if ! [ -f temp ];
then
echo "Failed to build $f"
exit 1
fi
rm temp
fi
done

echo "building project..."
pushd sway-lib-std/tests
cargo test
popd

0 comments on commit 92cc0df

Please sign in to comment.