-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from NOAA-EMC/ejh_test_2
Remove pFUnit test framework
- Loading branch information
Showing
6 changed files
with
76 additions
and
67 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,29 @@ | ||
name: without OPENMP | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: checkout-sp | ||
uses: actions/checkout@v2 | ||
with: | ||
path: sp | ||
|
||
- name: build_sp | ||
env: | ||
FC: gfortran-9 | ||
CC: gcc-9 | ||
run: | | ||
cd sp | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make -j2 | ||
- name: test_sp | ||
run: | | ||
cd $GITHUB_WORKSPACE/sp/build | ||
make test | ||
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
set(test_srcs test_sp.pf) | ||
# This is the CMake build file for the test directory of NCEPLIBS-sp. | ||
|
||
# Kyle Gerheiser, Ed Hartnett | ||
|
||
add_executable (tst_sp tst_sp.F) | ||
add_test(tst_sp tst_sp) | ||
target_link_libraries (tst_sp sp_d) | ||
|
||
add_pfunit_ctest (sp_mod_test | ||
TEST_SOURCES test_sp_mod.pf | ||
LINK_LIBRARIES sp::sp_4 | ||
) |
This file was deleted.
Oops, something went wrong.
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,30 @@ | ||
C This is a test program for NCEPLIBS-sp. | ||
C | ||
C Ed Hartnett, Kyle Gerheiser | ||
|
||
C Test of splat(). | ||
subroutine test_splat() | ||
integer :: j, jmax | ||
real*8 slat(384), wlat(384) | ||
|
||
jmax = 384 ! t382 grid | ||
|
||
call splat(0, jmax,slat,wlat) | ||
|
||
do j = 2, jmax-1 | ||
if (slat(j) < slat(j+1)) stop 2 | ||
end do | ||
|
||
end subroutine test_splat | ||
|
||
C Run all the tests. | ||
program tst_sp | ||
implicit none | ||
|
||
print *, '' | ||
print *,'*** Testing NCEPLIBS-sp.' | ||
|
||
call test_splat() | ||
|
||
print *,'*** SUCCESS!' | ||
end program |