2019-01-05 02:10:31 +01:00
|
|
|
# Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
2018-06-15 23:54:34 +02:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
# Run tests with test_errors.sh. It compiles the test with f18 and compares
|
|
|
|
# actual errors produced with expected ones listed in the source.
|
|
|
|
|
2018-07-12 02:45:13 +02:00
|
|
|
# These test files have expected errors in the source
|
|
|
|
set(ERROR_TESTS
|
2018-06-15 23:54:34 +02:00
|
|
|
implicit01.f90
|
|
|
|
implicit02.f90
|
|
|
|
implicit03.f90
|
|
|
|
implicit04.f90
|
|
|
|
implicit05.f90
|
|
|
|
implicit06.f90
|
|
|
|
implicit07.f90
|
2018-08-27 20:48:49 +02:00
|
|
|
implicit08.f90
|
2018-12-04 19:55:32 +01:00
|
|
|
kinds02.f90
|
2018-06-15 23:54:34 +02:00
|
|
|
resolve01.f90
|
|
|
|
resolve02.f90
|
|
|
|
resolve03.f90
|
|
|
|
resolve04.f90
|
|
|
|
resolve05.f90
|
|
|
|
resolve06.f90
|
|
|
|
resolve07.f90
|
|
|
|
resolve08.f90
|
|
|
|
resolve09.f90
|
|
|
|
resolve10.f90
|
|
|
|
resolve11.f90
|
|
|
|
resolve12.f90
|
|
|
|
resolve13.f90
|
|
|
|
resolve14.f90
|
|
|
|
resolve15.f90
|
|
|
|
resolve16.f90
|
|
|
|
resolve17.f90
|
|
|
|
resolve18.f90
|
|
|
|
resolve19.f90
|
|
|
|
resolve20.f90
|
2018-06-22 17:21:19 +02:00
|
|
|
resolve21.f90
|
|
|
|
resolve22.f90
|
|
|
|
resolve23.f90
|
2018-07-05 19:28:34 +02:00
|
|
|
resolve24.f90
|
2018-07-20 19:46:11 +02:00
|
|
|
resolve25.f90
|
2018-08-03 01:21:27 +02:00
|
|
|
resolve26.f90
|
|
|
|
resolve27.f90
|
2018-08-23 01:05:06 +02:00
|
|
|
resolve28.f90
|
|
|
|
resolve29.f90
|
2018-08-27 20:48:49 +02:00
|
|
|
resolve30.f90
|
2018-08-29 20:38:12 +02:00
|
|
|
resolve31.f90
|
2018-09-01 01:20:00 +02:00
|
|
|
resolve32.f90
|
2018-09-04 19:28:27 +02:00
|
|
|
resolve33.f90
|
2018-09-20 23:08:59 +02:00
|
|
|
resolve34.f90
|
2018-09-25 17:53:53 +02:00
|
|
|
resolve35.f90
|
2018-10-26 16:34:50 +02:00
|
|
|
resolve36.f90
|
2018-12-06 15:59:37 +01:00
|
|
|
resolve37.f90
|
2018-12-26 22:31:13 +01:00
|
|
|
resolve38.f90
|
2019-01-16 01:59:20 +01:00
|
|
|
resolve39.f90
|
2019-02-05 23:43:00 +01:00
|
|
|
resolve40.f90
|
2018-06-15 23:54:34 +02:00
|
|
|
)
|
|
|
|
|
2018-07-12 02:45:13 +02:00
|
|
|
# These test files have expected symbols in the source
|
|
|
|
set(SYMBOL_TESTS
|
|
|
|
symbol01.f90
|
2018-08-23 01:05:06 +02:00
|
|
|
symbol02.f90
|
|
|
|
symbol03.f90
|
2018-08-23 16:41:06 +02:00
|
|
|
symbol04.f90
|
2018-08-27 20:48:49 +02:00
|
|
|
symbol05.f90
|
2018-09-20 23:08:59 +02:00
|
|
|
symbol06.f90
|
2018-09-24 16:12:38 +02:00
|
|
|
symbol07.f90
|
2018-10-11 01:20:46 +02:00
|
|
|
symbol08.f90
|
2018-10-18 16:55:48 +02:00
|
|
|
symbol09.f90
|
2018-12-18 16:59:40 +01:00
|
|
|
symbol10.f90
|
2019-01-16 01:59:20 +01:00
|
|
|
symbol11.f90
|
2018-12-04 19:55:32 +01:00
|
|
|
kinds01.f90
|
|
|
|
kinds03.f90
|
2018-07-12 02:45:13 +02:00
|
|
|
)
|
|
|
|
|
2018-07-17 01:24:14 +02:00
|
|
|
# These test files have expected .mod file contents in the source
|
|
|
|
set(MODFILE_TESTS
|
|
|
|
modfile01.f90
|
|
|
|
modfile02.f90
|
|
|
|
modfile03.f90
|
2018-07-17 01:44:07 +02:00
|
|
|
modfile04.f90
|
2018-07-17 15:39:38 +02:00
|
|
|
modfile05.f90
|
2018-07-19 22:28:24 +02:00
|
|
|
modfile06.f90
|
|
|
|
modfile07.f90
|
|
|
|
modfile08.f90
|
2018-08-03 01:21:27 +02:00
|
|
|
modfile09-*.f90
|
2018-09-01 01:20:00 +02:00
|
|
|
modfile10.f90
|
2018-09-04 19:28:27 +02:00
|
|
|
modfile11.f90
|
2018-11-07 02:18:06 +01:00
|
|
|
modfile12.f90
|
2018-12-14 23:04:15 +01:00
|
|
|
modfile13.f90
|
2018-12-26 22:31:13 +01:00
|
|
|
modfile14.f90
|
2019-01-05 02:10:31 +01:00
|
|
|
modfile15.f90
|
|
|
|
modfile16.f90
|
2018-12-04 19:55:32 +01:00
|
|
|
modfile17.f90
|
2019-01-29 19:22:18 +01:00
|
|
|
modfile18.f90
|
2019-02-05 23:43:00 +01:00
|
|
|
modfile19.f90
|
2018-07-17 01:24:14 +02:00
|
|
|
)
|
|
|
|
|
2018-08-31 19:26:19 +02:00
|
|
|
set(LABEL_TESTS
|
|
|
|
label*.[Ff]90
|
|
|
|
)
|
|
|
|
|
2018-09-18 02:19:27 +02:00
|
|
|
set(DOCONCURRENT_TESTS
|
|
|
|
doconcurrent*.[Ff]90
|
|
|
|
)
|
|
|
|
|
2018-09-19 23:26:02 +02:00
|
|
|
set(CANONDO_TESTS
|
|
|
|
canondo*.[Ff]90
|
|
|
|
)
|
|
|
|
|
2018-12-11 23:03:55 +01:00
|
|
|
set(FORALL_TESTS
|
|
|
|
forall*.[Ff]90
|
|
|
|
)
|
|
|
|
|
2018-07-12 02:45:13 +02:00
|
|
|
foreach(test ${ERROR_TESTS})
|
2018-06-15 23:54:34 +02:00
|
|
|
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_errors.sh ${test})
|
|
|
|
endforeach()
|
2018-07-12 02:45:13 +02:00
|
|
|
|
|
|
|
foreach(test ${SYMBOL_TESTS})
|
|
|
|
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_symbols.sh ${test})
|
|
|
|
endforeach()
|
2018-07-17 01:24:14 +02:00
|
|
|
|
|
|
|
foreach(test ${MODFILE_TESTS})
|
|
|
|
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_modfile.sh ${test})
|
|
|
|
endforeach()
|
2018-08-31 19:26:19 +02:00
|
|
|
|
|
|
|
foreach(test ${LABEL_TESTS})
|
|
|
|
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_any.sh ${test})
|
|
|
|
endforeach()
|
2018-09-19 23:26:02 +02:00
|
|
|
|
|
|
|
foreach(test ${CANONDO_TESTS})
|
|
|
|
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_any.sh ${test})
|
|
|
|
endforeach()
|
2018-09-18 02:19:27 +02:00
|
|
|
|
|
|
|
foreach(test ${DOCONCURRENT_TESTS})
|
|
|
|
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_any.sh ${test})
|
|
|
|
endforeach()
|
2018-12-11 23:03:55 +01:00
|
|
|
|
|
|
|
foreach(test ${FORALL_TESTS})
|
|
|
|
add_test(NAME ${test} COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/test_any.sh ${test})
|
|
|
|
endforeach()
|