summaryrefslogtreecommitdiffstats
path: root/Tests/StringFileTest/StringFile.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-10 18:29:30 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-07-10 18:29:30 (GMT)
commitb75c229444d8072fd63df2d723fb9cbec81f53f4 (patch)
tree75cd86fdc20f7e54fdb759711aeede0243f4bb12 /Tests/StringFileTest/StringFile.cxx
parentc4275f54c7d958349ea66458b6da46ae755bf324 (diff)
downloadCMake-b75c229444d8072fd63df2d723fb9cbec81f53f4.zip
CMake-b75c229444d8072fd63df2d723fb9cbec81f53f4.tar.gz
CMake-b75c229444d8072fd63df2d723fb9cbec81f53f4.tar.bz2
ENH: Add test for string and file commands
Diffstat (limited to 'Tests/StringFileTest/StringFile.cxx')
-rw-r--r--Tests/StringFileTest/StringFile.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/StringFileTest/StringFile.cxx b/Tests/StringFileTest/StringFile.cxx
new file mode 100644
index 0000000..6c3a7e3
--- /dev/null
+++ b/Tests/StringFileTest/StringFile.cxx
@@ -0,0 +1,24 @@
+#include <stdio.h>
+#include "OutputFile.h"
+
+int main(int, char*[])
+{
+ int res = 0;
+
+ res += CheckMethod(rmvar, "CMake");
+ res += CheckMethod(rmallvar, "CMake;cmake;CMake");
+ res += CheckMethod(rrepvar, "People should use CMake and CMake");
+ res += CheckMethod(nceqvar, "0");
+ res += CheckMethod(ceqvar, "1");
+ res += CheckMethod(cneqvar, "1");
+ res += CheckMethod(ncneqvar, "0");
+ res += CheckMethod(nclvar, "0");
+ res += CheckMethod(clvar, "1");
+ res += CheckMethod(cgvar, "1");
+ res += CheckMethod(ncgvar, "0");
+ res += CheckMethod(savar, "Cmake");
+ res += CheckMethod(tuvar, "CMAKE");
+ res += CheckMethod(tlvar, "cmake");
+
+ return res;
+}