mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Update all the boilerplates
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
|
|
||||||
Copyright (c) <year> 2007-24 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, Greg Williams
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
if RUBY_PLATFORM =~ /(win|w)32$/
|
if RUBY_PLATFORM =~ /(win|w)32$/
|
||||||
begin
|
begin
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
require_relative 'colour_prompt'
|
require_relative 'colour_prompt'
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
#this is a sample configuration file for generate_module
|
#this is a sample configuration file for generate_module
|
||||||
#you would use it by calling generate_module with the -ygenerate_config.yml option
|
#you would use it by calling generate_module with the -ygenerate_config.yml option
|
||||||
#files like this are useful for customizing generate_module to your environment
|
#files like this are useful for customizing generate_module to your environment
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
# This script creates all the files with start code necessary for a new module.
|
# This script creates all the files with start code necessary for a new module.
|
||||||
# A simple module only requires a source file, header file, and test file.
|
# A simple module only requires a source file, header file, and test file.
|
||||||
|
|||||||
@@ -1,10 +1,11 @@
|
|||||||
#!/usr/bin/ruby
|
#!/usr/bin/ruby
|
||||||
|
|
||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
class UnityTestRunnerGenerator
|
class UnityTestRunnerGenerator
|
||||||
def initialize(options = nil)
|
def initialize(options = nil)
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
#============================================================
|
#============================================================
|
||||||
# Author: John Theofanopoulos
|
# Author: John Theofanopoulos
|
||||||
# A simple parser. Takes the output files generated during the
|
# A simple parser. Takes the output files generated during the
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
#! python3
|
#! python3
|
||||||
# ==========================================
|
# =========================================================================
|
||||||
# Fork from Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Pull request on Gerrit in progress, the objective of this file is to be deleted when official Unity deliveries
|
# ThrowTheSwitch.org
|
||||||
# include that modification
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# Copyright (c) 2015 Alexander Mueller / XelaRellum@web.de
|
# SPDX-License-Identifier: MIT
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# =========================================================================
|
||||||
# ==========================================
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
#!/usr/bin/ruby
|
#!/usr/bin/ruby
|
||||||
#
|
#
|
||||||
# unity_to_junit.rb
|
# unity_to_junit.rb
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
require_relative 'yaml_helper'
|
require_relative 'yaml_helper'
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
module TypeSanitizer
|
module TypeSanitizer
|
||||||
def self.sanitize_c_identifier(unsanitized)
|
def self.sanitize_c_identifier(unsanitized)
|
||||||
# convert filename to valid C identifier by replacing invalid chars with '_'
|
# convert filename to valid C identifier by replacing invalid chars with '_'
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#! python3
|
#! python3
|
||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2015 Alexander Mueller / XelaRellum@web.de
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# Based on the ruby script by Mike Karlesky, Mark VanderVoord, Greg Williams
|
# SPDX-License-Identifier: MIT
|
||||||
# ==========================================
|
# =========================================================================
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
# !/usr/bin/ruby
|
# !/usr/bin/ruby
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
require 'yaml'
|
require 'yaml'
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
#We try to detect the OS we are running on, and adjust commands as needed
|
#We try to detect the OS we are running on, and adjust commands as needed
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
int FindFunction_WhichIsBroken(int NumberToFind);
|
int FindFunction_WhichIsBroken(int NumberToFind);
|
||||||
int FunctionWhichReturnsLocalVariable(void);
|
int FunctionWhichReturnsLocalVariable(void);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
#We try to detect the OS we are running on, and adjust commands as needed
|
#We try to detect the OS we are running on, and adjust commands as needed
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
int FindFunction_WhichIsBroken(int NumberToFind);
|
int FindFunction_WhichIsBroken(int NumberToFind);
|
||||||
int FunctionWhichReturnsLocalVariable(void);
|
int FunctionWhichReturnsLocalVariable(void);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|
||||||
static void RunAllTests(void)
|
static void RunAllTests(void)
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "UnityHelper.h"
|
#include "UnityHelper.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef _TESTHELPER_H
|
#ifndef _TESTHELPER_H
|
||||||
#define _TESTHELPER_H
|
#define _TESTHELPER_H
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
require 'rake'
|
require 'rake'
|
||||||
require 'rake/clean'
|
require 'rake/clean'
|
||||||
require_relative 'rakefile_helper'
|
require_relative 'rakefile_helper'
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require_relative '../../auto/unity_test_summary'
|
require_relative '../../auto/unity_test_summary'
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
int FindFunction_WhichIsBroken(int NumberToFind);
|
int FindFunction_WhichIsBroken(int NumberToFind);
|
||||||
int FunctionWhichReturnsLocalVariable(void);
|
int FunctionWhichReturnsLocalVariable(void);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
# Copied from ~Unity/targets/gcc_32.yml
|
# Copied from ~Unity/targets/gcc_32.yml
|
||||||
unity_root: &unity_root '../..'
|
unity_root: &unity_root '../..'
|
||||||
unity_source: &unity_source '../../src/'
|
unity_source: &unity_source '../../src/'
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
int FindFunction_WhichIsBroken(int NumberToFind);
|
int FindFunction_WhichIsBroken(int NumberToFind);
|
||||||
int FunctionWhichReturnsLocalVariable(void);
|
int FunctionWhichReturnsLocalVariable(void);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,2 +1,9 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode.h"
|
#include "ProductionCode.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "ProductionCode2.h"
|
#include "ProductionCode2.h"
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
/* Unity Configuration
|
/* Unity Configuration
|
||||||
* As of May 11th, 2016 at ThrowTheSwitch/Unity commit 837c529
|
* As of May 11th, 2016 at ThrowTheSwitch/Unity commit 837c529
|
||||||
* Update: December 29th, 2016
|
* Update: December 29th, 2016
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
/* Copyright (c) 2023 Michael Gene Brockus (Dreamer) and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef UNITY_BDD_TEST_H_
|
#ifndef UNITY_BDD_TEST_H_
|
||||||
#define UNITY_BDD_TEST_H_
|
#define UNITY_BDD_TEST_H_
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
* Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* ========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_bdd.h"
|
#include "unity_bdd.h"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
#include "unity_internals.h"
|
#include "unity_internals.h"
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#ifndef UNITY_FIXTURE_H_
|
#ifndef UNITY_FIXTURE_H_
|
||||||
#define UNITY_FIXTURE_H_
|
#define UNITY_FIXTURE_H_
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#ifndef UNITY_FIXTURE_INTERNALS_H_
|
#ifndef UNITY_FIXTURE_INTERNALS_H_
|
||||||
#define UNITY_FIXTURE_INTERNALS_H_
|
#define UNITY_FIXTURE_INTERNALS_H_
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
/* Copyright (c) 2010 James Grenning and Contributed to Unity Project
|
/* =========================================================================
|
||||||
* ==========================================
|
Unity - A Test Framework for C
|
||||||
* Unity Project - A Test Framework for C
|
ThrowTheSwitch.org
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
SPDX-License-Identifier: MIT
|
||||||
* ========================================== */
|
========================================================================= */
|
||||||
|
|
||||||
|
|
||||||
#include "unity_fixture.h"
|
#include "unity_fixture.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
* Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* ========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_memory.h"
|
#include "unity_memory.h"
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
* Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* ========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef UNITY_MEMORY_OVERRIDES_H_
|
#ifndef UNITY_MEMORY_OVERRIDES_H_
|
||||||
#define UNITY_MEMORY_OVERRIDES_H_
|
#define UNITY_MEMORY_OVERRIDES_H_
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
ifeq ($(shell uname -s), Darwin)
|
ifeq ($(shell uname -s), Darwin)
|
||||||
CC = clang
|
CC = clang
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
* Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* ========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_memory.h"
|
#include "unity_memory.h"
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
* Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* ========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_memory.h"
|
#include "unity_memory.h"
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
* Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* ========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
#include "unity_output_Spy.h"
|
#include "unity_output_Spy.h"
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
* Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
* Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
* [Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
* ========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef UNITY_OUTPUT_SPY_H
|
#ifndef UNITY_OUTPUT_SPY_H
|
||||||
#define UNITY_OUTPUT_SPY_H
|
#define UNITY_OUTPUT_SPY_H
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Unity",
|
"name": "Unity",
|
||||||
"version": "2.6.0",
|
"version": "2.6.0",
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
Import("env")
|
Import("env")
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* =========================================================================
|
/* =========================================================================
|
||||||
Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
[Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
============================================================================ */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|
||||||
|
|||||||
11
src/unity.h
11
src/unity.h
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
[Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef UNITY_FRAMEWORK_H
|
#ifndef UNITY_FRAMEWORK_H
|
||||||
#define UNITY_FRAMEWORK_H
|
#define UNITY_FRAMEWORK_H
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
/* ==========================================
|
/* =========================================================================
|
||||||
Unity Project - A Test Framework for C
|
Unity - A Test Framework for C
|
||||||
Copyright (c) 2007-21 Mike Karlesky, Mark VanderVoord, Greg Williams
|
ThrowTheSwitch.org
|
||||||
[Released under MIT License. Please refer to license.txt for details]
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
========================================== */
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef UNITY_INTERNALS_H
|
#ifndef UNITY_INTERNALS_H
|
||||||
#define UNITY_INTERNALS_H
|
#define UNITY_INTERNALS_H
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
# This is the configuration used to check the rubocop source code.
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
#inherit_from: .rubocop_todo.yml
|
#inherit_from: .rubocop_todo.yml
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
CC = gcc
|
CC = gcc
|
||||||
ifeq ($(shell uname -s), Darwin)
|
ifeq ($(shell uname -s), Darwin)
|
||||||
CC = clang
|
CC = clang
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
$verbose = false
|
$verbose = false
|
||||||
$extra_paths = []
|
$extra_paths = []
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
# ==========================================
|
# =========================================================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# ThrowTheSwitch.org
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
# ==========================================
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require_relative '../auto/unity_test_summary'
|
require_relative '../auto/unity_test_summary'
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
|
|
||||||
require '../auto/generate_module.rb'
|
require '../auto/generate_module.rb'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
:cmock:
|
:cmock:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\
|
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\
|
||||||
colour: true
|
colour: true
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.3\
|
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.3\
|
||||||
colour: true
|
colour: true
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.3\
|
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.3\
|
||||||
colour: true
|
colour: true
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
tools_root: C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\
|
tools_root: C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\
|
||||||
colour: true
|
colour: true
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.4\
|
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.4\
|
||||||
colour: true
|
colour: true
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\
|
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\
|
||||||
core_root: &1
|
core_root: &1
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
# =========================================================================
|
||||||
|
# Unity - A Test Framework for C
|
||||||
|
# ThrowTheSwitch.org
|
||||||
|
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
# =========================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
tools_root: C:\Program Files\IAR Systems\Embedded Workbench 6.0\
|
||||||
colour: true
|
colour: true
|
||||||
|
|||||||
7
test/testdata/CException.h
vendored
7
test/testdata/CException.h
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef CEXCEPTION_H
|
#ifndef CEXCEPTION_H
|
||||||
#define CEXCEPTION_H
|
#define CEXCEPTION_H
|
||||||
|
|
||||||
|
|||||||
7
test/testdata/Defs.h
vendored
7
test/testdata/Defs.h
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef DEF_H
|
#ifndef DEF_H
|
||||||
#define DEF_H
|
#define DEF_H
|
||||||
|
|
||||||
|
|||||||
7
test/testdata/cmock.h
vendored
7
test/testdata/cmock.h
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef CMOCK_H
|
#ifndef CMOCK_H
|
||||||
#define CMOCK_H
|
#define CMOCK_H
|
||||||
|
|
||||||
|
|||||||
7
test/testdata/mockMock.h
vendored
7
test/testdata/mockMock.h
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
#ifndef MOCK_MOCK_H
|
#ifndef MOCK_MOCK_H
|
||||||
#define MOCK_MOCK_H
|
#define MOCK_MOCK_H
|
||||||
|
|
||||||
|
|||||||
7
test/testdata/testRunnerGenerator.c
vendored
7
test/testdata/testRunnerGenerator.c
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
7
test/testdata/testRunnerGeneratorSmall.c
vendored
7
test/testdata/testRunnerGeneratorSmall.c
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
7
test/testdata/testRunnerGeneratorWithMocks.c
vendored
7
test/testdata/testRunnerGeneratorWithMocks.c
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
/* =========================================================================
|
||||||
|
Unity - A Test Framework for C
|
||||||
|
ThrowTheSwitch.org
|
||||||
|
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
||||||
|
SPDX-License-Identifier: MIT
|
||||||
|
========================================================================= */
|
||||||
|
|
||||||
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
/* This Test File Is Used To Verify Many Combinations Of Using the Generate Test Runner Script */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user