From cfec91c99eff2ed5d6e914b54ef81d9ddca78ca8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 27 Jul 2015 13:16:14 +0100 Subject: Test suite: Provide tests which check that all our various build operations run the right targets as expected (ie, that we are massaging the arguments to dpkg-buildpackage, and suppressing our clean target, etc., correctly). --- tests/tests/build-modes | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 tests/tests/build-modes (limited to 'tests/tests/build-modes') diff --git a/tests/tests/build-modes b/tests/tests/build-modes new file mode 100755 index 0000000..f01bc99 --- /dev/null +++ b/tests/tests/build-modes @@ -0,0 +1,28 @@ +#!/bin/bash +set -e +. tests/lib +. $troot/lib-build-modes + +bm-prep + +for act in \ + 'build' \ + 'build -S' \ + 'build -b' \ + 'build -B' \ + 'build -A' \ + 'build -F' \ + build-source \ +; do + bm-guess-e-source-e-targets "$act" + + case $act in + build-source) e_source=true; e_targets='' ;; + esac + + real_act="$act" + + bm-act-iterate +done + +echo ok. -- cgit v1.2.3