mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: adjusted wording and messages for wmake
- add an additional test for wmake pre-processing
This commit is contained in:
committed by
Andrew Heather
parent
baaf8d6bc9
commit
939144233c
10
applications/test/wmake1/Make/files
Normal file
10
applications/test/wmake1/Make/files
Normal file
@ -0,0 +1,10 @@
|
||||
Test-wmake1.C
|
||||
|
||||
/* #if OPENFOAM == 1812 */
|
||||
#if OPENFOAM > 1812
|
||||
newStub.C
|
||||
#else
|
||||
oldStub.C
|
||||
#endif
|
||||
|
||||
EXE = $(FOAM_APPBIN)/Test-wmake1
|
||||
2
applications/test/wmake1/Make/options
Normal file
2
applications/test/wmake1/Make/options
Normal file
@ -0,0 +1,2 @@
|
||||
EXE_INC =
|
||||
EXE_LIBS =
|
||||
56
applications/test/wmake1/Test-wmake1.C
Normal file
56
applications/test/wmake1/Test-wmake1.C
Normal file
@ -0,0 +1,56 @@
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2019 OpenCFD Ltd.
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
|
||||
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
OpenFOAM 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. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Application
|
||||
Test-wmake1
|
||||
|
||||
Description
|
||||
Some tests for wmake features.
|
||||
For example, testing how robust or fragile version-dependent conditional
|
||||
compilation works.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "argList.H"
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
void printTest();
|
||||
}
|
||||
|
||||
|
||||
using namespace Foam;
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
printTest();
|
||||
|
||||
Info<< "\nEnd\n" << nl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
13
applications/test/wmake1/newStub.C
Normal file
13
applications/test/wmake1/newStub.C
Normal file
@ -0,0 +1,13 @@
|
||||
// Some test code
|
||||
|
||||
#include "foamVersion.H"
|
||||
#include "IOstreams.H"
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
void printTest()
|
||||
{
|
||||
Info<< nl;
|
||||
foamVersion::printBuildInfo();
|
||||
}
|
||||
}
|
||||
17
applications/test/wmake1/oldStub.C
Normal file
17
applications/test/wmake1/oldStub.C
Normal file
@ -0,0 +1,17 @@
|
||||
// Some test code
|
||||
|
||||
#include "IOstreams.H"
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
void printTest()
|
||||
{
|
||||
Info<< nl << "Using old stub" << nl;
|
||||
|
||||
#if OPENFOAM
|
||||
Info<< "OPENFOAM=" << OPENFOAM << nl;
|
||||
#else
|
||||
Info<< "OPENFOAM is undefined" << nl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user