aboutsummaryrefslogtreecommitdiff
path: root/tests/submit
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-08-23 22:29:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-08-28 21:46:41 +0300
commit8a094bb0481a9c53646cc15db2e8acecafc3d10c (patch)
tree4fd7012b6a26eb852d42fba8b52bfcf8f1cf2fdd /tests/submit
parent7e0e141273032c7afc1a9129512aa42c672fcf5d (diff)
Add basic support for CI request handling
Diffstat (limited to 'tests/submit')
-rw-r--r--tests/submit/buildfile2
-rw-r--r--tests/submit/submit-dir.test12
2 files changed, 8 insertions, 6 deletions
diff --git a/tests/submit/buildfile b/tests/submit/buildfile
index 46e38ad..32bb44e 100644
--- a/tests/submit/buildfile
+++ b/tests/submit/buildfile
@@ -7,6 +7,8 @@ common{*}: extension = test
dir = ../../brep/handler/submit/
+include $dir
+
commons = data
./: test{* -{$commons}} common{$commons} {*/ -test/}{**} \
diff --git a/tests/submit/submit-dir.test b/tests/submit/submit-dir.test
index 7fa7341..055449a 100644
--- a/tests/submit/submit-dir.test
+++ b/tests/submit/submit-dir.test
@@ -22,14 +22,14 @@
: success
:
{
- test.arguments += $checksum
+ test.arguments += $data_dir
: simulate
:
{
$clone_root_data;
- echo "simulate: success" >+$checksum/request.manifest;
+ echo "simulate: success" >+$data_dir/request.manifest;
$* >>"EOO";
: 1
@@ -38,7 +38,7 @@
reference: $checksum
EOO
- test -d $checksum != 0
+ test -d $data_dir != 0
}
: for-real
@@ -58,14 +58,14 @@
: failure
:
{
- test.arguments += $checksum
+ test.arguments += $data_dir
: bad-archive
:
{
$clone_root_data_clean;
- echo "junk" >=$checksum/libhello-0.1.0.tar.gz;
+ echo "junk" >=$data_dir/libhello-0.1.0.tar.gz;
$* >>"EOO"
: 1
@@ -80,7 +80,7 @@
{
$clone_root_data_clean;
- echo "simulate: fly" >+$checksum/request.manifest;
+ echo "simulate: fly" >+$data_dir/request.manifest;
$* >>"EOO"
: 1