summaryrefslogtreecommitdiff
path: root/Tests/FortranOnly/checktestf2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/FortranOnly/checktestf2.cmake')
-rw-r--r--Tests/FortranOnly/checktestf2.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/FortranOnly/checktestf2.cmake b/Tests/FortranOnly/checktestf2.cmake
new file mode 100644
index 000000000..f0e6be329
--- /dev/null
+++ b/Tests/FortranOnly/checktestf2.cmake
@@ -0,0 +1,8 @@
+file(READ testfhello.txt IN)
+message("${IN}")
+if(IN MATCHES Hello AND IN MATCHES World)
+ message("Passed")
+else()
+ message(FATAL_ERROR "Hello world not found")
+endif()
+file(WRITE testfhello2.txt ${IN})