aboutsummaryrefslogtreecommitdiff
path: root/tests/submit
diff options
context:
space:
mode:
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