Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
c10f87f1
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
接近 2 年 前同步成功
通知
38
Star
144
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Unity
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c10f87f1
编写于
7月 03, 2019
作者:
M
Michael Brockus
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed issues regarding the example Meson project.
上级
c7185b3a
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
27 addition
and
52 deletion
+27
-52
examples/example_4/meson.build
examples/example_4/meson.build
+3
-0
examples/example_4/readme.txt
examples/example_4/readme.txt
+3
-2
examples/example_4/src/meson.build
examples/example_4/src/meson.build
+14
-6
examples/example_4/subprojects/unity.wrap
examples/example_4/subprojects/unity.wrap
+4
-0
examples/example_4/test/TestProductionCode.c
examples/example_4/test/TestProductionCode.c
+0
-5
examples/example_4/test/test_runners/meson.build
examples/example_4/test/test_runners/meson.build
+2
-2
examples/meson.build
examples/meson.build
+0
-14
meson.build
meson.build
+1
-6
meson_options.txt
meson_options.txt
+0
-17
未找到文件。
examples/example_4/meson.build
浏览文件 @
c10f87f1
...
@@ -10,6 +10,9 @@
...
@@ -10,6 +10,9 @@
###################################################################################
###################################################################################
project('example-4')
unity_dep = dependency('unity', fallback : ['unity', 'unity_dep'])
example_dir = include_directories('.', join_paths('.', 'src'))
example_dir = include_directories('.', join_paths('.', 'src'))
...
...
examples/example_4/readme.txt
浏览文件 @
c10f87f1
...
@@ -2,7 +2,7 @@ Example 4
...
@@ -2,7 +2,7 @@ Example 4
=========
=========
Close to the simplest possible example of Unity, using only basic features.
Close to the simplest possible example of Unity, using only basic features.
to build this example run
meson setup <build dir name>
.
to build this example run
"meson setup <build dir name>"
.
Meson uses the Ninja build system to actually build the code. To start the
Meson uses the Ninja build system to actually build the code. To start the
build, simply type the following command.
build, simply type the following command.
...
@@ -11,4 +11,5 @@ build, simply type the following command.
...
@@ -11,4 +11,5 @@ build, simply type the following command.
Meson provides native support for running tests. The command to do that is simple.
Meson provides native support for running tests. The command to do that is simple.
"meson test -C <build dir name>".
"meson test -C <build dir name>".
\ No newline at end of file
\ No newline at end of file
examples/example_4/src/meson.build
浏览文件 @
c10f87f1
...
@@ -11,13 +11,21 @@
...
@@ -11,13 +11,21 @@
example_src = files('ProductionCode.c', 'ProductionCode2.c')
a_lib = library(
'production-code-1',
'ProductionCode.c',
include_directories: example_dir)
b_lib = library(
'production-code-2',
'ProductionCode2.c',
include_directories: example_dir)
example_lib = library(meson.project_name(),
a_dep = declare_dependency(
sources: example_src
,
link_with: a_lib
,
include_directories: example_dir)
include_directories: example_dir)
example_dep = declare_dependency(
b_dep = declare_dependency(
version: meson.project_version(),
link_with: b_lib,
link_with: example_lib,
include_directories: example_dir)
include_directories: example_dir)
\ No newline at end of file
examples/example_4/subprojects/unity.wrap
0 → 100755
浏览文件 @
c10f87f1
[wrap-git]
directory = unity
url = https://github.com/squidfarts/Unity.git
revision = head
examples/example_4/test/TestProductionCode.c
浏览文件 @
c10f87f1
...
@@ -17,11 +17,6 @@ void tearDown(void)
...
@@ -17,11 +17,6 @@ void tearDown(void)
{
{
}
}
void
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode
(
void
);
void
test_FindFunction_WhichIsBroken_ShouldReturnTheIndexForItemsInList_WhichWillFailBecauseOurFunctionUnderTestIsBroken
(
void
);
void
test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValue
(
void
);
void
test_FunctionWhichReturnsLocalVariable_ShouldReturnTheCurrentCounterValueAgain
(
void
);
void
test_FunctionWhichReturnsLocalVariable_ShouldReturnCurrentCounter_ButFailsBecauseThisTestIsActuallyFlawed
(
void
);
void
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode
(
void
)
void
test_FindFunction_WhichIsBroken_ShouldReturnZeroIfItemIsNotInList_WhichWorksEvenInOurBrokenCode
(
void
)
{
{
...
...
examples/example_4/test/test_runners/meson.build
浏览文件 @
c10f87f1
...
@@ -20,5 +20,5 @@ test_src_2 = [
...
@@ -20,5 +20,5 @@ test_src_2 = [
join_paths('..' ,'TestProductionCode2.c')
join_paths('..' ,'TestProductionCode2.c')
]
]
test('Test production code one', executable('test-1', test_src_1, dependencies: [ example_dep, unity_dep ]))
test('Test production code one', executable('test-1', test_src_1, dependencies: [ a_dep, unity_dep ]))
test('Test production code two', executable('test-2', test_src_2, dependencies: [ example_dep, unity_dep ]))
test('Test production code two', executable('test-2', test_src_2, dependencies: [ b_dep, unity_dep ]))
\ No newline at end of file
\ No newline at end of file
examples/meson.build
已删除
100644 → 0
浏览文件 @
c7185b3a
###################################################################################
# #
# NAME: examples/meson.build #
# #
# AUTHOR: Mike Karlesky, Mark VanderVoord, Greg Williams. #
# WRITTEN BY: Michael Brockus. #
# #
# License: MIT #
# #
###################################################################################
subdir('example_4')
\ No newline at end of file
meson.build
浏览文件 @
c10f87f1
...
@@ -77,9 +77,4 @@ subdir('src')
...
@@ -77,9 +77,4 @@ subdir('src')
unity_dep = declare_dependency(
unity_dep = declare_dependency(
version: meson.project_version(),
version: meson.project_version(),
link_with: unity_lib,
link_with: unity_lib,
include_directories: unity_dir)
include_directories: unity_dir)
\ No newline at end of file
if get_option('with_examples').enabled()
subdir('examples')
endif
\ No newline at end of file
meson_options.txt
已删除
100755 → 0
浏览文件 @
c7185b3a
###################################################################################
# #
# NAME: meson_options.txt #
# #
# AUTHOR: Mike Karlesky, Mark VanderVoord, Greg Williams. #
# WRITTEN BY: Michael Brockus. #
# #
# License: MIT #
# #
###################################################################################
option('with_examples',
type: 'feature', value : 'disabled',
description: 'Enable Unity for unit testing.'
)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录