From 505b66b892151e8590368b013caa922117be6b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Fri, 13 Jan 2023 23:26:01 +0100 Subject: [PATCH] * Test program --- packages/fcl-xml/tests/testxml.lpi | 77 ++++++++++++++++++++++++++++++ packages/fcl-xml/tests/testxml.pp | 42 ++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 packages/fcl-xml/tests/testxml.lpi create mode 100644 packages/fcl-xml/tests/testxml.pp diff --git a/packages/fcl-xml/tests/testxml.lpi b/packages/fcl-xml/tests/testxml.lpi new file mode 100644 index 0000000000..feeec5d6af --- /dev/null +++ b/packages/fcl-xml/tests/testxml.lpi @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/packages/fcl-xml/tests/testxml.pp b/packages/fcl-xml/tests/testxml.pp new file mode 100644 index 0000000000..1d6769603a --- /dev/null +++ b/packages/fcl-xml/tests/testxml.pp @@ -0,0 +1,42 @@ +{ %OPT=-S2 -Fcutf8 } +{ + This file is part of the Free Component Library + + XML tester program + Copyright (c) 2022 by Michael Van Canneyt michael@freepascal.org + + See the file COPYING.FPC, included in this distribution, + for details about the copyright. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + **********************************************************************} +{$mode objfpc} +{$h+} +program testxml; + +uses + {$ifdef unix} + cwstring, + {$endif} + Classes, readertest, consoletestrunner; + +type + { TLazTestRunner } + TMyTestRunner = class(TTestRunner) + protected + // override the protected methods of TTestRunner to customize its behavior + end; + +var + Application: TMyTestRunner; +begin + DefaultFormat := fPlain; + DefaultRunAllTests := True; + Application := TMyTestRunner.Create(nil); + Application.Initialize; + Application.Run; + Application.Free; +end.