From 8a094bb0481a9c53646cc15db2e8acecafc3d10c Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 23 Aug 2018 22:29:35 +0300 Subject: Add basic support for CI request handling --- tests/submit/buildfile | 2 ++ tests/submit/submit-dir.test | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'tests/submit') 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 -- cgit v1.1