From bbb570481b3a3e7bcae81732ec43f20228805b11 Mon Sep 17 00:00:00 2001
From: Roberto Raggi <qtc-committer@nokia.com>
Date: Wed, 7 Jan 2009 09:44:21 +0100
Subject: [PATCH] test the rewriter and the pretty printer.

---
 tests/manual/cplusplus/main.cpp            | 2 +-
 tests/manual/cplusplus/test-pretty-printer | 3 +++
 tests/manual/cplusplus/test-rewriter       | 3 +++
 3 files changed, 7 insertions(+), 1 deletion(-)
 create mode 100755 tests/manual/cplusplus/test-pretty-printer
 create mode 100755 tests/manual/cplusplus/test-rewriter

diff --git a/tests/manual/cplusplus/main.cpp b/tests/manual/cplusplus/main.cpp
index b8a8e328708..c33bcbbeff7 100644
--- a/tests/manual/cplusplus/main.cpp
+++ b/tests/manual/cplusplus/main.cpp
@@ -231,7 +231,7 @@ int main(int argc, char *argv[])
             const QByteArray appFileName = QFile::encodeName(appInfo.fileName());
 
             printf("Usage: %s [options]\n"
-                   "  --help                    Display ths information\n"
+                   "  --help                    Display this information\n"
                    "  --test-rewriter           Test the tree rewriter\n"
                    "  --test-pretty-printer     Test the pretty printer\n",
                    appFileName.constData());
diff --git a/tests/manual/cplusplus/test-pretty-printer b/tests/manual/cplusplus/test-pretty-printer
new file mode 100755
index 00000000000..7403721300e
--- /dev/null
+++ b/tests/manual/cplusplus/test-pretty-printer
@@ -0,0 +1,3 @@
+#!/bin/sh
+me=$(dirname $0)
+${CPP-gcc} -xc++ -E -include $me/conf.c++ $* | $me/cplusplus0 --test-pretty-printer
diff --git a/tests/manual/cplusplus/test-rewriter b/tests/manual/cplusplus/test-rewriter
new file mode 100755
index 00000000000..c0494257c8f
--- /dev/null
+++ b/tests/manual/cplusplus/test-rewriter
@@ -0,0 +1,3 @@
+#!/bin/sh
+me=$(dirname $0)
+${CPP-gcc} -xc++ -E -include $me/conf.c++ $* | $me/cplusplus0 --test-rewriter
-- 
GitLab