mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-08-24 03:59:57 +00:00
Fix trailing whitespace CRLF, no code changes
Now that the project is using .gitattributes, get rid of CRLF in the repo.
This commit is contained in:
@@ -1,211 +1,211 @@
|
|||||||
Unity Test API
|
Unity Test API
|
||||||
==============
|
==============
|
||||||
|
|
||||||
[](https://travis-ci.org/ThrowTheSwitch/Unity)
|
[](https://travis-ci.org/ThrowTheSwitch/Unity)
|
||||||
__Copyright (c) 2007 - 2014 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__
|
__Copyright (c) 2007 - 2014 Unity Project by Mike Karlesky, Mark VanderVoord, and Greg Williams__
|
||||||
|
|
||||||
Running Tests
|
Running Tests
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
RUN_TEST(func, linenum)
|
RUN_TEST(func, linenum)
|
||||||
|
|
||||||
Each Test is run within the macro `RUN_TEST`. This macro performs necessary setup before the test is called and handles cleanup and result tabulation afterwards.
|
Each Test is run within the macro `RUN_TEST`. This macro performs necessary setup before the test is called and handles cleanup and result tabulation afterwards.
|
||||||
|
|
||||||
Ignoring Tests
|
Ignoring Tests
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
There are times when a test is incomplete or not valid for some reason. At these times, TEST_IGNORE can be called. Control will immediately be returned to the caller of the test, and no failures will be returned.
|
There are times when a test is incomplete or not valid for some reason. At these times, TEST_IGNORE can be called. Control will immediately be returned to the caller of the test, and no failures will be returned.
|
||||||
|
|
||||||
TEST_IGNORE()
|
TEST_IGNORE()
|
||||||
|
|
||||||
Ignore this test and return immediately
|
Ignore this test and return immediately
|
||||||
|
|
||||||
TEST_IGNORE_MESSAGE (message)
|
TEST_IGNORE_MESSAGE (message)
|
||||||
|
|
||||||
Ignore this test and return immediately. Output a message stating why the test was ignored.
|
Ignore this test and return immediately. Output a message stating why the test was ignored.
|
||||||
|
|
||||||
Aborting Tests
|
Aborting Tests
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
There are times when a test will contain an infinite loop on error conditions, or there may be reason to escape from the test early without executing the rest of the test. A pair of macros support this functionality in Unity. The first `TEST_PROTECT` sets up the feature, and handles emergency abort cases. `TEST_ABORT` can then be used at any time within the tests to return to the last `TEST_PROTECT` call.
|
There are times when a test will contain an infinite loop on error conditions, or there may be reason to escape from the test early without executing the rest of the test. A pair of macros support this functionality in Unity. The first `TEST_PROTECT` sets up the feature, and handles emergency abort cases. `TEST_ABORT` can then be used at any time within the tests to return to the last `TEST_PROTECT` call.
|
||||||
|
|
||||||
TEST_PROTECT()
|
TEST_PROTECT()
|
||||||
|
|
||||||
Setup and Catch macro
|
Setup and Catch macro
|
||||||
|
|
||||||
TEST_ABORT()
|
TEST_ABORT()
|
||||||
|
|
||||||
Abort Test macro
|
Abort Test macro
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
main()
|
main()
|
||||||
{
|
{
|
||||||
if (TEST_PROTECT() == 0)
|
if (TEST_PROTECT() == 0)
|
||||||
{
|
{
|
||||||
MyTest();
|
MyTest();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
If MyTest calls `TEST_ABORT`, program control will immediately return to `TEST_PROTECT` with a non-zero return value.
|
If MyTest calls `TEST_ABORT`, program control will immediately return to `TEST_PROTECT` with a non-zero return value.
|
||||||
|
|
||||||
|
|
||||||
Unity Assertion Summary
|
Unity Assertion Summary
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
Basic Validity Tests
|
Basic Validity Tests
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
TEST_ASSERT_TRUE(condition)
|
TEST_ASSERT_TRUE(condition)
|
||||||
|
|
||||||
Evaluates whatever code is in condition and fails if it evaluates to false
|
Evaluates whatever code is in condition and fails if it evaluates to false
|
||||||
|
|
||||||
TEST_ASSERT_FALSE(condition)
|
TEST_ASSERT_FALSE(condition)
|
||||||
|
|
||||||
Evaluates whatever code is in condition and fails if it evaluates to true
|
Evaluates whatever code is in condition and fails if it evaluates to true
|
||||||
|
|
||||||
TEST_ASSERT(condition)
|
TEST_ASSERT(condition)
|
||||||
|
|
||||||
Another way of calling `TEST_ASSERT_TRUE`
|
Another way of calling `TEST_ASSERT_TRUE`
|
||||||
|
|
||||||
TEST_ASSERT_UNLESS(condition)
|
TEST_ASSERT_UNLESS(condition)
|
||||||
|
|
||||||
Another way of calling `TEST_ASSERT_FALSE`
|
Another way of calling `TEST_ASSERT_FALSE`
|
||||||
|
|
||||||
TEST_FAIL()
|
TEST_FAIL()
|
||||||
TEST_FAIL_MESSAGE(message)
|
TEST_FAIL_MESSAGE(message)
|
||||||
|
|
||||||
This test is automatically marked as a failure. The message is output stating why.
|
This test is automatically marked as a failure. The message is output stating why.
|
||||||
|
|
||||||
Numerical Assertions: Integers
|
Numerical Assertions: Integers
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_INT(expected, actual)
|
TEST_ASSERT_EQUAL_INT(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_INT8(expected, actual)
|
TEST_ASSERT_EQUAL_INT8(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_INT16(expected, actual)
|
TEST_ASSERT_EQUAL_INT16(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_INT32(expected, actual)
|
TEST_ASSERT_EQUAL_INT32(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_INT64(expected, actual)
|
TEST_ASSERT_EQUAL_INT64(expected, actual)
|
||||||
|
|
||||||
Compare two integers for equality and display errors as signed integers. A cast will be performed
|
Compare two integers for equality and display errors as signed integers. A cast will be performed
|
||||||
to your natural integer size so often this can just be used. When you need to specify the exact size,
|
to your natural integer size so often this can just be used. When you need to specify the exact size,
|
||||||
like when comparing arrays, you can use a specific version:
|
like when comparing arrays, you can use a specific version:
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT(expected, actual)
|
TEST_ASSERT_EQUAL_UINT(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_UINT8(expected, actual)
|
TEST_ASSERT_EQUAL_UINT8(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_UINT16(expected, actual)
|
TEST_ASSERT_EQUAL_UINT16(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_UINT32(expected, actual)
|
TEST_ASSERT_EQUAL_UINT32(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_UINT64(expected, actual)
|
TEST_ASSERT_EQUAL_UINT64(expected, actual)
|
||||||
|
|
||||||
Compare two integers for equality and display errors as unsigned integers. Like INT, there are
|
Compare two integers for equality and display errors as unsigned integers. Like INT, there are
|
||||||
variants for different sizes also.
|
variants for different sizes also.
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_HEX(expected, actual)
|
TEST_ASSERT_EQUAL_HEX(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_HEX8(expected, actual)
|
TEST_ASSERT_EQUAL_HEX8(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_HEX16(expected, actual)
|
TEST_ASSERT_EQUAL_HEX16(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_HEX32(expected, actual)
|
TEST_ASSERT_EQUAL_HEX32(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_HEX64(expected, actual)
|
TEST_ASSERT_EQUAL_HEX64(expected, actual)
|
||||||
|
|
||||||
Compares two integers for equality and display errors as hexadecimal. Like the other integer comparisons,
|
Compares two integers for equality and display errors as hexadecimal. Like the other integer comparisons,
|
||||||
you can specify the size... here the size will also effect how many nibbles are shown (for example, `HEX16`
|
you can specify the size... here the size will also effect how many nibbles are shown (for example, `HEX16`
|
||||||
will show 4 nibbles).
|
will show 4 nibbles).
|
||||||
|
|
||||||
_ARRAY
|
_ARRAY
|
||||||
|
|
||||||
You can append `_ARRAY` to any of these macros to make an array comparison of that type. Here you will
|
You can append `_ARRAY` to any of these macros to make an array comparison of that type. Here you will
|
||||||
need to care a bit more about the actual size of the value being checked. You will also specify an
|
need to care a bit more about the actual size of the value being checked. You will also specify an
|
||||||
additional argument which is the number of elements to compare. For example:
|
additional argument which is the number of elements to compare. For example:
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, elements)
|
TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, elements)
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL(expected, actual)
|
TEST_ASSERT_EQUAL(expected, actual)
|
||||||
|
|
||||||
Another way of calling TEST_ASSERT_EQUAL_INT
|
Another way of calling TEST_ASSERT_EQUAL_INT
|
||||||
|
|
||||||
TEST_ASSERT_INT_WITHIN(delta, expected, actual)
|
TEST_ASSERT_INT_WITHIN(delta, expected, actual)
|
||||||
|
|
||||||
Asserts that the actual value is within plus or minus delta of the expected value. This also comes in
|
Asserts that the actual value is within plus or minus delta of the expected value. This also comes in
|
||||||
size specific variants.
|
size specific variants.
|
||||||
|
|
||||||
|
|
||||||
Numerical Assertions: Bitwise
|
Numerical Assertions: Bitwise
|
||||||
-----------------------------
|
-----------------------------
|
||||||
|
|
||||||
TEST_ASSERT_BITS(mask, expected, actual)
|
TEST_ASSERT_BITS(mask, expected, actual)
|
||||||
|
|
||||||
Use an integer mask to specify which bits should be compared between two other integers. High bits in the mask are compared, low bits ignored.
|
Use an integer mask to specify which bits should be compared between two other integers. High bits in the mask are compared, low bits ignored.
|
||||||
|
|
||||||
TEST_ASSERT_BITS_HIGH(mask, actual)
|
TEST_ASSERT_BITS_HIGH(mask, actual)
|
||||||
|
|
||||||
Use an integer mask to specify which bits should be inspected to determine if they are all set high. High bits in the mask are compared, low bits ignored.
|
Use an integer mask to specify which bits should be inspected to determine if they are all set high. High bits in the mask are compared, low bits ignored.
|
||||||
|
|
||||||
TEST_ASSERT_BITS_LOW(mask, actual)
|
TEST_ASSERT_BITS_LOW(mask, actual)
|
||||||
|
|
||||||
Use an integer mask to specify which bits should be inspected to determine if they are all set low. High bits in the mask are compared, low bits ignored.
|
Use an integer mask to specify which bits should be inspected to determine if they are all set low. High bits in the mask are compared, low bits ignored.
|
||||||
|
|
||||||
TEST_ASSERT_BIT_HIGH(bit, actual)
|
TEST_ASSERT_BIT_HIGH(bit, actual)
|
||||||
|
|
||||||
Test a single bit and verify that it is high. The bit is specified 0-31 for a 32-bit integer.
|
Test a single bit and verify that it is high. The bit is specified 0-31 for a 32-bit integer.
|
||||||
|
|
||||||
TEST_ASSERT_BIT_LOW(bit, actual)
|
TEST_ASSERT_BIT_LOW(bit, actual)
|
||||||
|
|
||||||
Test a single bit and verify that it is low. The bit is specified 0-31 for a 32-bit integer.
|
Test a single bit and verify that it is low. The bit is specified 0-31 for a 32-bit integer.
|
||||||
|
|
||||||
Numerical Assertions: Floats
|
Numerical Assertions: Floats
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual)
|
TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual)
|
||||||
|
|
||||||
Asserts that the actual value is within plus or minus delta of the expected value.
|
Asserts that the actual value is within plus or minus delta of the expected value.
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_FLOAT(expected, actual)
|
TEST_ASSERT_EQUAL_FLOAT(expected, actual)
|
||||||
TEST_ASSERT_EQUAL_DOUBLE(expected, actual)
|
TEST_ASSERT_EQUAL_DOUBLE(expected, actual)
|
||||||
|
|
||||||
Asserts that two floating point values are "equal" within a small % delta of the expected value.
|
Asserts that two floating point values are "equal" within a small % delta of the expected value.
|
||||||
|
|
||||||
String Assertions
|
String Assertions
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_STRING(expected, actual)
|
TEST_ASSERT_EQUAL_STRING(expected, actual)
|
||||||
|
|
||||||
Compare two null-terminate strings. Fail if any character is different or if the lengths are different.
|
Compare two null-terminate strings. Fail if any character is different or if the lengths are different.
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len)
|
TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len)
|
||||||
|
|
||||||
Compare two strings. Fail if any character is different, stop comparing after len characters.
|
Compare two strings. Fail if any character is different, stop comparing after len characters.
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, actual, message)
|
TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, actual, message)
|
||||||
|
|
||||||
Compare two null-terminate strings. Fail if any character is different or if the lengths are different. Output a custom message on failure.
|
Compare two null-terminate strings. Fail if any character is different or if the lengths are different. Output a custom message on failure.
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message)
|
TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message)
|
||||||
|
|
||||||
Compare two strings. Fail if any character is different, stop comparing after len characters. Output a custom message on failure.
|
Compare two strings. Fail if any character is different, stop comparing after len characters. Output a custom message on failure.
|
||||||
|
|
||||||
Pointer Assertions
|
Pointer Assertions
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
Most pointer operations can be performed by simply using the integer comparisons above. However, a couple of special cases are added for clarity.
|
Most pointer operations can be performed by simply using the integer comparisons above. However, a couple of special cases are added for clarity.
|
||||||
|
|
||||||
TEST_ASSERT_NULL(pointer)
|
TEST_ASSERT_NULL(pointer)
|
||||||
|
|
||||||
Fails if the pointer is not equal to NULL
|
Fails if the pointer is not equal to NULL
|
||||||
|
|
||||||
TEST_ASSERT_NOT_NULL(pointer)
|
TEST_ASSERT_NOT_NULL(pointer)
|
||||||
|
|
||||||
Fails if the pointer is equal to NULL
|
Fails if the pointer is equal to NULL
|
||||||
|
|
||||||
Memory Assertions
|
Memory Assertions
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_MEMORY(expected, actual, len)
|
TEST_ASSERT_EQUAL_MEMORY(expected, actual, len)
|
||||||
|
|
||||||
Compare two blocks of memory. This is a good generic assertion for types that can't be coerced into acting like
|
Compare two blocks of memory. This is a good generic assertion for types that can't be coerced into acting like
|
||||||
standard types... but since it's a memory compare, you have to be careful that your data types are packed.
|
standard types... but since it's a memory compare, you have to be careful that your data types are packed.
|
||||||
|
|
||||||
_MESSAGE
|
_MESSAGE
|
||||||
--------
|
--------
|
||||||
|
|
||||||
you can append _MESSAGE to any of the macros to make them take an additional argument. This argument
|
you can append _MESSAGE to any of the macros to make them take an additional argument. This argument
|
||||||
is a string that will be printed at the end of the failure strings. This is useful for specifying more
|
is a string that will be printed at the end of the failure strings. This is useful for specifying more
|
||||||
information about the problem.
|
information about the problem.
|
||||||
|
|
||||||
|
|||||||
+48
-48
@@ -1,48 +1,48 @@
|
|||||||
# ==========================================
|
# ==========================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity Project - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# [Released under MIT License. Please refer to license.txt for details]
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
|
||||||
HERE = File.expand_path(File.dirname(__FILE__)) + '/'
|
HERE = File.expand_path(File.dirname(__FILE__)) + '/'
|
||||||
|
|
||||||
require 'rake'
|
require 'rake'
|
||||||
require 'rake/clean'
|
require 'rake/clean'
|
||||||
require 'rake/testtask'
|
require 'rake/testtask'
|
||||||
require HERE + 'rakefile_helper'
|
require HERE + 'rakefile_helper'
|
||||||
|
|
||||||
TEMP_DIRS = [
|
TEMP_DIRS = [
|
||||||
File.join(HERE, 'build')
|
File.join(HERE, 'build')
|
||||||
]
|
]
|
||||||
|
|
||||||
TEMP_DIRS.each do |dir|
|
TEMP_DIRS.each do |dir|
|
||||||
directory(dir)
|
directory(dir)
|
||||||
CLOBBER.include(dir)
|
CLOBBER.include(dir)
|
||||||
end
|
end
|
||||||
|
|
||||||
task :prepare_for_tests => TEMP_DIRS
|
task :prepare_for_tests => TEMP_DIRS
|
||||||
|
|
||||||
include RakefileHelpers
|
include RakefileHelpers
|
||||||
|
|
||||||
# Load default configuration, for now
|
# Load default configuration, for now
|
||||||
DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'
|
DEFAULT_CONFIG_FILE = 'gcc_auto_stdint.yml'
|
||||||
configure_toolchain(DEFAULT_CONFIG_FILE)
|
configure_toolchain(DEFAULT_CONFIG_FILE)
|
||||||
|
|
||||||
task :unit => [:prepare_for_tests] do
|
task :unit => [:prepare_for_tests] do
|
||||||
run_tests
|
run_tests
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Build and test Unity Framework"
|
desc "Build and test Unity Framework"
|
||||||
task :all => [:clean, :unit]
|
task :all => [:clean, :unit]
|
||||||
task :default => [:clobber, :all]
|
task :default => [:clobber, :all]
|
||||||
task :ci => [:no_color, :default]
|
task :ci => [:no_color, :default]
|
||||||
task :cruise => [:no_color, :default]
|
task :cruise => [:no_color, :default]
|
||||||
|
|
||||||
desc "Load configuration"
|
desc "Load configuration"
|
||||||
task :config, :config_file do |t, args|
|
task :config, :config_file do |t, args|
|
||||||
configure_toolchain(args[:config_file])
|
configure_toolchain(args[:config_file])
|
||||||
end
|
end
|
||||||
|
|
||||||
task :no_color do
|
task :no_color do
|
||||||
$colour_output = false
|
$colour_output = false
|
||||||
end
|
end
|
||||||
|
|||||||
+179
-179
@@ -1,179 +1,179 @@
|
|||||||
# ==========================================
|
# ==========================================
|
||||||
# Unity Project - A Test Framework for C
|
# Unity Project - A Test Framework for C
|
||||||
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
# Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
||||||
# [Released under MIT License. Please refer to license.txt for details]
|
# [Released under MIT License. Please refer to license.txt for details]
|
||||||
# ==========================================
|
# ==========================================
|
||||||
|
|
||||||
require 'yaml'
|
require 'yaml'
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require HERE+'../../auto/unity_test_summary'
|
require HERE+'../../auto/unity_test_summary'
|
||||||
require HERE+'../../auto/generate_test_runner'
|
require HERE+'../../auto/generate_test_runner'
|
||||||
require HERE+'../../auto/colour_reporter'
|
require HERE+'../../auto/colour_reporter'
|
||||||
|
|
||||||
module RakefileHelpers
|
module RakefileHelpers
|
||||||
|
|
||||||
C_EXTENSION = '.c'
|
C_EXTENSION = '.c'
|
||||||
|
|
||||||
def load_configuration(config_file)
|
def load_configuration(config_file)
|
||||||
unless ($configured)
|
unless ($configured)
|
||||||
$cfg_file = HERE+"../../test/targets/#{config_file}" unless (config_file =~ /[\\|\/]/)
|
$cfg_file = HERE+"../../test/targets/#{config_file}" unless (config_file =~ /[\\|\/]/)
|
||||||
$cfg = YAML.load(File.read($cfg_file))
|
$cfg = YAML.load(File.read($cfg_file))
|
||||||
$colour_output = false unless $cfg['colour']
|
$colour_output = false unless $cfg['colour']
|
||||||
$configured = true if (config_file != DEFAULT_CONFIG_FILE)
|
$configured = true if (config_file != DEFAULT_CONFIG_FILE)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def configure_clean
|
def configure_clean
|
||||||
CLEAN.include($cfg['compiler']['build_path'] + '*.*') unless $cfg['compiler']['build_path'].nil?
|
CLEAN.include($cfg['compiler']['build_path'] + '*.*') unless $cfg['compiler']['build_path'].nil?
|
||||||
end
|
end
|
||||||
|
|
||||||
def configure_toolchain(config_file=DEFAULT_CONFIG_FILE)
|
def configure_toolchain(config_file=DEFAULT_CONFIG_FILE)
|
||||||
config_file += '.yml' unless config_file =~ /\.yml$/
|
config_file += '.yml' unless config_file =~ /\.yml$/
|
||||||
config_file = config_file unless config_file =~ /[\\|\/]/
|
config_file = config_file unless config_file =~ /[\\|\/]/
|
||||||
load_configuration(config_file)
|
load_configuration(config_file)
|
||||||
configure_clean
|
configure_clean
|
||||||
end
|
end
|
||||||
|
|
||||||
def tackit(strings)
|
def tackit(strings)
|
||||||
if strings.is_a?(Array)
|
if strings.is_a?(Array)
|
||||||
result = "\"#{strings.join}\""
|
result = "\"#{strings.join}\""
|
||||||
else
|
else
|
||||||
result = strings
|
result = strings
|
||||||
end
|
end
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
def squash(prefix, items)
|
def squash(prefix, items)
|
||||||
result = ''
|
result = ''
|
||||||
items.each { |item| result += " #{prefix}#{tackit(item)}" }
|
items.each { |item| result += " #{prefix}#{tackit(item)}" }
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_compiler_fields
|
def build_compiler_fields
|
||||||
command = tackit($cfg['compiler']['path'])
|
command = tackit($cfg['compiler']['path'])
|
||||||
if $cfg['compiler']['defines']['items'].nil?
|
if $cfg['compiler']['defines']['items'].nil?
|
||||||
defines = ''
|
defines = ''
|
||||||
else
|
else
|
||||||
defines = squash($cfg['compiler']['defines']['prefix'], $cfg['compiler']['defines']['items'] + ['UNITY_OUTPUT_CHAR=UnityOutputCharSpy_OutputChar'])
|
defines = squash($cfg['compiler']['defines']['prefix'], $cfg['compiler']['defines']['items'] + ['UNITY_OUTPUT_CHAR=UnityOutputCharSpy_OutputChar'])
|
||||||
end
|
end
|
||||||
options = squash('', $cfg['compiler']['options'])
|
options = squash('', $cfg['compiler']['options'])
|
||||||
includes = squash($cfg['compiler']['includes']['prefix'], $cfg['compiler']['includes']['items'])
|
includes = squash($cfg['compiler']['includes']['prefix'], $cfg['compiler']['includes']['items'])
|
||||||
includes = includes.gsub(/\\ /, ' ').gsub(/\\\"/, '"').gsub(/\\$/, '') # Remove trailing slashes (for IAR)
|
includes = includes.gsub(/\\ /, ' ').gsub(/\\\"/, '"').gsub(/\\$/, '') # Remove trailing slashes (for IAR)
|
||||||
return {:command => command, :defines => defines, :options => options, :includes => includes}
|
return {:command => command, :defines => defines, :options => options, :includes => includes}
|
||||||
end
|
end
|
||||||
|
|
||||||
def compile(file, defines=[])
|
def compile(file, defines=[])
|
||||||
compiler = build_compiler_fields
|
compiler = build_compiler_fields
|
||||||
unity_include = $cfg['compiler']['includes']['prefix']+'../../src'
|
unity_include = $cfg['compiler']['includes']['prefix']+'../../src'
|
||||||
cmd_str = "#{compiler[:command]}#{compiler[:defines]}#{compiler[:options]}#{compiler[:includes]} #{unity_include} #{file} " +
|
cmd_str = "#{compiler[:command]}#{compiler[:defines]}#{compiler[:options]}#{compiler[:includes]} #{unity_include} #{file} " +
|
||||||
"#{$cfg['compiler']['object_files']['prefix']}#{$cfg['compiler']['object_files']['destination']}" +
|
"#{$cfg['compiler']['object_files']['prefix']}#{$cfg['compiler']['object_files']['destination']}" +
|
||||||
"#{File.basename(file, C_EXTENSION)}#{$cfg['compiler']['object_files']['extension']}"
|
"#{File.basename(file, C_EXTENSION)}#{$cfg['compiler']['object_files']['extension']}"
|
||||||
execute(cmd_str)
|
execute(cmd_str)
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_linker_fields
|
def build_linker_fields
|
||||||
command = tackit($cfg['linker']['path'])
|
command = tackit($cfg['linker']['path'])
|
||||||
if $cfg['linker']['options'].nil?
|
if $cfg['linker']['options'].nil?
|
||||||
options = ''
|
options = ''
|
||||||
else
|
else
|
||||||
options = squash('', $cfg['linker']['options'])
|
options = squash('', $cfg['linker']['options'])
|
||||||
end
|
end
|
||||||
if ($cfg['linker']['includes'].nil? || $cfg['linker']['includes']['items'].nil?)
|
if ($cfg['linker']['includes'].nil? || $cfg['linker']['includes']['items'].nil?)
|
||||||
includes = ''
|
includes = ''
|
||||||
else
|
else
|
||||||
includes = squash($cfg['linker']['includes']['prefix'], $cfg['linker']['includes']['items'])
|
includes = squash($cfg['linker']['includes']['prefix'], $cfg['linker']['includes']['items'])
|
||||||
end
|
end
|
||||||
includes = includes.gsub(/\\ /, ' ').gsub(/\\\"/, '"').gsub(/\\$/, '') # Remove trailing slashes (for IAR)
|
includes = includes.gsub(/\\ /, ' ').gsub(/\\\"/, '"').gsub(/\\$/, '') # Remove trailing slashes (for IAR)
|
||||||
return {:command => command, :options => options, :includes => includes}
|
return {:command => command, :options => options, :includes => includes}
|
||||||
end
|
end
|
||||||
|
|
||||||
def link_it(exe_name, obj_list)
|
def link_it(exe_name, obj_list)
|
||||||
linker = build_linker_fields
|
linker = build_linker_fields
|
||||||
cmd_str = "#{linker[:command]}#{linker[:options]}#{linker[:includes]} " +
|
cmd_str = "#{linker[:command]}#{linker[:options]}#{linker[:includes]} " +
|
||||||
(obj_list.map{|obj|"#{$cfg['linker']['object_files']['path']}#{obj} "}).join +
|
(obj_list.map{|obj|"#{$cfg['linker']['object_files']['path']}#{obj} "}).join +
|
||||||
$cfg['linker']['bin_files']['prefix'] + ' ' +
|
$cfg['linker']['bin_files']['prefix'] + ' ' +
|
||||||
$cfg['linker']['bin_files']['destination'] +
|
$cfg['linker']['bin_files']['destination'] +
|
||||||
exe_name + $cfg['linker']['bin_files']['extension']
|
exe_name + $cfg['linker']['bin_files']['extension']
|
||||||
execute(cmd_str)
|
execute(cmd_str)
|
||||||
end
|
end
|
||||||
|
|
||||||
def build_simulator_fields
|
def build_simulator_fields
|
||||||
return nil if $cfg['simulator'].nil?
|
return nil if $cfg['simulator'].nil?
|
||||||
if $cfg['simulator']['path'].nil?
|
if $cfg['simulator']['path'].nil?
|
||||||
command = ''
|
command = ''
|
||||||
else
|
else
|
||||||
command = (tackit($cfg['simulator']['path']) + ' ')
|
command = (tackit($cfg['simulator']['path']) + ' ')
|
||||||
end
|
end
|
||||||
if $cfg['simulator']['pre_support'].nil?
|
if $cfg['simulator']['pre_support'].nil?
|
||||||
pre_support = ''
|
pre_support = ''
|
||||||
else
|
else
|
||||||
pre_support = squash('', $cfg['simulator']['pre_support'])
|
pre_support = squash('', $cfg['simulator']['pre_support'])
|
||||||
end
|
end
|
||||||
if $cfg['simulator']['post_support'].nil?
|
if $cfg['simulator']['post_support'].nil?
|
||||||
post_support = ''
|
post_support = ''
|
||||||
else
|
else
|
||||||
post_support = squash('', $cfg['simulator']['post_support'])
|
post_support = squash('', $cfg['simulator']['post_support'])
|
||||||
end
|
end
|
||||||
return {:command => command, :pre_support => pre_support, :post_support => post_support}
|
return {:command => command, :pre_support => pre_support, :post_support => post_support}
|
||||||
end
|
end
|
||||||
|
|
||||||
def execute(command_string, verbose=true)
|
def execute(command_string, verbose=true)
|
||||||
report command_string
|
report command_string
|
||||||
output = `#{command_string}`.chomp
|
output = `#{command_string}`.chomp
|
||||||
report(output) if (verbose && !output.nil? && (output.length > 0))
|
report(output) if (verbose && !output.nil? && (output.length > 0))
|
||||||
if ($?.exitstatus != 0)
|
if ($?.exitstatus != 0)
|
||||||
raise "Command failed. (Returned #{$?.exitstatus})"
|
raise "Command failed. (Returned #{$?.exitstatus})"
|
||||||
end
|
end
|
||||||
return output
|
return output
|
||||||
end
|
end
|
||||||
|
|
||||||
def report_summary
|
def report_summary
|
||||||
summary = UnityTestSummary.new
|
summary = UnityTestSummary.new
|
||||||
summary.set_root_path(HERE)
|
summary.set_root_path(HERE)
|
||||||
results_glob = "#{$cfg['compiler']['build_path']}*.test*"
|
results_glob = "#{$cfg['compiler']['build_path']}*.test*"
|
||||||
results_glob.gsub!(/\\/, '/')
|
results_glob.gsub!(/\\/, '/')
|
||||||
results = Dir[results_glob]
|
results = Dir[results_glob]
|
||||||
summary.set_targets(results)
|
summary.set_targets(results)
|
||||||
summary.run
|
summary.run
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_tests
|
def run_tests
|
||||||
report 'Running Unity system tests...'
|
report 'Running Unity system tests...'
|
||||||
|
|
||||||
# Tack on TEST define for compiling unit tests
|
# Tack on TEST define for compiling unit tests
|
||||||
load_configuration($cfg_file)
|
load_configuration($cfg_file)
|
||||||
test_defines = ['TEST']
|
test_defines = ['TEST']
|
||||||
$cfg['compiler']['defines']['items'] = [] if $cfg['compiler']['defines']['items'].nil?
|
$cfg['compiler']['defines']['items'] = [] if $cfg['compiler']['defines']['items'].nil?
|
||||||
|
|
||||||
# Get a list of all source files needed
|
# Get a list of all source files needed
|
||||||
src_files = Dir[HERE+'src/*.c']
|
src_files = Dir[HERE+'src/*.c']
|
||||||
src_files += Dir[HERE+'test/*.c']
|
src_files += Dir[HERE+'test/*.c']
|
||||||
src_files += Dir[HERE+'test/main/*.c']
|
src_files += Dir[HERE+'test/main/*.c']
|
||||||
src_files << '../../src/unity.c'
|
src_files << '../../src/unity.c'
|
||||||
|
|
||||||
# Build object files
|
# Build object files
|
||||||
src_files.each { |f| compile(f, test_defines) }
|
src_files.each { |f| compile(f, test_defines) }
|
||||||
obj_list = src_files.map {|f| File.basename(f.ext($cfg['compiler']['object_files']['extension'])) }
|
obj_list = src_files.map {|f| File.basename(f.ext($cfg['compiler']['object_files']['extension'])) }
|
||||||
|
|
||||||
# Link the test executable
|
# Link the test executable
|
||||||
test_base = "framework_test"
|
test_base = "framework_test"
|
||||||
link_it(test_base, obj_list)
|
link_it(test_base, obj_list)
|
||||||
|
|
||||||
# Execute unit test and generate results file
|
# Execute unit test and generate results file
|
||||||
simulator = build_simulator_fields
|
simulator = build_simulator_fields
|
||||||
executable = $cfg['linker']['bin_files']['destination'] + test_base + $cfg['linker']['bin_files']['extension']
|
executable = $cfg['linker']['bin_files']['destination'] + test_base + $cfg['linker']['bin_files']['extension']
|
||||||
if simulator.nil?
|
if simulator.nil?
|
||||||
cmd_str = executable + " -v -r"
|
cmd_str = executable + " -v -r"
|
||||||
else
|
else
|
||||||
cmd_str = "#{simulator[:command]} #{simulator[:pre_support]} #{executable} #{simulator[:post_support]}"
|
cmd_str = "#{simulator[:command]} #{simulator[:pre_support]} #{executable} #{simulator[:post_support]}"
|
||||||
end
|
end
|
||||||
output = execute(cmd_str)
|
output = execute(cmd_str)
|
||||||
test_results = $cfg['compiler']['build_path'] + test_base
|
test_results = $cfg['compiler']['build_path'] + test_base
|
||||||
if output.match(/OK$/m).nil?
|
if output.match(/OK$/m).nil?
|
||||||
test_results += '.testfail'
|
test_results += '.testfail'
|
||||||
else
|
else
|
||||||
test_results += '.testpass'
|
test_results += '.testpass'
|
||||||
end
|
end
|
||||||
File.open(test_results, 'w') { |f| f.print output }
|
File.open(test_results, 'w') { |f| f.print output }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
+285
-285
@@ -1,285 +1,285 @@
|
|||||||
/* ==========================================
|
/* ==========================================
|
||||||
Unity Project - A Test Framework for C
|
Unity Project - A Test Framework for C
|
||||||
Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007-14 Mike Karlesky, Mark VanderVoord, Greg Williams
|
||||||
[Released under MIT License. Please refer to license.txt for details]
|
[Released under MIT License. Please refer to license.txt for details]
|
||||||
========================================== */
|
========================================== */
|
||||||
|
|
||||||
#ifndef UNITY_FRAMEWORK_H
|
#ifndef UNITY_FRAMEWORK_H
|
||||||
#define UNITY_FRAMEWORK_H
|
#define UNITY_FRAMEWORK_H
|
||||||
#define UNITY
|
#define UNITY
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C"
|
extern "C"
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "unity_internals.h"
|
#include "unity_internals.h"
|
||||||
|
|
||||||
void setUp(void);
|
void setUp(void);
|
||||||
void tearDown(void);
|
void tearDown(void);
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Configuration Options
|
// Configuration Options
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// All options described below should be passed as a compiler flag to all files using Unity. If you must add #defines, place them BEFORE the #include above.
|
// All options described below should be passed as a compiler flag to all files using Unity. If you must add #defines, place them BEFORE the #include above.
|
||||||
|
|
||||||
// Integers/longs/pointers
|
// Integers/longs/pointers
|
||||||
// - Unity attempts to automatically discover your integer sizes
|
// - Unity attempts to automatically discover your integer sizes
|
||||||
// - define UNITY_EXCLUDE_STDINT_H to stop attempting to look in <stdint.h>
|
// - define UNITY_EXCLUDE_STDINT_H to stop attempting to look in <stdint.h>
|
||||||
// - define UNITY_EXCLUDE_LIMITS_H to stop attempting to look in <limits.h>
|
// - define UNITY_EXCLUDE_LIMITS_H to stop attempting to look in <limits.h>
|
||||||
// - define UNITY_EXCLUDE_SIZEOF to stop attempting to use sizeof in macros
|
// - define UNITY_EXCLUDE_SIZEOF to stop attempting to use sizeof in macros
|
||||||
// - If you cannot use the automatic methods above, you can force Unity by using these options:
|
// - If you cannot use the automatic methods above, you can force Unity by using these options:
|
||||||
// - define UNITY_SUPPORT_64
|
// - define UNITY_SUPPORT_64
|
||||||
// - define UNITY_INT_WIDTH
|
// - define UNITY_INT_WIDTH
|
||||||
// - UNITY_LONG_WIDTH
|
// - UNITY_LONG_WIDTH
|
||||||
// - UNITY_POINTER_WIDTH
|
// - UNITY_POINTER_WIDTH
|
||||||
|
|
||||||
// Floats
|
// Floats
|
||||||
// - define UNITY_EXCLUDE_FLOAT to disallow floating point comparisons
|
// - define UNITY_EXCLUDE_FLOAT to disallow floating point comparisons
|
||||||
// - define UNITY_FLOAT_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_FLOAT
|
// - define UNITY_FLOAT_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_FLOAT
|
||||||
// - define UNITY_FLOAT_TYPE to specify doubles instead of single precision floats
|
// - define UNITY_FLOAT_TYPE to specify doubles instead of single precision floats
|
||||||
// - define UNITY_FLOAT_VERBOSE to print floating point values in errors (uses sprintf)
|
// - define UNITY_FLOAT_VERBOSE to print floating point values in errors (uses sprintf)
|
||||||
// - define UNITY_INCLUDE_DOUBLE to allow double floating point comparisons
|
// - define UNITY_INCLUDE_DOUBLE to allow double floating point comparisons
|
||||||
// - define UNITY_EXCLUDE_DOUBLE to disallow double floating point comparisons (default)
|
// - define UNITY_EXCLUDE_DOUBLE to disallow double floating point comparisons (default)
|
||||||
// - define UNITY_DOUBLE_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_DOUBLE
|
// - define UNITY_DOUBLE_PRECISION to specify the precision to use when doing TEST_ASSERT_EQUAL_DOUBLE
|
||||||
// - define UNITY_DOUBLE_TYPE to specify something other than double
|
// - define UNITY_DOUBLE_TYPE to specify something other than double
|
||||||
// - define UNITY_DOUBLE_VERBOSE to print floating point values in errors (uses sprintf)
|
// - define UNITY_DOUBLE_VERBOSE to print floating point values in errors (uses sprintf)
|
||||||
|
|
||||||
// Output
|
// Output
|
||||||
// - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired
|
// - by default, Unity prints to standard out with putchar. define UNITY_OUTPUT_CHAR(a) with a different function if desired
|
||||||
|
|
||||||
// Optimization
|
// Optimization
|
||||||
// - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
|
// - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge
|
||||||
// - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests.
|
// - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests.
|
||||||
|
|
||||||
// Test Cases
|
// Test Cases
|
||||||
// - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
|
// - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script
|
||||||
|
|
||||||
// Parameterized Tests
|
// Parameterized Tests
|
||||||
// - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing
|
// - you'll want to create a define of TEST_CASE(...) which basically evaluates to nothing
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Basic Fail and Ignore
|
// Basic Fail and Ignore
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
|
||||||
#define TEST_FAIL_MESSAGE(message) UNITY_TEST_FAIL(__LINE__, (message))
|
#define TEST_FAIL_MESSAGE(message) UNITY_TEST_FAIL(__LINE__, (message))
|
||||||
#define TEST_FAIL() UNITY_TEST_FAIL(__LINE__, NULL)
|
#define TEST_FAIL() UNITY_TEST_FAIL(__LINE__, NULL)
|
||||||
#define TEST_IGNORE_MESSAGE(message) UNITY_TEST_IGNORE(__LINE__, (message))
|
#define TEST_IGNORE_MESSAGE(message) UNITY_TEST_IGNORE(__LINE__, (message))
|
||||||
#define TEST_IGNORE() UNITY_TEST_IGNORE(__LINE__, NULL)
|
#define TEST_IGNORE() UNITY_TEST_IGNORE(__LINE__, NULL)
|
||||||
#define TEST_ONLY()
|
#define TEST_ONLY()
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Test Asserts (simple)
|
// Test Asserts (simple)
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
|
||||||
//Boolean
|
//Boolean
|
||||||
#define TEST_ASSERT(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expression Evaluated To FALSE")
|
#define TEST_ASSERT(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expression Evaluated To FALSE")
|
||||||
#define TEST_ASSERT_TRUE(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expected TRUE Was FALSE")
|
#define TEST_ASSERT_TRUE(condition) UNITY_TEST_ASSERT( (condition), __LINE__, " Expected TRUE Was FALSE")
|
||||||
#define TEST_ASSERT_UNLESS(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expression Evaluated To TRUE")
|
#define TEST_ASSERT_UNLESS(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expression Evaluated To TRUE")
|
||||||
#define TEST_ASSERT_FALSE(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expected FALSE Was TRUE")
|
#define TEST_ASSERT_FALSE(condition) UNITY_TEST_ASSERT( !(condition), __LINE__, " Expected FALSE Was TRUE")
|
||||||
#define TEST_ASSERT_NULL(pointer) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, " Expected NULL")
|
#define TEST_ASSERT_NULL(pointer) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, " Expected NULL")
|
||||||
#define TEST_ASSERT_NOT_NULL(pointer) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, " Expected Non-NULL")
|
#define TEST_ASSERT_NOT_NULL(pointer) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, " Expected Non-NULL")
|
||||||
|
|
||||||
//Integers (of all sizes)
|
//Integers (of all sizes)
|
||||||
#define TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL(expected, actual) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, " Expected Not-Equal")
|
#define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, " Expected Not-Equal")
|
||||||
#define TEST_ASSERT_EQUAL_UINT(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT8(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT16(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT32(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT64(expected, actual) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX8(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX8(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX16(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX16(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX32(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX32(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX64(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX64(expected, actual) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_BITS(mask, expected, actual) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_BITS(mask, expected, actual) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_BITS_HIGH(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_BITS_HIGH(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_BITS_LOW(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_BITS_LOW(mask, actual) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_BIT_HIGH(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_BIT_HIGH(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_BIT_LOW(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_BIT_LOW(bit, actual) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, NULL)
|
||||||
|
|
||||||
//Integer Ranges (of all sizes)
|
//Integer Ranges (of all sizes)
|
||||||
#define TEST_ASSERT_INT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_INT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_INT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_INT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_INT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_INT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_INT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_INT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_INT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT64_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_INT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_INT64_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_UINT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_UINT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_UINT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT8_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_UINT8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT8_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_UINT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT16_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_UINT16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT16_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_UINT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_UINT32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_UINT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT64_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_UINT64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_UINT64_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_HEX_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_HEX_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_HEX8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX8_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_HEX8_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX8_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_HEX16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX16_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_HEX16_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX16_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_HEX32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_HEX32_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_HEX64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_HEX64_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
|
|
||||||
//Structs and Strings
|
//Structs and Strings
|
||||||
#define TEST_ASSERT_EQUAL_PTR(expected, actual) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_PTR(expected, actual) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_STRING(expected, actual) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_STRING(expected, actual) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_STRING_LEN(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_MEMORY(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_MEMORY(expected, actual, len) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, NULL)
|
||||||
|
|
||||||
//Arrays
|
//Arrays
|
||||||
#define TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_INT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_UINT64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX8_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX16_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX32_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_HEX64_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_PTR_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_STRING_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_MEMORY_ARRAY(expected, actual, len, num_elements) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, NULL)
|
||||||
|
|
||||||
//Floating Point (If Enabled)
|
//Floating Point (If Enabled)
|
||||||
#define TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_FLOAT(expected, actual) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_FLOAT(expected, actual) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_FLOAT_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NAN((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NAN((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_NOT_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, NULL)
|
#define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, NULL)
|
||||||
|
|
||||||
//Double (If Enabled)
|
//Double (If Enabled)
|
||||||
#define TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_WITHIN(delta, expected, actual) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_DOUBLE(expected, actual) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_DOUBLE(expected, actual) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
#define TEST_ASSERT_EQUAL_DOUBLE_ARRAY(expected, actual, num_elements) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NAN((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NAN((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_NOT_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_NOT_NAN(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, NULL)
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, NULL)
|
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE(actual) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, NULL)
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Test Asserts (with additional messages)
|
// Test Asserts (with additional messages)
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
|
||||||
//Boolean
|
//Boolean
|
||||||
#define TEST_ASSERT_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message))
|
#define TEST_ASSERT_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message))
|
||||||
#define TEST_ASSERT_TRUE_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message))
|
#define TEST_ASSERT_TRUE_MESSAGE(condition, message) UNITY_TEST_ASSERT( (condition), __LINE__, (message))
|
||||||
#define TEST_ASSERT_UNLESS_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, (message))
|
#define TEST_ASSERT_UNLESS_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FALSE_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, (message))
|
#define TEST_ASSERT_FALSE_MESSAGE(condition, message) UNITY_TEST_ASSERT( !(condition), __LINE__, (message))
|
||||||
#define TEST_ASSERT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, (message))
|
#define TEST_ASSERT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NULL( (pointer), __LINE__, (message))
|
||||||
#define TEST_ASSERT_NOT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, (message))
|
#define TEST_ASSERT_NOT_NULL_MESSAGE(pointer, message) UNITY_TEST_ASSERT_NOT_NULL((pointer), __LINE__, (message))
|
||||||
|
|
||||||
//Integers (of all sizes)
|
//Integers (of all sizes)
|
||||||
#define TEST_ASSERT_EQUAL_INT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT8((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT16((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT32((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT64((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_INT((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, (message))
|
#define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT( (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT8( (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT16( (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT32( (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_UINT64( (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX8_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX8( (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX16_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX16((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX32_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX32((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX64_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_HEX64((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_BITS_MESSAGE(mask, expected, actual, message) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_BITS_MESSAGE(mask, expected, actual, message) UNITY_TEST_ASSERT_BITS((mask), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_BITS_HIGH_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, (message))
|
#define TEST_ASSERT_BITS_HIGH_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(-1), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_BITS_LOW_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, (message))
|
#define TEST_ASSERT_BITS_LOW_MESSAGE(mask, actual, message) UNITY_TEST_ASSERT_BITS((mask), (_UU32)(0), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_BIT_HIGH_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, (message))
|
#define TEST_ASSERT_BIT_HIGH_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(-1), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_BIT_LOW_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, (message))
|
#define TEST_ASSERT_BIT_LOW_MESSAGE(bit, actual, message) UNITY_TEST_ASSERT_BITS(((_UU32)1 << (bit)), (_UU32)(0), (actual), __LINE__, (message))
|
||||||
|
|
||||||
//Integer Ranges (of all sizes)
|
//Integer Ranges (of all sizes)
|
||||||
#define TEST_ASSERT_INT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_INT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_INT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_INT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT8_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_INT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_INT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT16_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_INT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_INT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_INT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT64_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_INT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_INT64_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_UINT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_UINT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_UINT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT8_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_UINT8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT8_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_UINT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT16_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_UINT16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT16_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_UINT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_UINT32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_UINT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT64_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_UINT64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_UINT64_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_HEX_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_HEX_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_HEX8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX8_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_HEX8_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX8_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_HEX16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX16_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_HEX16_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX16_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_HEX32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_HEX32_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX32_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_HEX64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_HEX64_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_HEX64_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
|
|
||||||
//Structs and Strings
|
//Structs and Strings
|
||||||
#define TEST_ASSERT_EQUAL_PTR_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_PTR_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_PTR((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_STRING_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_STRING((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_STRING_LEN_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_STRING_LEN((expected), (actual), (len), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_MEMORY_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_MEMORY_MESSAGE(expected, actual, len, message) UNITY_TEST_ASSERT_EQUAL_MEMORY((expected), (actual), (len), __LINE__, (message))
|
||||||
|
|
||||||
//Arrays
|
//Arrays
|
||||||
#define TEST_ASSERT_EQUAL_INT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT8_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT16_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_INT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_INT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_INT64_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT8_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT16_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_UINT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_UINT64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_UINT64_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX8_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX8_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX16_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX16_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX32_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX32_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_HEX64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_HEX64_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_HEX64_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_PTR_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_PTR_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_PTR_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_STRING_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_STRING_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_STRING_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_MEMORY_ARRAY_MESSAGE(expected, actual, len, num_elements, message) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_MEMORY_ARRAY_MESSAGE(expected, actual, len, num_elements, message) UNITY_TEST_ASSERT_EQUAL_MEMORY_ARRAY((expected), (actual), (len), (num_elements), __LINE__, (message))
|
||||||
|
|
||||||
//Floating Point (If Enabled)
|
//Floating Point (If Enabled)
|
||||||
#define TEST_ASSERT_FLOAT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_FLOAT_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_FLOAT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_FLOAT_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_FLOAT((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_FLOAT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_FLOAT_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_FLOAT_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NEG_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NAN((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NAN((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_DETERMINATE((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NEG_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_NAN((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, (message))
|
#define TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_FLOAT_IS_NOT_DETERMINATE((actual), __LINE__, (message))
|
||||||
|
|
||||||
//Double (If Enabled)
|
//Double (If Enabled)
|
||||||
#define TEST_ASSERT_DOUBLE_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_WITHIN_MESSAGE(delta, expected, actual, message) UNITY_TEST_ASSERT_DOUBLE_WITHIN((delta), (expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_DOUBLE_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_DOUBLE_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE((expected), (actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_EQUAL_DOUBLE_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
#define TEST_ASSERT_EQUAL_DOUBLE_ARRAY_MESSAGE(expected, actual, num_elements, message) UNITY_TEST_ASSERT_EQUAL_DOUBLE_ARRAY((expected), (actual), (num_elements), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NEG_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NAN((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NAN((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_DETERMINATE((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_NOT_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NEG_INF((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_NOT_NAN_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_NAN((actual), __LINE__, (message))
|
||||||
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message))
|
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message))
|
||||||
|
|
||||||
//end of UNITY_FRAMEWORK_H
|
//end of UNITY_FRAMEWORK_H
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+758
-758
File diff suppressed because it is too large
Load Diff
+84
-84
@@ -1,84 +1,84 @@
|
|||||||
---
|
---
|
||||||
compiler:
|
compiler:
|
||||||
path: clang
|
path: clang
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wextra'
|
- '-Wextra'
|
||||||
- '-Werror'
|
- '-Werror'
|
||||||
- '-Wcast-qual'
|
- '-Wcast-qual'
|
||||||
- '-Wconversion'
|
- '-Wconversion'
|
||||||
- '-Wdisabled-optimization'
|
- '-Wdisabled-optimization'
|
||||||
- '-Wformat=2'
|
- '-Wformat=2'
|
||||||
- '-Winit-self'
|
- '-Winit-self'
|
||||||
- '-Winline'
|
- '-Winline'
|
||||||
- '-Winvalid-pch'
|
- '-Winvalid-pch'
|
||||||
- '-Wmissing-declarations'
|
- '-Wmissing-declarations'
|
||||||
- '-Wmissing-include-dirs'
|
- '-Wmissing-include-dirs'
|
||||||
- '-Wmissing-prototypes'
|
- '-Wmissing-prototypes'
|
||||||
- '-Wnonnull'
|
- '-Wnonnull'
|
||||||
- '-Wpacked'
|
- '-Wpacked'
|
||||||
- '-Wpointer-arith'
|
- '-Wpointer-arith'
|
||||||
- '-Wredundant-decls'
|
- '-Wredundant-decls'
|
||||||
- '-Wswitch-default'
|
- '-Wswitch-default'
|
||||||
- '-Wstrict-aliasing'
|
- '-Wstrict-aliasing'
|
||||||
- '-Wstrict-overflow=5'
|
- '-Wstrict-overflow=5'
|
||||||
- '-Wuninitialized'
|
- '-Wuninitialized'
|
||||||
- '-Wunused'
|
- '-Wunused'
|
||||||
# - '-Wunreachable-code'
|
# - '-Wunreachable-code'
|
||||||
- '-Wreturn-type'
|
- '-Wreturn-type'
|
||||||
- '-Wshadow'
|
- '-Wshadow'
|
||||||
- '-Wundef'
|
- '-Wundef'
|
||||||
- '-Wwrite-strings'
|
- '-Wwrite-strings'
|
||||||
- '-Wno-missing-declarations'
|
- '-Wno-missing-declarations'
|
||||||
- '-Wno-missing-prototypes'
|
- '-Wno-missing-prototypes'
|
||||||
- '-Wno-nested-externs'
|
- '-Wno-nested-externs'
|
||||||
- '-Wno-redundant-decls'
|
- '-Wno-redundant-decls'
|
||||||
- '-Wno-unused-parameter'
|
- '-Wno-unused-parameter'
|
||||||
- '-Wno-variadic-macros'
|
- '-Wno-variadic-macros'
|
||||||
- '-Wbad-function-cast'
|
- '-Wbad-function-cast'
|
||||||
- '-fms-extensions'
|
- '-fms-extensions'
|
||||||
- '-fno-omit-frame-pointer'
|
- '-fno-omit-frame-pointer'
|
||||||
- '-ffloat-store'
|
- '-ffloat-store'
|
||||||
- '-fno-common'
|
- '-fno-common'
|
||||||
- '-fstrict-aliasing'
|
- '-fstrict-aliasing'
|
||||||
- '-std=gnu99'
|
- '-std=gnu99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
- '-O0'
|
- '-O0'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
- UNITY_OUTPUT_RESULTS_FILE
|
- UNITY_OUTPUT_RESULTS_FILE
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: clang
|
path: clang
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m64'
|
- '-m64'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,84 +1,84 @@
|
|||||||
---
|
---
|
||||||
compiler:
|
compiler:
|
||||||
path: clang
|
path: clang
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wextra'
|
- '-Wextra'
|
||||||
- '-Werror'
|
- '-Werror'
|
||||||
- '-Wcast-qual'
|
- '-Wcast-qual'
|
||||||
- '-Wconversion'
|
- '-Wconversion'
|
||||||
- '-Wdisabled-optimization'
|
- '-Wdisabled-optimization'
|
||||||
- '-Wformat=2'
|
- '-Wformat=2'
|
||||||
- '-Winit-self'
|
- '-Winit-self'
|
||||||
- '-Winline'
|
- '-Winline'
|
||||||
- '-Winvalid-pch'
|
- '-Winvalid-pch'
|
||||||
- '-Wmissing-declarations'
|
- '-Wmissing-declarations'
|
||||||
- '-Wmissing-include-dirs'
|
- '-Wmissing-include-dirs'
|
||||||
- '-Wmissing-prototypes'
|
- '-Wmissing-prototypes'
|
||||||
- '-Wnonnull'
|
- '-Wnonnull'
|
||||||
- '-Wpacked'
|
- '-Wpacked'
|
||||||
- '-Wpointer-arith'
|
- '-Wpointer-arith'
|
||||||
- '-Wredundant-decls'
|
- '-Wredundant-decls'
|
||||||
- '-Wswitch-default'
|
- '-Wswitch-default'
|
||||||
- '-Wstrict-aliasing'
|
- '-Wstrict-aliasing'
|
||||||
- '-Wstrict-overflow=5'
|
- '-Wstrict-overflow=5'
|
||||||
- '-Wuninitialized'
|
- '-Wuninitialized'
|
||||||
- '-Wunused'
|
- '-Wunused'
|
||||||
# - '-Wunreachable-code'
|
# - '-Wunreachable-code'
|
||||||
- '-Wreturn-type'
|
- '-Wreturn-type'
|
||||||
- '-Wshadow'
|
- '-Wshadow'
|
||||||
- '-Wundef'
|
- '-Wundef'
|
||||||
- '-Wwrite-strings'
|
- '-Wwrite-strings'
|
||||||
- '-Wno-missing-declarations'
|
- '-Wno-missing-declarations'
|
||||||
- '-Wno-missing-prototypes'
|
- '-Wno-missing-prototypes'
|
||||||
- '-Wno-nested-externs'
|
- '-Wno-nested-externs'
|
||||||
- '-Wno-redundant-decls'
|
- '-Wno-redundant-decls'
|
||||||
- '-Wno-unused-parameter'
|
- '-Wno-unused-parameter'
|
||||||
- '-Wno-variadic-macros'
|
- '-Wno-variadic-macros'
|
||||||
- '-Wbad-function-cast'
|
- '-Wbad-function-cast'
|
||||||
- '-fms-extensions'
|
- '-fms-extensions'
|
||||||
- '-fno-omit-frame-pointer'
|
- '-fno-omit-frame-pointer'
|
||||||
- '-ffloat-store'
|
- '-ffloat-store'
|
||||||
- '-fno-common'
|
- '-fno-common'
|
||||||
- '-fstrict-aliasing'
|
- '-fstrict-aliasing'
|
||||||
- '-std=gnu99'
|
- '-std=gnu99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
- '-O0'
|
- '-O0'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: clang
|
path: clang
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m64'
|
- '-m64'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
+50
-50
@@ -1,50 +1,50 @@
|
|||||||
compiler:
|
compiler:
|
||||||
path: gcc
|
path: gcc
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-m32'
|
- '-m32'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wno-address'
|
- '-Wno-address'
|
||||||
- '-std=c99'
|
- '-std=c99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_EXCLUDE_STDINT_H
|
- UNITY_EXCLUDE_STDINT_H
|
||||||
- UNITY_EXCLUDE_LIMITS_H
|
- UNITY_EXCLUDE_LIMITS_H
|
||||||
- UNITY_EXCLUDE_SIZEOF
|
- UNITY_EXCLUDE_SIZEOF
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_INT_WIDTH=32
|
- UNITY_INT_WIDTH=32
|
||||||
- UNITY_LONG_WIDTH=32
|
- UNITY_LONG_WIDTH=32
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: gcc
|
path: gcc
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m32'
|
- '-m32'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
+51
-51
@@ -1,51 +1,51 @@
|
|||||||
compiler:
|
compiler:
|
||||||
path: gcc
|
path: gcc
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-m64'
|
- '-m64'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wno-address'
|
- '-Wno-address'
|
||||||
- '-std=c99'
|
- '-std=c99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_EXCLUDE_STDINT_H
|
- UNITY_EXCLUDE_STDINT_H
|
||||||
- UNITY_EXCLUDE_LIMITS_H
|
- UNITY_EXCLUDE_LIMITS_H
|
||||||
- UNITY_EXCLUDE_SIZEOF
|
- UNITY_EXCLUDE_SIZEOF
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
- UNITY_INT_WIDTH=32
|
- UNITY_INT_WIDTH=32
|
||||||
- UNITY_LONG_WIDTH=64
|
- UNITY_LONG_WIDTH=64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: gcc
|
path: gcc
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m64'
|
- '-m64'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,47 +1,47 @@
|
|||||||
compiler:
|
compiler:
|
||||||
path: gcc
|
path: gcc
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-m64'
|
- '-m64'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wno-address'
|
- '-Wno-address'
|
||||||
- '-std=c99'
|
- '-std=c99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_EXCLUDE_STDINT_H
|
- UNITY_EXCLUDE_STDINT_H
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: gcc
|
path: gcc
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m64'
|
- '-m64'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,48 +1,48 @@
|
|||||||
compiler:
|
compiler:
|
||||||
path: gcc
|
path: gcc
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-m64'
|
- '-m64'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wno-address'
|
- '-Wno-address'
|
||||||
- '-std=c99'
|
- '-std=c99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_EXCLUDE_STDINT_H
|
- UNITY_EXCLUDE_STDINT_H
|
||||||
- UNITY_EXCLUDE_LIMITS_H
|
- UNITY_EXCLUDE_LIMITS_H
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: gcc
|
path: gcc
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m64'
|
- '-m64'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,59 +1,59 @@
|
|||||||
compiler:
|
compiler:
|
||||||
path: gcc
|
path: gcc
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-m64'
|
- '-m64'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wno-address'
|
- '-Wno-address'
|
||||||
- '-std=c99'
|
- '-std=c99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
- '-Wextra'
|
- '-Wextra'
|
||||||
- '-Werror'
|
- '-Werror'
|
||||||
- '-Wpointer-arith'
|
- '-Wpointer-arith'
|
||||||
- '-Wcast-align'
|
- '-Wcast-align'
|
||||||
- '-Wwrite-strings'
|
- '-Wwrite-strings'
|
||||||
- '-Wswitch-default'
|
- '-Wswitch-default'
|
||||||
- '-Wunreachable-code'
|
- '-Wunreachable-code'
|
||||||
- '-Winit-self'
|
- '-Winit-self'
|
||||||
- '-Wmissing-field-initializers'
|
- '-Wmissing-field-initializers'
|
||||||
- '-Wno-unknown-pragmas'
|
- '-Wno-unknown-pragmas'
|
||||||
- '-Wstrict-prototypes'
|
- '-Wstrict-prototypes'
|
||||||
- '-Wundef'
|
- '-Wundef'
|
||||||
- '-Wold-style-definition'
|
- '-Wold-style-definition'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: gcc
|
path: gcc
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m64'
|
- '-m64'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,47 +1,47 @@
|
|||||||
compiler:
|
compiler:
|
||||||
path: gcc
|
path: gcc
|
||||||
source_path: '../src/'
|
source_path: '../src/'
|
||||||
unit_tests_path: &unit_tests_path 'tests/'
|
unit_tests_path: &unit_tests_path 'tests/'
|
||||||
build_path: &build_path 'build/'
|
build_path: &build_path 'build/'
|
||||||
options:
|
options:
|
||||||
- '-c'
|
- '-c'
|
||||||
- '-m64'
|
- '-m64'
|
||||||
- '-Wall'
|
- '-Wall'
|
||||||
- '-Wno-address'
|
- '-Wno-address'
|
||||||
- '-std=c99'
|
- '-std=c99'
|
||||||
- '-pedantic'
|
- '-pedantic'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'src/'
|
- 'src/'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_OUTPUT_CHAR=putcharSpy
|
- UNITY_OUTPUT_CHAR=putcharSpy
|
||||||
- UNITY_EXCLUDE_MATH_H
|
- UNITY_EXCLUDE_MATH_H
|
||||||
- UNITY_INCLUDE_DOUBLE
|
- UNITY_INCLUDE_DOUBLE
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: gcc
|
path: gcc
|
||||||
options:
|
options:
|
||||||
- -lm
|
- -lm
|
||||||
- '-m64'
|
- '-m64'
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.exe'
|
extension: '.exe'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
+101
-101
@@ -1,101 +1,101 @@
|
|||||||
# rumor has it that this yaml file works for the standard edition of the
|
# rumor has it that this yaml file works for the standard edition of the
|
||||||
# hitech PICC18 compiler, but not the pro version.
|
# hitech PICC18 compiler, but not the pro version.
|
||||||
#
|
#
|
||||||
compiler:
|
compiler:
|
||||||
path: cd build && picc18
|
path: cd build && picc18
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- --chip=18F87J10
|
- --chip=18F87J10
|
||||||
- --ide=hitide
|
- --ide=hitide
|
||||||
- --q #quiet please
|
- --q #quiet please
|
||||||
- --asmlist
|
- --asmlist
|
||||||
- --codeoffset=0
|
- --codeoffset=0
|
||||||
- --emi=wordwrite # External memory interface protocol
|
- --emi=wordwrite # External memory interface protocol
|
||||||
- --warn=0 # allow all normal warning messages
|
- --warn=0 # allow all normal warning messages
|
||||||
- --errors=10 # Number of errors before aborting compile
|
- --errors=10 # Number of errors before aborting compile
|
||||||
- --char=unsigned
|
- --char=unsigned
|
||||||
- -Bl # Large memory model
|
- -Bl # Large memory model
|
||||||
- -G # generate symbol file
|
- -G # generate symbol file
|
||||||
- --cp=16 # 16-bit pointers
|
- --cp=16 # 16-bit pointers
|
||||||
- --double=24
|
- --double=24
|
||||||
- -N255 # 255-char symbol names
|
- -N255 # 255-char symbol names
|
||||||
- --opt=none # Do not use any compiler optimziations
|
- --opt=none # Do not use any compiler optimziations
|
||||||
- -c # compile only
|
- -c # compile only
|
||||||
- -M
|
- -M
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- 'c:/Projects/NexGen/Prototypes/CMockTest/src/'
|
- 'c:/Projects/NexGen/Prototypes/CMockTest/src/'
|
||||||
- 'c:/Projects/NexGen/Prototypes/CMockTest/mocks/'
|
- 'c:/Projects/NexGen/Prototypes/CMockTest/mocks/'
|
||||||
- 'c:/CMock/src/'
|
- 'c:/CMock/src/'
|
||||||
- 'c:/CMock/examples/src/'
|
- 'c:/CMock/examples/src/'
|
||||||
- 'c:/CMock/vendor/unity/src/'
|
- 'c:/CMock/vendor/unity/src/'
|
||||||
- 'c:/CMock/vendor/unity/examples/helper/'
|
- 'c:/CMock/vendor/unity/examples/helper/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_INT_WIDTH=16
|
- UNITY_INT_WIDTH=16
|
||||||
- UNITY_POINTER_WIDTH=16
|
- UNITY_POINTER_WIDTH=16
|
||||||
- CMOCK_MEM_STATIC
|
- CMOCK_MEM_STATIC
|
||||||
- CMOCK_MEM_SIZE=3000
|
- CMOCK_MEM_SIZE=3000
|
||||||
- UNITY_SUPPORT_TEST_CASES
|
- UNITY_SUPPORT_TEST_CASES
|
||||||
- _PICC18
|
- _PICC18
|
||||||
object_files:
|
object_files:
|
||||||
# prefix: '-O' # Hi-Tech doesn't want a prefix. They key off of filename .extensions, instead
|
# prefix: '-O' # Hi-Tech doesn't want a prefix. They key off of filename .extensions, instead
|
||||||
extension: '.obj'
|
extension: '.obj'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
|
|
||||||
linker:
|
linker:
|
||||||
path: cd build && picc18
|
path: cd build && picc18
|
||||||
options:
|
options:
|
||||||
- --chip=18F87J10
|
- --chip=18F87J10
|
||||||
- --ide=hitide
|
- --ide=hitide
|
||||||
- --cp=24 # 24-bit pointers. Is this needed for linker??
|
- --cp=24 # 24-bit pointers. Is this needed for linker??
|
||||||
- --double=24 # Is this needed for linker??
|
- --double=24 # Is this needed for linker??
|
||||||
- -Lw # Scan the pic87*w.lib in the lib/ of the compiler installation directory
|
- -Lw # Scan the pic87*w.lib in the lib/ of the compiler installation directory
|
||||||
- --summary=mem,file # info listing
|
- --summary=mem,file # info listing
|
||||||
- --summary=+psect
|
- --summary=+psect
|
||||||
- --summary=+hex
|
- --summary=+hex
|
||||||
- --output=+intel
|
- --output=+intel
|
||||||
- --output=+mcof
|
- --output=+mcof
|
||||||
- --runtime=+init # Directs startup code to copy idata, ibigdata and ifardata psects from ROM to RAM.
|
- --runtime=+init # Directs startup code to copy idata, ibigdata and ifardata psects from ROM to RAM.
|
||||||
- --runtime=+clear # Directs startup code to clear bss, bigbss, rbss and farbss psects
|
- --runtime=+clear # Directs startup code to clear bss, bigbss, rbss and farbss psects
|
||||||
- --runtime=+clib # link in the c-runtime
|
- --runtime=+clib # link in the c-runtime
|
||||||
- --runtime=+keep # Keep the generated startup src after its obj is linked
|
- --runtime=+keep # Keep the generated startup src after its obj is linked
|
||||||
- -G # Generate src-level symbol file
|
- -G # Generate src-level symbol file
|
||||||
- -MIWasTheLastToBuild.map
|
- -MIWasTheLastToBuild.map
|
||||||
- --warn=0 # allow all normal warning messages
|
- --warn=0 # allow all normal warning messages
|
||||||
- -Bl # Large memory model (probably not needed for linking)
|
- -Bl # Large memory model (probably not needed for linking)
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.obj'
|
extension: '.obj'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-O'
|
prefix: '-O'
|
||||||
extension: '.hex'
|
extension: '.hex'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
|
|
||||||
simulator:
|
simulator:
|
||||||
path:
|
path:
|
||||||
pre_support:
|
pre_support:
|
||||||
- 'java -client -jar ' # note space
|
- 'java -client -jar ' # note space
|
||||||
- ['C:\Program Files\HI-TECH Software\HI-TIDE\3.15\lib\', 'simpic18.jar']
|
- ['C:\Program Files\HI-TECH Software\HI-TIDE\3.15\lib\', 'simpic18.jar']
|
||||||
- 18F87J10
|
- 18F87J10
|
||||||
post_support:
|
post_support:
|
||||||
|
|
||||||
:cmock:
|
:cmock:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
:includes:
|
:includes:
|
||||||
- Types.h
|
- Types.h
|
||||||
:suite_teardown: |
|
:suite_teardown: |
|
||||||
if (num_failures)
|
if (num_failures)
|
||||||
_FAILED_TEST();
|
_FAILED_TEST();
|
||||||
else
|
else
|
||||||
_PASSED_TESTS();
|
_PASSED_TESTS();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
colour: true
|
colour: true
|
||||||
|
|||||||
+89
-89
@@ -1,89 +1,89 @@
|
|||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\'
|
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 4.0 Kickstart\'
|
||||||
compiler:
|
compiler:
|
||||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- --dlib_config
|
- --dlib_config
|
||||||
- [*tools_root, 'arm\lib\dl4tptinl8n.h']
|
- [*tools_root, 'arm\lib\dl4tptinl8n.h']
|
||||||
- -z3
|
- -z3
|
||||||
- --no_cse
|
- --no_cse
|
||||||
- --no_unroll
|
- --no_unroll
|
||||||
- --no_inline
|
- --no_inline
|
||||||
- --no_code_motion
|
- --no_code_motion
|
||||||
- --no_tbaa
|
- --no_tbaa
|
||||||
- --no_clustering
|
- --no_clustering
|
||||||
- --no_scheduling
|
- --no_scheduling
|
||||||
- --debug
|
- --debug
|
||||||
- --cpu_mode thumb
|
- --cpu_mode thumb
|
||||||
- --endian little
|
- --endian little
|
||||||
- --cpu ARM7TDMI
|
- --cpu ARM7TDMI
|
||||||
- --stack_align 4
|
- --stack_align 4
|
||||||
- --interwork
|
- --interwork
|
||||||
- -e
|
- -e
|
||||||
- --silent
|
- --silent
|
||||||
- --warnings_are_errors
|
- --warnings_are_errors
|
||||||
- --fpu None
|
- --fpu None
|
||||||
- --diag_suppress Pa050
|
- --diag_suppress Pa050
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
- '..\src\'
|
- '..\src\'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
- 'UNITY_SUPPORT_TEST_CASES'
|
- 'UNITY_SUPPORT_TEST_CASES'
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.r79'
|
extension: '.r79'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: [*tools_root, 'common\bin\xlink.exe']
|
path: [*tools_root, 'common\bin\xlink.exe']
|
||||||
options:
|
options:
|
||||||
- -rt
|
- -rt
|
||||||
- [*tools_root, 'arm\lib\dl4tptinl8n.r79']
|
- [*tools_root, 'arm\lib\dl4tptinl8n.r79']
|
||||||
- -D_L_EXTMEM_START=0
|
- -D_L_EXTMEM_START=0
|
||||||
- -D_L_EXTMEM_SIZE=0
|
- -D_L_EXTMEM_SIZE=0
|
||||||
- -D_L_HEAP_SIZE=120
|
- -D_L_HEAP_SIZE=120
|
||||||
- -D_L_STACK_SIZE=32
|
- -D_L_STACK_SIZE=32
|
||||||
- -e_small_write=_formatted_write
|
- -e_small_write=_formatted_write
|
||||||
- -s
|
- -s
|
||||||
- __program_start
|
- __program_start
|
||||||
- -f
|
- -f
|
||||||
- [*tools_root, '\arm\config\lnkarm.xcl']
|
- [*tools_root, '\arm\config\lnkarm.xcl']
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\config\']
|
- [*tools_root, 'arm\config\']
|
||||||
- [*tools_root, 'arm\lib\']
|
- [*tools_root, 'arm\lib\']
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.r79'
|
extension: '.r79'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.d79'
|
extension: '.d79'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
simulator:
|
simulator:
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||||
pre_support:
|
pre_support:
|
||||||
- --silent
|
- --silent
|
||||||
- [*tools_root, 'arm\bin\armproc.dll']
|
- [*tools_root, 'arm\bin\armproc.dll']
|
||||||
- [*tools_root, 'arm\bin\armsim.dll']
|
- [*tools_root, 'arm\bin\armsim.dll']
|
||||||
post_support:
|
post_support:
|
||||||
- --plugin
|
- --plugin
|
||||||
- [*tools_root, 'arm\bin\armbat.dll']
|
- [*tools_root, 'arm\bin\armbat.dll']
|
||||||
- --backend
|
- --backend
|
||||||
- -B
|
- -B
|
||||||
- -p
|
- -p
|
||||||
- [*tools_root, 'arm\config\ioat91sam7X256.ddf']
|
- [*tools_root, 'arm\config\ioat91sam7X256.ddf']
|
||||||
- -d
|
- -d
|
||||||
- sim
|
- sim
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
+79
-79
@@ -1,79 +1,79 @@
|
|||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3\'
|
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3\'
|
||||||
compiler:
|
compiler:
|
||||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- --dlib_config
|
- --dlib_config
|
||||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||||
- --no_cse
|
- --no_cse
|
||||||
- --no_unroll
|
- --no_unroll
|
||||||
- --no_inline
|
- --no_inline
|
||||||
- --no_code_motion
|
- --no_code_motion
|
||||||
- --no_tbaa
|
- --no_tbaa
|
||||||
- --no_clustering
|
- --no_clustering
|
||||||
- --no_scheduling
|
- --no_scheduling
|
||||||
- --debug
|
- --debug
|
||||||
- --cpu_mode thumb
|
- --cpu_mode thumb
|
||||||
- --endian=little
|
- --endian=little
|
||||||
- --cpu=ARM7TDMI
|
- --cpu=ARM7TDMI
|
||||||
- --interwork
|
- --interwork
|
||||||
- --warnings_are_errors
|
- --warnings_are_errors
|
||||||
- --fpu=None
|
- --fpu=None
|
||||||
- --diag_suppress=Pa050
|
- --diag_suppress=Pa050
|
||||||
- --diag_suppress=Pe111
|
- --diag_suppress=Pe111
|
||||||
- -e
|
- -e
|
||||||
- -On
|
- -On
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
- '..\src\'
|
- '..\src\'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
- 'iar\iar_v5\incIAR\'
|
- 'iar\iar_v5\incIAR\'
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
- 'UNITY_SUPPORT_TEST_CASES'
|
- 'UNITY_SUPPORT_TEST_CASES'
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.r79'
|
extension: '.r79'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||||
options:
|
options:
|
||||||
- --redirect _Printf=_PrintfLarge
|
- --redirect _Printf=_PrintfLarge
|
||||||
- --redirect _Scanf=_ScanfSmall
|
- --redirect _Scanf=_ScanfSmall
|
||||||
- --semihosting
|
- --semihosting
|
||||||
- --entry __iar_program_start
|
- --entry __iar_program_start
|
||||||
- --config
|
- --config
|
||||||
- [*tools_root, 'arm\config\generic.icf']
|
- [*tools_root, 'arm\config\generic.icf']
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.out'
|
extension: '.out'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
simulator:
|
simulator:
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||||
pre_support:
|
pre_support:
|
||||||
- --silent
|
- --silent
|
||||||
- [*tools_root, 'arm\bin\armproc.dll']
|
- [*tools_root, 'arm\bin\armproc.dll']
|
||||||
- [*tools_root, 'arm\bin\armsim.dll']
|
- [*tools_root, 'arm\bin\armsim.dll']
|
||||||
post_support:
|
post_support:
|
||||||
- --plugin
|
- --plugin
|
||||||
- [*tools_root, 'arm\bin\armbat.dll']
|
- [*tools_root, 'arm\bin\armbat.dll']
|
||||||
- --backend
|
- --backend
|
||||||
- -B
|
- -B
|
||||||
- -p
|
- -p
|
||||||
- [*tools_root, 'arm\config\debugger\atmel\ioat91sam7X256.ddf']
|
- [*tools_root, 'arm\config\debugger\atmel\ioat91sam7X256.ddf']
|
||||||
- -d
|
- -d
|
||||||
- sim
|
- sim
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,79 +1,79 @@
|
|||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3\'
|
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3\'
|
||||||
compiler:
|
compiler:
|
||||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- --dlib_config
|
- --dlib_config
|
||||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||||
- --no_cse
|
- --no_cse
|
||||||
- --no_unroll
|
- --no_unroll
|
||||||
- --no_inline
|
- --no_inline
|
||||||
- --no_code_motion
|
- --no_code_motion
|
||||||
- --no_tbaa
|
- --no_tbaa
|
||||||
- --no_clustering
|
- --no_clustering
|
||||||
- --no_scheduling
|
- --no_scheduling
|
||||||
- --debug
|
- --debug
|
||||||
- --cpu_mode thumb
|
- --cpu_mode thumb
|
||||||
- --endian=little
|
- --endian=little
|
||||||
- --cpu=ARM7TDMI
|
- --cpu=ARM7TDMI
|
||||||
- --interwork
|
- --interwork
|
||||||
- --warnings_are_errors
|
- --warnings_are_errors
|
||||||
- --fpu=None
|
- --fpu=None
|
||||||
- --diag_suppress=Pa050
|
- --diag_suppress=Pa050
|
||||||
- --diag_suppress=Pe111
|
- --diag_suppress=Pe111
|
||||||
- -e
|
- -e
|
||||||
- -On
|
- -On
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
- '..\src\'
|
- '..\src\'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
- 'iar\iar_v5\incIAR\'
|
- 'iar\iar_v5\incIAR\'
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
- 'UNITY_SUPPORT_TEST_CASES'
|
- 'UNITY_SUPPORT_TEST_CASES'
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.r79'
|
extension: '.r79'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||||
options:
|
options:
|
||||||
- --redirect _Printf=_PrintfLarge
|
- --redirect _Printf=_PrintfLarge
|
||||||
- --redirect _Scanf=_ScanfSmall
|
- --redirect _Scanf=_ScanfSmall
|
||||||
- --semihosting
|
- --semihosting
|
||||||
- --entry __iar_program_start
|
- --entry __iar_program_start
|
||||||
- --config
|
- --config
|
||||||
- [*tools_root, 'arm\config\generic.icf']
|
- [*tools_root, 'arm\config\generic.icf']
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.out'
|
extension: '.out'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
simulator:
|
simulator:
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||||
pre_support:
|
pre_support:
|
||||||
- --silent
|
- --silent
|
||||||
- [*tools_root, 'arm\bin\armproc.dll']
|
- [*tools_root, 'arm\bin\armproc.dll']
|
||||||
- [*tools_root, 'arm\bin\armsim.dll']
|
- [*tools_root, 'arm\bin\armsim.dll']
|
||||||
post_support:
|
post_support:
|
||||||
- --plugin
|
- --plugin
|
||||||
- [*tools_root, 'arm\bin\armbat.dll']
|
- [*tools_root, 'arm\bin\armbat.dll']
|
||||||
- --backend
|
- --backend
|
||||||
- -B
|
- -B
|
||||||
- -p
|
- -p
|
||||||
- [*tools_root, 'arm\config\debugger\atmel\ioat91sam7X256.ddf']
|
- [*tools_root, 'arm\config\debugger\atmel\ioat91sam7X256.ddf']
|
||||||
- -d
|
- -d
|
||||||
- sim
|
- sim
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,93 +1,93 @@
|
|||||||
#Default tool path for IAR 5.4 on Windows XP 64bit
|
#Default tool path for IAR 5.4 on Windows XP 64bit
|
||||||
tools_root: &tools_root 'C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\'
|
tools_root: &tools_root 'C:\Program Files (x86)\IAR Systems\Embedded Workbench 5.4 Kickstart\'
|
||||||
compiler:
|
compiler:
|
||||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- --diag_suppress=Pa050
|
- --diag_suppress=Pa050
|
||||||
#- --diag_suppress=Pe111
|
#- --diag_suppress=Pe111
|
||||||
- --debug
|
- --debug
|
||||||
- --endian=little
|
- --endian=little
|
||||||
- --cpu=Cortex-M3
|
- --cpu=Cortex-M3
|
||||||
- --no_path_in_file_macros
|
- --no_path_in_file_macros
|
||||||
- -e
|
- -e
|
||||||
- --fpu=None
|
- --fpu=None
|
||||||
- --dlib_config
|
- --dlib_config
|
||||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||||
#- --preinclude --preinclude C:\Vss\T2 Working\common\system.h
|
#- --preinclude --preinclude C:\Vss\T2 Working\common\system.h
|
||||||
- --interwork
|
- --interwork
|
||||||
- --warnings_are_errors
|
- --warnings_are_errors
|
||||||
# - Ohz
|
# - Ohz
|
||||||
- -Oh
|
- -Oh
|
||||||
# - --no_cse
|
# - --no_cse
|
||||||
# - --no_unroll
|
# - --no_unroll
|
||||||
# - --no_inline
|
# - --no_inline
|
||||||
# - --no_code_motion
|
# - --no_code_motion
|
||||||
# - --no_tbaa
|
# - --no_tbaa
|
||||||
# - --no_clustering
|
# - --no_clustering
|
||||||
# - --no_scheduling
|
# - --no_scheduling
|
||||||
|
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
- '..\src\'
|
- '..\src\'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
- 'iar\iar_v5\incIAR\'
|
- 'iar\iar_v5\incIAR\'
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- ewarm
|
- ewarm
|
||||||
- PART_LM3S9B92
|
- PART_LM3S9B92
|
||||||
- TARGET_IS_TEMPEST_RB1
|
- TARGET_IS_TEMPEST_RB1
|
||||||
- USE_ROM_DRIVERS
|
- USE_ROM_DRIVERS
|
||||||
- UART_BUFFERED
|
- UART_BUFFERED
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.r79'
|
extension: '.r79'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||||
options:
|
options:
|
||||||
- --redirect _Printf=_PrintfLarge
|
- --redirect _Printf=_PrintfLarge
|
||||||
- --redirect _Scanf=_ScanfSmall
|
- --redirect _Scanf=_ScanfSmall
|
||||||
- --semihosting
|
- --semihosting
|
||||||
- --entry __iar_program_start
|
- --entry __iar_program_start
|
||||||
- --config
|
- --config
|
||||||
- [*tools_root, 'arm\config\generic.icf']
|
- [*tools_root, 'arm\config\generic.icf']
|
||||||
# - ['C:\Temp\lm3s9b92.icf']
|
# - ['C:\Temp\lm3s9b92.icf']
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.out'
|
extension: '.out'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
simulator:
|
simulator:
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||||
pre_support:
|
pre_support:
|
||||||
#- --silent
|
#- --silent
|
||||||
- [*tools_root, 'arm\bin\armproc.dll']
|
- [*tools_root, 'arm\bin\armproc.dll']
|
||||||
- [*tools_root, 'arm\bin\armsim2.dll']
|
- [*tools_root, 'arm\bin\armsim2.dll']
|
||||||
post_support:
|
post_support:
|
||||||
- --plugin
|
- --plugin
|
||||||
- [*tools_root, 'arm\bin\armbat.dll']
|
- [*tools_root, 'arm\bin\armbat.dll']
|
||||||
- --backend
|
- --backend
|
||||||
- -B
|
- -B
|
||||||
- --endian=little
|
- --endian=little
|
||||||
- --cpu=Cortex-M3
|
- --cpu=Cortex-M3
|
||||||
- --fpu=None
|
- --fpu=None
|
||||||
- -p
|
- -p
|
||||||
- [*tools_root, 'arm\config\debugger\TexasInstruments\iolm3sxxxx.ddf']
|
- [*tools_root, 'arm\config\debugger\TexasInstruments\iolm3sxxxx.ddf']
|
||||||
- --semihosting
|
- --semihosting
|
||||||
- --device=LM3SxBxx
|
- --device=LM3SxBxx
|
||||||
#- -d
|
#- -d
|
||||||
#- sim
|
#- sim
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,83 +1,83 @@
|
|||||||
# unit testing under iar compiler / simulator for STM32 Cortex-M3
|
# unit testing under iar compiler / simulator for STM32 Cortex-M3
|
||||||
|
|
||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.4\'
|
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.4\'
|
||||||
compiler:
|
compiler:
|
||||||
path: [*tools_root, 'arm\bin\iccarm.exe']
|
path: [*tools_root, 'arm\bin\iccarm.exe']
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- --dlib_config
|
- --dlib_config
|
||||||
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
- [*tools_root, 'arm\inc\DLib_Config_Normal.h']
|
||||||
- --no_cse
|
- --no_cse
|
||||||
- --no_unroll
|
- --no_unroll
|
||||||
- --no_inline
|
- --no_inline
|
||||||
- --no_code_motion
|
- --no_code_motion
|
||||||
- --no_tbaa
|
- --no_tbaa
|
||||||
- --no_clustering
|
- --no_clustering
|
||||||
- --no_scheduling
|
- --no_scheduling
|
||||||
- --debug
|
- --debug
|
||||||
- --cpu_mode thumb
|
- --cpu_mode thumb
|
||||||
- --endian=little
|
- --endian=little
|
||||||
- --cpu=Cortex-M3
|
- --cpu=Cortex-M3
|
||||||
- --interwork
|
- --interwork
|
||||||
- --warnings_are_errors
|
- --warnings_are_errors
|
||||||
- --fpu=None
|
- --fpu=None
|
||||||
- --diag_suppress=Pa050
|
- --diag_suppress=Pa050
|
||||||
- --diag_suppress=Pe111
|
- --diag_suppress=Pe111
|
||||||
- -e
|
- -e
|
||||||
- -On
|
- -On
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- [*tools_root, 'arm\inc\']
|
- [*tools_root, 'arm\inc\']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
- '..\src\'
|
- '..\src\'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
- 'iar\iar_v5\incIAR\'
|
- 'iar\iar_v5\incIAR\'
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- 'IAR'
|
- 'IAR'
|
||||||
- 'UNITY_SUPPORT_64'
|
- 'UNITY_SUPPORT_64'
|
||||||
- 'UNITY_SUPPORT_TEST_CASES'
|
- 'UNITY_SUPPORT_TEST_CASES'
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.r79'
|
extension: '.r79'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
path: [*tools_root, 'arm\bin\ilinkarm.exe']
|
||||||
options:
|
options:
|
||||||
- --redirect _Printf=_PrintfLarge
|
- --redirect _Printf=_PrintfLarge
|
||||||
- --redirect _Scanf=_ScanfSmall
|
- --redirect _Scanf=_ScanfSmall
|
||||||
- --semihosting
|
- --semihosting
|
||||||
- --entry __iar_program_start
|
- --entry __iar_program_start
|
||||||
- --config
|
- --config
|
||||||
- [*tools_root, 'arm\config\generic_cortex.icf']
|
- [*tools_root, 'arm\config\generic_cortex.icf']
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.out'
|
extension: '.out'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
simulator:
|
simulator:
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||||
pre_support:
|
pre_support:
|
||||||
- --silent
|
- --silent
|
||||||
- [*tools_root, 'arm\bin\armproc.dll']
|
- [*tools_root, 'arm\bin\armproc.dll']
|
||||||
- [*tools_root, 'arm\bin\armsim.dll']
|
- [*tools_root, 'arm\bin\armsim.dll']
|
||||||
post_support:
|
post_support:
|
||||||
- --plugin
|
- --plugin
|
||||||
- [*tools_root, 'arm\bin\armbat.dll']
|
- [*tools_root, 'arm\bin\armbat.dll']
|
||||||
- --backend
|
- --backend
|
||||||
- -B
|
- -B
|
||||||
- -p
|
- -p
|
||||||
- [*tools_root, 'arm\config\debugger\ST\iostm32f107xx.ddf']
|
- [*tools_root, 'arm\config\debugger\ST\iostm32f107xx.ddf']
|
||||||
- --cpu=Cortex-M3
|
- --cpu=Cortex-M3
|
||||||
- -d
|
- -d
|
||||||
- sim
|
- sim
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
+94
-94
@@ -1,94 +1,94 @@
|
|||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\'
|
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 5.3 MSP430\'
|
||||||
core_root: &core_root [*tools_root, '430\']
|
core_root: &core_root [*tools_root, '430\']
|
||||||
core_bin: &core_bin [*core_root, 'bin\']
|
core_bin: &core_bin [*core_root, 'bin\']
|
||||||
core_config: &core_config [*core_root, 'config\']
|
core_config: &core_config [*core_root, 'config\']
|
||||||
core_lib: &core_lib [*core_root, 'lib\']
|
core_lib: &core_lib [*core_root, 'lib\']
|
||||||
core_inc: &core_inc [*core_root, 'inc\']
|
core_inc: &core_inc [*core_root, 'inc\']
|
||||||
core_config: &core_config [*core_root, 'config\']
|
core_config: &core_config [*core_root, 'config\']
|
||||||
|
|
||||||
compiler:
|
compiler:
|
||||||
path: [*core_bin, 'icc430.exe']
|
path: [*core_bin, 'icc430.exe']
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- --dlib_config
|
- --dlib_config
|
||||||
- [*core_lib, 'dlib\dl430fn.h']
|
- [*core_lib, 'dlib\dl430fn.h']
|
||||||
- --no_cse
|
- --no_cse
|
||||||
- --no_unroll
|
- --no_unroll
|
||||||
- --no_inline
|
- --no_inline
|
||||||
- --no_code_motion
|
- --no_code_motion
|
||||||
- --no_tbaa
|
- --no_tbaa
|
||||||
- --debug
|
- --debug
|
||||||
- -e
|
- -e
|
||||||
- -Ol
|
- -Ol
|
||||||
- --multiplier=16
|
- --multiplier=16
|
||||||
- --double=32
|
- --double=32
|
||||||
- --diag_suppress Pa050
|
- --diag_suppress Pa050
|
||||||
- --diag_suppress Pe111
|
- --diag_suppress Pe111
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- *core_inc
|
- *core_inc
|
||||||
- [*core_inc, 'dlib']
|
- [*core_inc, 'dlib']
|
||||||
- [*core_lib, 'dlib']
|
- [*core_lib, 'dlib']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
- '../src/'
|
- '../src/'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src'
|
- 'vendor\unity\src'
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- '__MSP430F149__'
|
- '__MSP430F149__'
|
||||||
- 'INT_WIDTH=16'
|
- 'INT_WIDTH=16'
|
||||||
- 'UNITY_EXCLUDE_FLOAT'
|
- 'UNITY_EXCLUDE_FLOAT'
|
||||||
- 'UNITY_SUPPORT_TEST_CASES'
|
- 'UNITY_SUPPORT_TEST_CASES'
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.r43'
|
extension: '.r43'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: [*core_bin, 'xlink.exe']
|
path: [*core_bin, 'xlink.exe']
|
||||||
options:
|
options:
|
||||||
- -rt
|
- -rt
|
||||||
- [*core_lib, 'dlib\dl430fn.r43']
|
- [*core_lib, 'dlib\dl430fn.r43']
|
||||||
- -e_PrintfTiny=_Printf
|
- -e_PrintfTiny=_Printf
|
||||||
- -e_ScanfSmall=_Scanf
|
- -e_ScanfSmall=_Scanf
|
||||||
- -s __program_start
|
- -s __program_start
|
||||||
- -D_STACK_SIZE=50
|
- -D_STACK_SIZE=50
|
||||||
- -D_DATA16_HEAP_SIZE=50
|
- -D_DATA16_HEAP_SIZE=50
|
||||||
- -D_DATA20_HEAP_SIZE=50
|
- -D_DATA20_HEAP_SIZE=50
|
||||||
- -f
|
- -f
|
||||||
- [*core_config, 'lnk430f5438.xcl']
|
- [*core_config, 'lnk430f5438.xcl']
|
||||||
- -f
|
- -f
|
||||||
- [*core_config, 'multiplier.xcl']
|
- [*core_config, 'multiplier.xcl']
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- *core_config
|
- *core_config
|
||||||
- *core_lib
|
- *core_lib
|
||||||
- [*core_lib, 'dlib']
|
- [*core_lib, 'dlib']
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.r79'
|
extension: '.r79'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.d79'
|
extension: '.d79'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
simulator:
|
simulator:
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||||
pre_support:
|
pre_support:
|
||||||
- --silent
|
- --silent
|
||||||
- [*core_bin, '430proc.dll']
|
- [*core_bin, '430proc.dll']
|
||||||
- [*core_bin, '430sim.dll']
|
- [*core_bin, '430sim.dll']
|
||||||
post_support:
|
post_support:
|
||||||
- --plugin
|
- --plugin
|
||||||
- [*core_bin, '430bat.dll']
|
- [*core_bin, '430bat.dll']
|
||||||
- --backend -B
|
- --backend -B
|
||||||
- --cpu MSP430F5438
|
- --cpu MSP430F5438
|
||||||
- -p
|
- -p
|
||||||
- [*core_config, 'MSP430F5438.ddf']
|
- [*core_config, 'MSP430F5438.ddf']
|
||||||
- -d sim
|
- -d sim
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
@@ -1,85 +1,85 @@
|
|||||||
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 6.0\'
|
tools_root: &tools_root 'C:\Program Files\IAR Systems\Embedded Workbench 6.0\'
|
||||||
compiler:
|
compiler:
|
||||||
path: [*tools_root, 'sh\bin\iccsh.exe']
|
path: [*tools_root, 'sh\bin\iccsh.exe']
|
||||||
source_path: '..\src\'
|
source_path: '..\src\'
|
||||||
unit_tests_path: &unit_tests_path 'tests\'
|
unit_tests_path: &unit_tests_path 'tests\'
|
||||||
build_path: &build_path 'build\'
|
build_path: &build_path 'build\'
|
||||||
options:
|
options:
|
||||||
- -e
|
- -e
|
||||||
- --char_is_signed
|
- --char_is_signed
|
||||||
- -Ol
|
- -Ol
|
||||||
- --no_cse
|
- --no_cse
|
||||||
- --no_unroll
|
- --no_unroll
|
||||||
- --no_inline
|
- --no_inline
|
||||||
- --no_code_motion
|
- --no_code_motion
|
||||||
- --no_tbaa
|
- --no_tbaa
|
||||||
- --no_scheduling
|
- --no_scheduling
|
||||||
- --no_clustering
|
- --no_clustering
|
||||||
- --debug
|
- --debug
|
||||||
- --dlib_config
|
- --dlib_config
|
||||||
- [*tools_root, 'sh\inc\DLib_Product.h']
|
- [*tools_root, 'sh\inc\DLib_Product.h']
|
||||||
- --double=32
|
- --double=32
|
||||||
- --code_model=huge
|
- --code_model=huge
|
||||||
- --data_model=huge
|
- --data_model=huge
|
||||||
- --core=sh2afpu
|
- --core=sh2afpu
|
||||||
- --warnings_affect_exit_code
|
- --warnings_affect_exit_code
|
||||||
- --warnings_are_errors
|
- --warnings_are_errors
|
||||||
- --mfc
|
- --mfc
|
||||||
- --use_unix_directory_separators
|
- --use_unix_directory_separators
|
||||||
- --diag_suppress=Pe161
|
- --diag_suppress=Pe161
|
||||||
includes:
|
includes:
|
||||||
prefix: '-I'
|
prefix: '-I'
|
||||||
items:
|
items:
|
||||||
- [*tools_root, 'sh\inc\']
|
- [*tools_root, 'sh\inc\']
|
||||||
- [*tools_root, 'sh\inc\c']
|
- [*tools_root, 'sh\inc\c']
|
||||||
- 'src\'
|
- 'src\'
|
||||||
- '..\src\'
|
- '..\src\'
|
||||||
- *unit_tests_path
|
- *unit_tests_path
|
||||||
- 'vendor\unity\src\'
|
- 'vendor\unity\src\'
|
||||||
defines:
|
defines:
|
||||||
prefix: '-D'
|
prefix: '-D'
|
||||||
items:
|
items:
|
||||||
- UNITY_SUPPORT_64
|
- UNITY_SUPPORT_64
|
||||||
- 'UNITY_SUPPORT_TEST_CASES'
|
- 'UNITY_SUPPORT_TEST_CASES'
|
||||||
object_files:
|
object_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
linker:
|
linker:
|
||||||
path: [*tools_root, 'sh\bin\ilinksh.exe']
|
path: [*tools_root, 'sh\bin\ilinksh.exe']
|
||||||
options:
|
options:
|
||||||
- --redirect __Printf=__PrintfSmall
|
- --redirect __Printf=__PrintfSmall
|
||||||
- --redirect __Scanf=__ScanfSmall
|
- --redirect __Scanf=__ScanfSmall
|
||||||
- --config
|
- --config
|
||||||
- [*tools_root, 'sh\config\generic.icf']
|
- [*tools_root, 'sh\config\generic.icf']
|
||||||
- --config_def _CSTACK_SIZE=0x800
|
- --config_def _CSTACK_SIZE=0x800
|
||||||
- --config_def _HEAP_SIZE=0x800
|
- --config_def _HEAP_SIZE=0x800
|
||||||
- --config_def _INT_TABLE=0x10
|
- --config_def _INT_TABLE=0x10
|
||||||
- --entry __iar_program_start
|
- --entry __iar_program_start
|
||||||
- --debug_lib
|
- --debug_lib
|
||||||
object_files:
|
object_files:
|
||||||
path: *build_path
|
path: *build_path
|
||||||
extension: '.o'
|
extension: '.o'
|
||||||
bin_files:
|
bin_files:
|
||||||
prefix: '-o'
|
prefix: '-o'
|
||||||
extension: '.out'
|
extension: '.out'
|
||||||
destination: *build_path
|
destination: *build_path
|
||||||
simulator:
|
simulator:
|
||||||
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
path: [*tools_root, 'common\bin\CSpyBat.exe']
|
||||||
pre_support:
|
pre_support:
|
||||||
- --silent
|
- --silent
|
||||||
- [*tools_root, 'sh\bin\shproc.dll']
|
- [*tools_root, 'sh\bin\shproc.dll']
|
||||||
- [*tools_root, 'sh\bin\shsim.dll']
|
- [*tools_root, 'sh\bin\shsim.dll']
|
||||||
post_support:
|
post_support:
|
||||||
- --plugin
|
- --plugin
|
||||||
- [*tools_root, 'sh\bin\shbat.dll']
|
- [*tools_root, 'sh\bin\shbat.dll']
|
||||||
- --backend
|
- --backend
|
||||||
- -B
|
- -B
|
||||||
- --core sh2afpu
|
- --core sh2afpu
|
||||||
- -p
|
- -p
|
||||||
- [*tools_root, 'sh\config\debugger\io7264.ddf']
|
- [*tools_root, 'sh\config\debugger\io7264.ddf']
|
||||||
- -d
|
- -d
|
||||||
- sim
|
- sim
|
||||||
colour: true
|
colour: true
|
||||||
:unity:
|
:unity:
|
||||||
:plugins: []
|
:plugins: []
|
||||||
|
|||||||
+104
-104
@@ -1,104 +1,104 @@
|
|||||||
/* ==========================================
|
/* ==========================================
|
||||||
Unity Project - A Test Framework for C
|
Unity Project - A Test Framework for C
|
||||||
Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
|
||||||
[Released under MIT License. Please refer to license.txt for details]
|
[Released under MIT License. Please refer to license.txt for details]
|
||||||
========================================== */
|
========================================== */
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "unity.h"
|
#include "unity.h"
|
||||||
|
|
||||||
int putcharSpy(int c) {return putchar(c);} // include passthrough for linking tests
|
int putcharSpy(int c) {return putchar(c);} // include passthrough for linking tests
|
||||||
|
|
||||||
#define TEST_CASE(...)
|
#define TEST_CASE(...)
|
||||||
|
|
||||||
#define EXPECT_ABORT_BEGIN \
|
#define EXPECT_ABORT_BEGIN \
|
||||||
if (TEST_PROTECT()) \
|
if (TEST_PROTECT()) \
|
||||||
{
|
{
|
||||||
|
|
||||||
#define VERIFY_FAILS_END \
|
#define VERIFY_FAILS_END \
|
||||||
} \
|
} \
|
||||||
Unity.CurrentTestFailed = (Unity.CurrentTestFailed == 1) ? 0 : 1; \
|
Unity.CurrentTestFailed = (Unity.CurrentTestFailed == 1) ? 0 : 1; \
|
||||||
if (Unity.CurrentTestFailed == 1) { \
|
if (Unity.CurrentTestFailed == 1) { \
|
||||||
SetToOneMeanWeAlreadyCheckedThisGuy = 1; \
|
SetToOneMeanWeAlreadyCheckedThisGuy = 1; \
|
||||||
UnityPrint("[[[[ Previous Test Should Have Failed But Did Not ]]]]"); \
|
UnityPrint("[[[[ Previous Test Should Have Failed But Did Not ]]]]"); \
|
||||||
UNITY_OUTPUT_CHAR('\n'); \
|
UNITY_OUTPUT_CHAR('\n'); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#define VERIFY_IGNORES_END \
|
#define VERIFY_IGNORES_END \
|
||||||
} \
|
} \
|
||||||
Unity.CurrentTestFailed = (Unity.CurrentTestIgnored == 1) ? 0 : 1; \
|
Unity.CurrentTestFailed = (Unity.CurrentTestIgnored == 1) ? 0 : 1; \
|
||||||
Unity.CurrentTestIgnored = 0; \
|
Unity.CurrentTestIgnored = 0; \
|
||||||
if (Unity.CurrentTestFailed == 1) { \
|
if (Unity.CurrentTestFailed == 1) { \
|
||||||
SetToOneMeanWeAlreadyCheckedThisGuy = 1; \
|
SetToOneMeanWeAlreadyCheckedThisGuy = 1; \
|
||||||
UnityPrint("[[[[ Previous Test Should Have Ignored But Did Not ]]]]"); \
|
UnityPrint("[[[[ Previous Test Should Have Ignored But Did Not ]]]]"); \
|
||||||
UNITY_OUTPUT_CHAR('\n'); \
|
UNITY_OUTPUT_CHAR('\n'); \
|
||||||
}
|
}
|
||||||
|
|
||||||
int SetToOneToFailInTearDown;
|
int SetToOneToFailInTearDown;
|
||||||
int SetToOneMeanWeAlreadyCheckedThisGuy;
|
int SetToOneMeanWeAlreadyCheckedThisGuy;
|
||||||
|
|
||||||
void setUp(void)
|
void setUp(void)
|
||||||
{
|
{
|
||||||
SetToOneToFailInTearDown = 0;
|
SetToOneToFailInTearDown = 0;
|
||||||
SetToOneMeanWeAlreadyCheckedThisGuy = 0;
|
SetToOneMeanWeAlreadyCheckedThisGuy = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tearDown(void)
|
void tearDown(void)
|
||||||
{
|
{
|
||||||
if (SetToOneToFailInTearDown == 1)
|
if (SetToOneToFailInTearDown == 1)
|
||||||
TEST_FAIL_MESSAGE("<= Failed in tearDown");
|
TEST_FAIL_MESSAGE("<= Failed in tearDown");
|
||||||
if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0))
|
if ((SetToOneMeanWeAlreadyCheckedThisGuy == 0) && (Unity.CurrentTestFailed > 0))
|
||||||
{
|
{
|
||||||
UnityPrint("[[[[ Previous Test Should Have Passed But Did Not ]]]]");
|
UnityPrint("[[[[ Previous Test Should Have Passed But Did Not ]]]]");
|
||||||
UNITY_OUTPUT_CHAR('\n');
|
UNITY_OUTPUT_CHAR('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE(0)
|
TEST_CASE(0)
|
||||||
TEST_CASE(44)
|
TEST_CASE(44)
|
||||||
TEST_CASE((90)+9)
|
TEST_CASE((90)+9)
|
||||||
void test_TheseShouldAllPass(int Num)
|
void test_TheseShouldAllPass(int Num)
|
||||||
{
|
{
|
||||||
TEST_ASSERT_TRUE(Num < 100);
|
TEST_ASSERT_TRUE(Num < 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE(3)
|
TEST_CASE(3)
|
||||||
TEST_CASE(77)
|
TEST_CASE(77)
|
||||||
TEST_CASE( (99) + 1 - (1))
|
TEST_CASE( (99) + 1 - (1))
|
||||||
void test_TheseShouldAllFail(int Num)
|
void test_TheseShouldAllFail(int Num)
|
||||||
{
|
{
|
||||||
EXPECT_ABORT_BEGIN
|
EXPECT_ABORT_BEGIN
|
||||||
TEST_ASSERT_TRUE(Num > 100);
|
TEST_ASSERT_TRUE(Num > 100);
|
||||||
VERIFY_FAILS_END
|
VERIFY_FAILS_END
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE(1)
|
TEST_CASE(1)
|
||||||
TEST_CASE(44)
|
TEST_CASE(44)
|
||||||
TEST_CASE(99)
|
TEST_CASE(99)
|
||||||
TEST_CASE(98)
|
TEST_CASE(98)
|
||||||
void test_TheseAreEveryOther(int Num)
|
void test_TheseAreEveryOther(int Num)
|
||||||
{
|
{
|
||||||
if (Num & 1)
|
if (Num & 1)
|
||||||
{
|
{
|
||||||
EXPECT_ABORT_BEGIN
|
EXPECT_ABORT_BEGIN
|
||||||
TEST_ASSERT_TRUE(Num > 100);
|
TEST_ASSERT_TRUE(Num > 100);
|
||||||
VERIFY_FAILS_END
|
VERIFY_FAILS_END
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TEST_ASSERT_TRUE(Num < 100);
|
TEST_ASSERT_TRUE(Num < 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_NormalPassesStillWork(void)
|
void test_NormalPassesStillWork(void)
|
||||||
{
|
{
|
||||||
TEST_ASSERT_TRUE(1);
|
TEST_ASSERT_TRUE(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_NormalFailsStillWork(void)
|
void test_NormalFailsStillWork(void)
|
||||||
{
|
{
|
||||||
EXPECT_ABORT_BEGIN
|
EXPECT_ABORT_BEGIN
|
||||||
TEST_ASSERT_TRUE(0);
|
TEST_ASSERT_TRUE(0);
|
||||||
VERIFY_FAILS_END
|
VERIFY_FAILS_END
|
||||||
}
|
}
|
||||||
|
|||||||
+3656
-3656
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user