-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Examples]-Added scripts to cloc and fortran examples, updated build_…
…fixups.sh to remove scripts for release
- Loading branch information
Showing
8 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#/bin/bash | ||
# | ||
# Checks all tests in examples/cloc directory using make check. Programs return 0 for success or a number > 0 for failure. | ||
# | ||
echo "" | ||
echo "" | ||
path=$(pwd) | ||
base=$(basename $path) | ||
echo "" | ||
echo "RUNNING ALL TESTS IN: $path " | ||
echo "" | ||
|
||
echo "" > check-cloc.txt | ||
echo "" >> check-cloc.txt | ||
echo "*******A non-zero exit code means a failure occured.*******" >> check-cloc.txt | ||
echo "***********************************************************" >> check-cloc.txt | ||
|
||
#Loop over all directories and make run / make check depending on directory name | ||
for directory in ./*/; do | ||
(cd "$directory" && path=$(pwd) && base=$(basename $path) | ||
make clean | ||
make | ||
make run | ||
echo " Return Code for $base: $?" >> ../check-cloc.txt | ||
make clean | ||
|
||
) | ||
|
||
done | ||
|
||
#Print run.log for all tests that need visual inspection | ||
for directory in ./*/; do | ||
(cd "$directory" && path=$(pwd) && base=$(basename $path) | ||
) | ||
done | ||
cat check-cloc.txt | ||
rm check-cloc.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#/bin/bash | ||
# | ||
# Checks all tests in examples/fortran directory using make check. Programs return 0 for success or a number > 0 for failure. | ||
# Tests that need to be visually inspected: helloworld | ||
# | ||
echo "" | ||
echo "" | ||
path=$(pwd) | ||
base=$(basename $path) | ||
echo "" | ||
echo "RUNNING ALL TESTS IN: $path " | ||
echo "" | ||
|
||
echo "" > check-fortran.txt | ||
echo "" >> check-fortran.txt | ||
echo "*******A non-zero exit code means a failure occured.*******" >> check-fortran.txt | ||
echo "*******Tests that need visual inspection: helloworld********" >> check-fortran.txt | ||
echo "***********************************************************" >> check-fortran.txt | ||
|
||
#Loop over all directories and make run / make check depending on directory name | ||
for directory in ./*/; do | ||
(cd "$directory" && path=$(pwd) && base=$(basename $path) | ||
make clean | ||
make | ||
make run | ||
echo " Return Code for $base: $?" >> ../check-fortran.txt | ||
make clean | ||
|
||
) | ||
|
||
done | ||
|
||
#Print run.log for all tests that need visual inspection | ||
for directory in ./*/; do | ||
(cd "$directory" && path=$(pwd) && base=$(basename $path) | ||
) | ||
done | ||
cat check-fortran.txt | ||
rm check-fortran.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters