Kate
test_regression.cpp File Reference
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <unistd.h>
#include <pwd.h>
#include <signal.h>
#include <kapplication.h>
#include <kstandarddirs.h>
#include <qimage.h>
#include <qfile.h>
#include "test_regression.h"
#include <stdio.h>
#include <kaction.h>
#include <kcmdlineargs.h>
#include "katefactory.h"
#include <kio/job.h>
#include <kmainwindow.h>
#include <ksimpleconfig.h>
#include <kglobalsettings.h>
#include <qcolor.h>
#include <qcursor.h>
#include <qdir.h>
#include <qevent.h>
#include <qobject.h>
#include <qpushbutton.h>
#include <qscrollview.h>
#include <qstring.h>
#include <qregexp.h>
#include <qtextstream.h>
#include <qvaluelist.h>
#include <qwidget.h>
#include <qfileinfo.h>
#include <qtimer.h>
#include <kstatusbar.h>
#include "katedocument.h"
#include "kateview.h"
#include <kparts/browserextension.h>
#include "katejscript.h"
#include "katedocumenthelpers.h"
#include "kateconfig.h"
#include "../interfaces/katecmd.h"
#include <qobjectlist.h>
#include "test_regression.moc"
Include dependency graph for test_regression.cpp:
Go to the source code of this file.
Defines | |
#define | BASE_DIR_CONFIG "/.testkateregression-3.5" |
#define | PUT_FUNC(name, enumval) putDirect(#name, new KateViewFunction(exec,v,KateViewFunction::enumval,1), DontEnum) |
#define | REP_CALL(enumval, func) |
Functions | |
static QString | findMostRecentFailureSnapshot () |
int | main (int argc, char *argv[]) |
static QString | makeRelativePath (const QString &base, const QString &path) |
static void | pause (int msec) |
static QStringList | readListFile (const QString &filename) |
Variables | |
const char | failureSnapshotPrefix [] = "testkateregressionrc-FS." |
static KCmdLineOptions | options [] |
Define Documentation
#define BASE_DIR_CONFIG "/.testkateregression-3.5" |
Definition at line 77 of file test_regression.cpp.
#define PUT_FUNC | ( | name, | |||
enumval | ) | putDirect(#name, new KateViewFunction(exec,v,KateViewFunction::enumval,1), DontEnum) |
#define REP_CALL | ( | enumval, | |||
func | ) |
Value:
case enumval: {\ int cnt = 1;\ if (args.size() > 0) cnt = args[0].toInt32(exec);\ while (cnt-- > 0) { m_view->func(); }\ return Undefined();\ }
Function Documentation
static QString findMostRecentFailureSnapshot | ( | ) | [static] |
Definition at line 367 of file test_regression.cpp.
Definition at line 396 of file test_regression.cpp.
returns the path in a way that is relatively reachable from base.
- Parameters:
-
base base directory (must not include trailing slash) path directory/file to be relatively reached by base
- Returns:
- path with all elements replaced by .. and concerning path elements to be relatively reachable from base.
Definition at line 861 of file test_regression.cpp.
static void pause | ( | int | msec | ) | [static] |
static QStringList readListFile | ( | const QString & | filename | ) | [static] |
Definition at line 697 of file test_regression.cpp.
Variable Documentation
const char failureSnapshotPrefix[] = "testkateregressionrc-FS." |
Definition at line 365 of file test_regression.cpp.
KCmdLineOptions options[] [static] |
Initial value:
{ { "b", 0, 0 }, { "base <base_dir>", "Directory containing tests, basedir and output directories.", 0}, { "cmp-failures <snapshot>", "Compare failures of this testrun against snapshot <snapshot>. Defaults to the most recently captured failure snapshot or none if none exists.", 0 }, { "d", 0, 0 }, { "debug", "Do not supress debug output", 0}, { "g", 0, 0 } , { "genoutput", "Regenerate baseline (instead of checking)", 0 } , { "keep-output", "Keep output files even on success", 0 }, { "save-failures <snapshot>", "Save failures of this testrun as failure snapshot <snapshot>", 0 }, { "s", 0, 0 } , { "show", "Show the window while running tests", 0 } , { "t", 0, 0 } , { "test <filename>", "Only run a single test. Multiple options allowed.", 0 } , { "o", 0, 0 }, { "output <directory>", "Put output in <directory> instead of <base_dir>/output", 0 } , { "+[base_dir]", "Directory containing tests,basedir and output directories. Only regarded if -b is not specified.", 0 } , { "+[testcases]", "Relative path to testcase, or directory of testcases to be run (equivalent to -t).", 0 } , KCmdLineLastOption }
Definition at line 374 of file test_regression.cpp.