aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-07-18 13:36:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-07-18 13:36:04 +0300
commitbf4822a17eed8bdaf9d337caf806c63c82b06a89 (patch)
tree5885d17a2d8d88e6b0f18f44c4bc3871670534e2 /tests/manifest
parent0e7c846f7b971366ea0dc5fb81477165495bebb9 (diff)
Make buildtab target to be non-optional
Diffstat (limited to 'tests/manifest')
-rw-r--r--tests/manifest/task-response.test2
-rw-r--r--tests/manifest/task.test24
2 files changed, 14 insertions, 12 deletions
diff --git a/tests/manifest/task-response.test b/tests/manifest/task-response.test
index ff5ae88..58c880c 100644
--- a/tests/manifest/task-response.test
+++ b/tests/manifest/task-response.test
@@ -24,6 +24,7 @@ test.options += -ts
version: 1.0
repository: http://pkg.example.org/1/math
machine: windows_10-msvc_14
+ target: x86_64-microsoft-win32-msvc14.0
EOF
: no-challenge
@@ -37,6 +38,7 @@ test.options += -ts
version: 1.0
repository: http://pkg.example.org/1/math
machine: windows_10-msvc_14
+ target: x86_64-microsoft-win32-msvc14.0
EOF
}
diff --git a/tests/manifest/task.test b/tests/manifest/task.test
index 95bb749..c2783cf 100644
--- a/tests/manifest/task.test
+++ b/tests/manifest/task.test
@@ -24,18 +24,6 @@ test.options += -t
warning-regex: '^warning: ' '^.+: warning: '
EOF
- : no-target
- :
- $* <<EOF >>EOF
- : 1
- name: libfoo
- version: 1.0
- repository: http://pkg.example.org/1/math
- machine: windows_10-msvc_14
- config: config.cc.coptions=/Z7 config.cc.loptions=/DEBUG
- warning-regex: '^warning: ' '^.+: warning: '
- EOF
-
: no-config-no-regex
:
$* <<EOF >>EOF
@@ -58,6 +46,7 @@ test.options += -t
version: 1.0
repository: http://pkg.example.org/1/math
machine: windows
+ target: x86_64-microsoft-win32-msvc14.0
config: abc=
EOF
@@ -69,6 +58,7 @@ test.options += -t
version: 1.0
repository: http://pkg.example.org/1/math
machine: windows
+ target: x86_64-microsoft-win32-msvc14.0
config: abc='a "b '"d\e x y="
EOF
}
@@ -320,4 +310,14 @@ EOI
version: 1.0
repository: http://pkg.example.org/1/math
EOI
+
+ : target
+ :
+ $* <<EOI 2>'stdin:6:1: error: no task target specified' == 1
+ : 1
+ name: libfoo
+ version: 1.0
+ repository: http://pkg.example.org/1/math
+ machine: windows_10-msvc_14
+ EOI
}