summaryrefslogtreecommitdiff
path: root/tests/vendor/ceedling/lib/constants.rb
diff options
context:
space:
mode:
authorhathach <[email protected]>2012-12-27 02:52:40 +0700
committerhathach <[email protected]>2012-12-27 02:52:40 +0700
commitbc735bbe2239cbe08973adf99124cf18d4ef24c8 (patch)
tree27213c897922f5c43c9622eb125d3e88f7b108fa /tests/vendor/ceedling/lib/constants.rb
parentf4fa62e032a33c444cb2794eb4851d65aaad0978 (diff)
- add ceedling/cmock/unity as testing framework and support
- unified makefile project for the whole repos - new separate project for tests
Diffstat (limited to 'tests/vendor/ceedling/lib/constants.rb')
-rw-r--r--tests/vendor/ceedling/lib/constants.rb91
1 files changed, 91 insertions, 0 deletions
diff --git a/tests/vendor/ceedling/lib/constants.rb b/tests/vendor/ceedling/lib/constants.rb
new file mode 100644
index 000000000..c7fd9ca04
--- /dev/null
+++ b/tests/vendor/ceedling/lib/constants.rb
@@ -0,0 +1,91 @@
+
+class Verbosity
+ SILENT = 0 # as silent as possible (though there are some messages that must be spit out)
+ ERRORS = 1 # only errors
+ COMPLAIN = 2 # spit out errors and warnings/notices
+ NORMAL = 3 # errors, warnings/notices, standard status messages
+ OBNOXIOUS = 4 # all messages including extra verbose output (used for lite debugging / verification)
+ DEBUG = 5 # special extra verbose output for hardcore debugging
+end
+
+
+class TestResultsSanityChecks
+ NONE = 0 # no sanity checking of test results
+ NORMAL = 1 # perform non-problematic checks
+ THOROUGH = 2 # perform checks that require inside knowledge of system workings
+end
+
+
+class StdErrRedirect
+ NONE = :none
+ AUTO = :auto
+ WIN = :win
+ UNIX = :unix
+ TCSH = :tcsh
+end
+
+
+class BackgroundExec
+ NONE = :none
+ AUTO = :auto
+ WIN = :win
+ UNIX = :unix
+end
+
+
+EXTENSION_WIN_EXE = '.exe'
+EXTENSION_NONWIN_EXE = '.out'
+
+
+CEXCEPTION_ROOT_PATH = 'c_exception'
+CEXCEPTION_LIB_PATH = "#{CEXCEPTION_ROOT_PATH}/lib"
+CEXCEPTION_C_FILE = 'CException.c'
+CEXCEPTION_H_FILE = 'CException.h'
+
+UNITY_ROOT_PATH = 'unity'
+UNITY_LIB_PATH = "#{UNITY_ROOT_PATH}/src"
+UNITY_C_FILE = 'unity.c'
+UNITY_H_FILE = 'unity.h'
+UNITY_INTERNALS_H_FILE = 'unity_internals.h'
+
+CMOCK_ROOT_PATH = 'cmock'
+CMOCK_LIB_PATH = "#{CMOCK_ROOT_PATH}/src"
+CMOCK_C_FILE = 'cmock.c'
+CMOCK_H_FILE = 'cmock.h'
+
+
+DEFAULT_CEEDLING_MAIN_PROJECT_FILE = 'project.yml' # main project file
+DEFAULT_CEEDLING_USER_PROJECT_FILE = 'user.yml' # supplemental user config file
+
+INPUT_CONFIGURATION_CACHE_FILE = 'input.yml' # input configuration file dump
+
+
+TEST_ROOT_NAME = 'test'
+TEST_TASK_ROOT = TEST_ROOT_NAME + ':'
+TEST_SYM = TEST_ROOT_NAME.to_sym
+
+RELEASE_ROOT_NAME = 'release'
+RELEASE_TASK_ROOT = RELEASE_ROOT_NAME + ':'
+RELEASE_SYM = RELEASE_ROOT_NAME.to_sym
+
+REFRESH_ROOT_NAME = 'refresh'
+REFRESH_TASK_ROOT = REFRESH_ROOT_NAME + ':'
+REFRESH_SYM = REFRESH_ROOT_NAME.to_sym
+
+UTILS_ROOT_NAME = 'utils'
+UTILS_TASK_ROOT = UTILS_ROOT_NAME + ':'
+UTILS_SYM = UTILS_ROOT_NAME.to_sym
+
+OPERATION_COMPILE_SYM = :compile
+OPERATION_LINK_SYM = :link
+
+
+RUBY_STRING_REPLACEMENT_PATTERN = /#\{.+\}/
+RUBY_EVAL_REPLACEMENT_PATTERN = /^\{(.+)\}$/
+TOOL_EXECUTOR_ARGUMENT_REPLACEMENT_PATTERN = /(\$\{(\d+)\})/
+TEST_STDOUT_STATISTICS_PATTERN = /-+\s+(\d+)\s+Tests\s+(\d+)\s+Failures\s+(\d+)\s+Ignored\s+(OK|FAIL)\s*/i
+
+NULL_FILE_PATH = '/dev/null'
+
+TESTS_BASE_PATH = TEST_ROOT_NAME
+RELEASE_BASE_PATH = RELEASE_ROOT_NAME