Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
喜羊羊3508
Dak
提交
bdc91b8f
D
Dak
项目概览
喜羊羊3508
/
Dak
大约 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Dak
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
bdc91b8f
编写于
7月 21, 2017
作者:
A
Ansgar Burchardt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
integration tests: try processing packages with `dak process-upload`
上级
064f09a6
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
15 addition
and
2 deletion
+15
-2
debian/rules
debian/rules
+2
-0
integration-tests/setup
integration-tests/setup
+3
-1
integration-tests/tests/0001-basic
integration-tests/tests/0001-basic
+10
-1
未找到文件。
debian/rules
浏览文件 @
bdc91b8f
...
...
@@ -13,6 +13,7 @@ ifneq ($(JENKINS_EXPORTS_DIR),)
mkdir -pv $(JENKINS_EXPORTS_DIR)/test-results
endif
mkdir -p debian/test-gnupghome
make -C tests/fixtures/packages
GNUPGHOME=$$(pwd)/debian/test-gnupghome py.test -v tests $(PYBUILD_EXTRA_ARGS)
./integration-tests/run-tests
endif
...
...
@@ -20,5 +21,6 @@ endif
# Replace with "debian/test-gnupghome/" in d/clean once
# debhelper (>= 9.20151116) can be used for dak
override_dh_auto_clean:
make -C tests/fixtures/packages clean
rm -fr debian/test-gnupghome
dh_auto_clean
integration-tests/setup
浏览文件 @
bdc91b8f
...
...
@@ -17,7 +17,8 @@ dak-setup() {
unset
PGDATABASE
(
cd
${
setupdir
}
;
./init_core
)
mkdir
${
DAKBASE
}
/etc
${
DAKBASE
}
/bin
mkdir
${
DAKBASE
}
/etc
${
DAKBASE
}
/bin
${
DAKBASE
}
/keyrings
${
DAKBASE
}
/tmp
ln
-s
${
DAK_ROOT
}
/templates
${
DAKBASE
}
/
export
DAK_CONFIG
=
"
${
DAKBASE
}
/etc/dak.conf"
(
cd
${
setupdir
}
;
./init_minimal_conf
)
>
${
DAK_CONFIG
}
...
...
@@ -27,6 +28,7 @@ dak-setup() {
ln
-s
${
DAK_ROOT
}
/dak/dak.py
${
DAKBASE
}
/bin/dak
dak update-db
--yes
dak init-dirs
}
dak-cleanup
()
{
...
...
integration-tests/tests/0001-basic
浏览文件 @
bdc91b8f
...
...
@@ -9,7 +9,7 @@ set -u
# add a unstable suite with amd64
dak admin architecture add amd64 AMD64
dak admin suite add unstable
""
codename
=
sid
dak admin suite-architecture add unstable all amd64
dak admin suite-architecture add unstable
source
all amd64
dak admin suite-component add unstable main contrib non-free
(
...
...
@@ -32,3 +32,12 @@ dak admin suite-component add unstable main contrib non-free
co_unstable
=
"
$(
dak control-override
-l
unstable
)
"
assert-equal
"dak control-override -l unstable"
"
${
co_unstable
}
"
""
)
(
packages
=
${
DAK_ROOT
:?
}
/tests/fixtures/packages
ln
-sf
${
packages
:?
}
/gpg/pubring.gpg
${
DAKBASE
:?
}
/keyrings/upload-keyring.gpg
dak import-keyring
-U
"%s"
${
DAKBASE
}
/keyrings/upload-keyring.gpg
cp
${
packages
:?
}
/nonfree-package_
*
${
packages
:?
}
/package_
*
${
DAKBASE
}
/tmp
dak process-upload
-d
${
DAKBASE
}
/tmp
--automatic
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录