aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-18 12:16:10 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-18 12:25:42 +0300
commitd81b21e46f325d0c12df3054fe08aa29bb1061f3 (patch)
treec1d6ac728d3575c840d24e204023e61bffb808fa /tests/manifest
parent21036163f37ba0d60d47628b7139ed13f34ef458 (diff)
Add support for task manifest trust value
Diffstat (limited to 'tests/manifest')
-rw-r--r--tests/manifest/task.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/manifest/task.test b/tests/manifest/task.test
index 09777b1..cbb4598 100644
--- a/tests/manifest/task.test
+++ b/tests/manifest/task.test
@@ -16,6 +16,8 @@ test.options += -t
name: libfoo
version: 1.0
repository: http://pkg.example.org/1/math
+ trust: AB:0D:3F:C1:B0:13:E4:0E:AD:4A:08:06:AE:F3:85:DB:E2:27:5F:83:11:47:A2:7\
+ 8:64:3C:73:60:F8:66:3A:A4
machine: windows_10-msvc_14
target: x86_64-microsoft-win32-msvc14.0
config: config.cc.coptions=/Z7 config.cc.loptions=/DEBUG
@@ -68,6 +70,19 @@ test.options += -t
config: abc='a "b '"d\e x y="
EOF
}
+
+ : trust-yes
+ :
+ $* <<EOF >>EOF
+ : 1
+ name: libfoo
+ version: 1.0
+ repository: http://pkg.example.org/1/math
+ trust: yes
+ machine: windows_10-msvc_14
+ target: x86_64-microsoft-win32-msvc14.0
+ config: config.cc.coptions=/Z7 config.cc.loptions=/DEBUG
+ EOF
}
: redefinition
@@ -210,6 +225,13 @@ test.options += -t
EOI
}
}
+
+ : trust
+ :
+ $* <<EOI 2>'stdin:2:8: error: invalid repository certificate fingerprint' == 1
+ : 1
+ trust: abc
+ EOI
}
: unknown-name