mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-25 17:31:36 +01:00
This feature removes the dependency on malloc/free for constrained embedded systems without a heap. It uses a static heap inside Unity Fixture. Setting UNITY_INTERNAL_HEAP_SIZE_BYTES sizes the heap. Add tests for new option, add targets to makefile for running tests. UNITY_FIXTURE_MALLOC for Fixture use only, remove from unity_output_Spy.c.
23 lines
651 B
C
23 lines
651 B
C
//- Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
|
/* ==========================================
|
|
Unity Project - A Test Framework for C
|
|
Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
|
[Released under MIT License. Please refer to license.txt for details]
|
|
========================================== */
|
|
|
|
#include "unity_fixture.h"
|
|
|
|
static void runAllTests(void)
|
|
{
|
|
RUN_TEST_GROUP(UnityFixture);
|
|
RUN_TEST_GROUP(UnityCommandOptions);
|
|
RUN_TEST_GROUP(LeakDetection);
|
|
RUN_TEST_GROUP(InternalMalloc);
|
|
}
|
|
|
|
int main(int argc, const char* argv[])
|
|
{
|
|
return UnityMain(argc, argv, runAllTests);
|
|
}
|
|
|