Skip to content

Commit

Permalink
sample: add/fix files for RTEMS harness
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphlange committed Jan 3, 2025
1 parent 8d54fa0 commit ee9093d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sampleApp/mixdGtestEpicsSrc/epicsRunSampleTests.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@
#include <epicsUnitTest.h>

int stringCompareTest(void);
int integerCompareTest(void);
int dbUnitTest(void);

void epicsRunSampleTests(void)
{
testHarness();

runTest(stringCompareTest);
runTest(integerCompareTest);
runTest(dbUnitTest);

testHarnessDone();
}
15 changes: 15 additions & 0 deletions sampleApp/mixdGtestEpicsSrc/rtemsTestHarness.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*************************************************************************\
* Copyright (c) 2012 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* SPDX-License-Identifier: EPICS
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/

extern void epicsRunSampleTests(void);

int main(int argc, char **argv)
{
epicsRunSampleTests(); /* calls epicsExit(0) */
return 0;
}
4 changes: 4 additions & 0 deletions sampleApp/onlyEpicsSrc/epicsRunSampleTests.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@
#include <epicsUnitTest.h>

int stringCompareTest(void);
int integerCompareTest(void);
int dbUnitTest(void);

void epicsRunSampleTests(void)
{
testHarness();

runTest(stringCompareTest);
runTest(integerCompareTest);
runTest(dbUnitTest);

testHarnessDone();
}
15 changes: 15 additions & 0 deletions sampleApp/onlyEpicsSrc/rtemsTestHarness.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*************************************************************************\
* Copyright (c) 2012 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* SPDX-License-Identifier: EPICS
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/

extern void epicsRunSampleTests(void);

int main(int argc, char **argv)
{
epicsRunSampleTests(); /* calls epicsExit(0) */
return 0;
}

0 comments on commit ee9093d

Please sign in to comment.