From fffc205acce184a1e736459172542b5057992a1f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 20 Jul 2006 10:40:32 +0000 Subject: [PATCH] 2006-07-20 12:36 UTC+0100 Viktor Szakats (viktor.szakats syenar.hu) + harbour/utils/hbpptest/compare.bat + harbour/utils/hbpptest/.cvsignore * harbour/utils/hbpptest/pp_test.prg + Added batch file to compare PP results between Harbour and CA-Cl*pper. --- harbour/ChangeLog | 7 +++++++ harbour/utils/hbpptest/.cvsignore | 1 + harbour/utils/hbpptest/compare.bat | 18 ++++++++++++++++++ harbour/utils/hbpptest/pp_test.prg | 18 +++++++++--------- 4 files changed, 35 insertions(+), 9 deletions(-) create mode 100644 harbour/utils/hbpptest/.cvsignore create mode 100644 harbour/utils/hbpptest/compare.bat diff --git a/harbour/ChangeLog b/harbour/ChangeLog index bbca739971..e68d56a4d4 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,13 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ + * harbour/makefile.vc + * harbour/make_vc.bat + ! Fixed header description of makefile + * Added INSTALL rule. + + Added batch file to compare PP results between Harbour and +2006-07-20 12:36 UTC+0100 Viktor Szakats (viktor.szakats syenar.hu) + + harbour/utils/hbpptest/compare.bat + harbour/utils/hbpptest/.cvsignore * harbour/utils/hbpptest/pp_test.prg + Added batch file to compare PP results between Harbour and diff --git a/harbour/utils/hbpptest/.cvsignore b/harbour/utils/hbpptest/.cvsignore new file mode 100644 index 0000000000..ba7e8d2b0b --- /dev/null +++ b/harbour/utils/hbpptest/.cvsignore @@ -0,0 +1 @@ +pp_test.diff diff --git a/harbour/utils/hbpptest/compare.bat b/harbour/utils/hbpptest/compare.bat new file mode 100644 index 0000000000..48a9cdc529 --- /dev/null +++ b/harbour/utils/hbpptest/compare.bat @@ -0,0 +1,18 @@ +@echo off +rem +rem $Id$ +rem + +copy pp_test.prg _pp_hb.prg +copy pp_test.prg _pp_c5x.prg + +..\..\bin\harbour.exe -p -s -n _pp_hb.prg +clipper.exe _pp_c5x.prg /p /s /n + +del _pp_hb.prg +del _pp_c5x.prg + +diff -u -w _pp_hb.ppo _pp_c5x.ppo > pp_test.diff + +del _pp_hb.ppo +del _pp_c5x.ppo diff --git a/harbour/utils/hbpptest/pp_test.prg b/harbour/utils/hbpptest/pp_test.prg index dfcc3ee29e..df8c5a985a 100644 --- a/harbour/utils/hbpptest/pp_test.prg +++ b/harbour/utils/hbpptest/pp_test.prg @@ -1,20 +1,20 @@ /* * $Id$ */ + /* Test file to check the preprocessor. + * * Usage: - * 1) Preprocess it using: - * harbour -p -n pp_test.prg - * 2) Rename generated pp_test.ppo (for example into pp_test.hpp) - * 3) Preprocess it with Clipper using: - * clipper -p -n pp_test.prg - * 4) Compare Clipper generated file pp_test.ppo with file generated - * with Harbour, ignoring number of white spaces, for example: - * diff -u -w pp_test.ppo pp_test.hpp > pp_test.diff + * 1) Run compare.bat for a comparison between Harbour and CA-Cl*pper. + * 2) Results will be stored in pp_test.diff + * + * Notes: + * - clipper.exe and diff.exe needs to be in the path. * * Ignore most of errors reported during compilation. * */ + PROCEDURE MAIN() #ifdef __HARBOUR__ @@ -468,4 +468,4 @@ DEFINE CLIPBOARD oC OF oD FORMAT TEXT &oW.Title := "title" &oW.f9 := 9 -RETURN \ No newline at end of file +RETURN