Skip to content

Commit 671f8d2

Browse files
committed
Update all the boilerplates
1 parent 85452ad commit 671f8d2

File tree

113 files changed

+747
-223
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+747
-223
lines changed

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) <year> 2007-24 Mike Karlesky, Mark VanderVoord, Greg Williams
3+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, Greg Williams
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

auto/__init__.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
7+

auto/colour_prompt.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
if RUBY_PLATFORM =~ /(win|w)32$/
89
begin

auto/colour_reporter.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
require_relative 'colour_prompt'
89

auto/extract_version.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
7+
18
#!/usr/bin/env python3
29
import re
310
import sys

auto/generate_config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
7+
18
#this is a sample configuration file for generate_module
29
#you would use it by calling generate_module with the -ygenerate_config.yml option
310
#files like this are useful for customizing generate_module to your environment

auto/generate_module.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
# This script creates all the files with start code necessary for a new module.
89
# A simple module only requires a source file, header file, and test file.

auto/generate_test_runner.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#!/usr/bin/ruby
22

3-
# ==========================================
4-
# Unity Project - A Test Framework for C
5-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
6-
# [Released under MIT License. Please refer to license.txt for details]
7-
# ==========================================
3+
# =========================================================================
4+
# Unity - A Test Framework for C
5+
# ThrowTheSwitch.org
6+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
7+
# SPDX-License-Identifier: MIT
8+
# =========================================================================
89

910
class UnityTestRunnerGenerator
1011
def initialize(options = nil)

auto/parse_output.rb

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
17
#============================================================
28
# Author: John Theofanopoulos
39
# A simple parser. Takes the output files generated during the

auto/stylize_as_junit.py

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#! python3
2-
# ==========================================
3-
# Fork from Unity Project - A Test Framework for C
4-
# Pull request on Gerrit in progress, the objective of this file is to be deleted when official Unity deliveries
5-
# include that modification
6-
# Copyright (c) 2015 Alexander Mueller / [email protected]
7-
# [Released under MIT License. Please refer to license.txt for details]
8-
# ==========================================
2+
# =========================================================================
3+
# Unity - A Test Framework for C
4+
# ThrowTheSwitch.org
5+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
6+
# SPDX-License-Identifier: MIT
7+
# =========================================================================
98
import sys
109
import os
1110
from glob import glob

auto/stylize_as_junit.rb

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
7+
18
#!/usr/bin/ruby
29
#
310
# unity_to_junit.rb

auto/test_file_filter.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
require_relative 'yaml_helper'
89

auto/type_sanitizer.rb

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
7+
18
module TypeSanitizer
29
def self.sanitize_c_identifier(unsanitized)
310
# convert filename to valid C identifier by replacing invalid chars with '_'

auto/unity_test_summary.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#! python3
2-
# ==========================================
3-
# Unity Project - A Test Framework for C
4-
# Copyright (c) 2015 Alexander Mueller / [email protected]
5-
# [Released under MIT License. Please refer to license.txt for details]
6-
# Based on the ruby script by Mike Karlesky, Mark VanderVoord, Greg Williams
7-
# ==========================================
2+
# =========================================================================
3+
# Unity - A Test Framework for C
4+
# ThrowTheSwitch.org
5+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
6+
# SPDX-License-Identifier: MIT
7+
# =========================================================================
88
import sys
99
import os
1010
import re

auto/unity_test_summary.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
# !/usr/bin/ruby
89
#

auto/yaml_helper.rb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
require 'yaml'
89

examples/example_1/makefile

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
#We try to detect the OS we are running on, and adjust commands as needed
89
ifeq ($(OS),Windows_NT)

examples/example_1/src/ProductionCode.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
#include "ProductionCode.h"
310

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
int FindFunction_WhichIsBroken(int NumberToFind);
310
int FunctionWhichReturnsLocalVariable(void);

examples/example_1/src/ProductionCode2.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
#include "ProductionCode2.h"
310

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);

examples/example_1/test/TestProductionCode.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
#include "ProductionCode.h"
310
#include "unity.h"

examples/example_1/test/TestProductionCode2.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
#include "ProductionCode2.h"
310
#include "unity.h"

examples/example_2/makefile

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# ==========================================
2-
# Unity Project - A Test Framework for C
3-
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
4-
# [Released under MIT License. Please refer to license.txt for details]
5-
# ==========================================
1+
# =========================================================================
2+
# Unity - A Test Framework for C
3+
# ThrowTheSwitch.org
4+
# Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
# SPDX-License-Identifier: MIT
6+
# =========================================================================
67

78
#We try to detect the OS we are running on, and adjust commands as needed
89
ifeq ($(OS),Windows_NT)

examples/example_2/src/ProductionCode.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
#include "ProductionCode.h"
310

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
int FindFunction_WhichIsBroken(int NumberToFind);
310
int FunctionWhichReturnsLocalVariable(void);

examples/example_2/src/ProductionCode2.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
#include "ProductionCode2.h"
310

+7
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18

29
char* ThisFunctionHasNotBeenTested(int Poor, char* LittleFunction);

examples/example_2/test/TestProductionCode.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18
#include "ProductionCode.h"
29
#include "unity.h"
310
#include "unity_fixture.h"

examples/example_2/test/TestProductionCode2.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18
#include "ProductionCode2.h"
29
#include "unity.h"
310
#include "unity_fixture.h"

examples/example_2/test/test_runners/TestProductionCode2_Runner.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18
#include "unity.h"
29
#include "unity_fixture.h"
310

examples/example_2/test/test_runners/TestProductionCode_Runner.c

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/* =========================================================================
2+
Unity - A Test Framework for C
3+
ThrowTheSwitch.org
4+
Copyright (c) 2007-24 Mike Karlesky, Mark VanderVoord, & Greg Williams
5+
SPDX-License-Identifier: MIT
6+
========================================================================= */
7+
18
#include "unity.h"
29
#include "unity_fixture.h"
310

0 commit comments

Comments
 (0)