chiark / gitweb /
test suite: Introduce t-ok.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Jan 2017 20:35:49 +0000 (20:35 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 4 Jan 2017 22:11:07 +0000 (22:11 +0000)
No functional change.

 perl -i~ -pe 's/^echo ok\.$/t-ok/' tests/tests/*[^~]
 perl -i~ -pe 's/^echo ok\.$/t-ok/' tests/setup/*[^~]
 perl -i~ -pe 's/^echo done\.$/t-ok/' tests/tests/*[^~]
 perl -i~ -pe 's/^echo done\.$/t-ok/' tests/setup/*[^~]

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
52 files changed:
tests/lib
tests/setup/examplegit
tests/setup/gnupg
tests/tests/absurd-gitapply
tests/tests/build-modes
tests/tests/build-modes-gbp
tests/tests/build-modes-sbuild
tests/tests/clone-clogsigpipe
tests/tests/clone-nogit
tests/tests/clone-reprepro
tests/tests/debpolicy-dbretry
tests/tests/debpolicy-newreject
tests/tests/distropatches-reject
tests/tests/drs-push-masterupdate
tests/tests/drs-push-rejects
tests/tests/dsd-clone-drs
tests/tests/fetch-localgitonly
tests/tests/fetch-somegit-notlast
tests/tests/gbp-orig
tests/tests/gitconfig
tests/tests/import-dsc
tests/tests/import-native
tests/tests/import-nonnative
tests/tests/import-tarbomb
tests/tests/inarchivecopy
tests/tests/mirror
tests/tests/mirror-private
tests/tests/mismatches-contents
tests/tests/mismatches-dscchanges
tests/tests/multisuite
tests/tests/oldnewtagalt
tests/tests/orig-include-exclude
tests/tests/orig-include-exclude-chkquery
tests/tests/overwrite-chkclog
tests/tests/overwrite-junk
tests/tests/overwrite-splitbrains
tests/tests/overwrite-version
tests/tests/push-buildproductsdir
tests/tests/push-newpackage
tests/tests/push-nextdgit
tests/tests/quilt
tests/tests/quilt-gbp
tests/tests/quilt-gbp-build-modes
tests/tests/quilt-gbp-build-modes-sbuild
tests/tests/quilt-singlepatch
tests/tests/quilt-splitbrains
tests/tests/rpush
tests/tests/spelling
tests/tests/tag-updates
tests/tests/trustingpolicy-replay
tests/tests/unrepresentable
tests/tests/version-opt

index d075bc7..b776305 100644 (file)
--- a/tests/lib
+++ b/tests/lib
@@ -349,6 +349,10 @@ t-git-dir-check () {
        esac
 }
 
+t-ok () {
+       echo ok.
+}
+
 t-rm-dput-dropping () {
        rm -f $tmp/${p}_${v}_*.upload
 }
index 98900d0..112e27a 100755 (executable)
@@ -50,4 +50,4 @@ push-to master sid
 
 t-setup-done 'p v suitespecs majorv revision' "aq git mirror $p"
 
-echo ok.
+t-ok
index 97cdb64..d23ecfa 100755 (executable)
@@ -12,4 +12,4 @@ gpg --list-secret
 
 t-setup-done 'GNUPGHOME' 'gnupg'
 
-echo ok.
+t-ok
index c7eea86..90c44be 100755 (executable)
@@ -13,4 +13,4 @@ t-dgit clone $p
 cd $p
 grep moo moo
 
-echo ok.
+t-ok
index 18ead35..c476ec8 100755 (executable)
@@ -32,4 +32,4 @@ for act in                                    \
        bm-act-iterate
 done
 
-echo ok.
+t-ok
index e8d9c16..50a6288 100755 (executable)
@@ -36,4 +36,4 @@ for act in                                    \
        bm-act-iterate
 done
 
-echo ok.
+t-ok
index f030f71..19dcc8a 100755 (executable)
@@ -15,4 +15,4 @@ real_act="$act"
 bm-guess-e-source-e-targets "$act"
 bm-act-iterate
 
-echo ok.
+t-ok
index ff5f303..4465cf3 100755 (executable)
@@ -7,4 +7,4 @@ t-git-none
 
 t-dgit clone $p
 
-echo ok.
+t-ok
index 477eb55..e99dac3 100755 (executable)
@@ -22,4 +22,4 @@ t-dgit push
 
 t-pushed-good dgit/sid
 
-echo ok.
+t-ok
index 62b4c8d..063a138 100755 (executable)
@@ -30,4 +30,4 @@ t-dgit fetch unstable,stable
 t-refs-same-start
 t-refs-same refs/remotes/dgit/sid,stable refs/remotes/dgit/sid
 
-echo ok.
+t-ok
index b2d8093..a9f2334 100755 (executable)
@@ -64,4 +64,4 @@ ls $tmp/sqlite3.rolled-back
 
 t-policy-admin list-taints | tee $tmp/taints-list | grep $autotaint
 
-echo ok.
+t-ok
index 4da568c..1fa6751 100755 (executable)
@@ -118,4 +118,4 @@ t-expect-push-fail \
     'Reason: rewound suite sid; --deliberately-not-fast-forward specified' \
 t-dgit push
 
-echo ok.
+t-ok
index 31a3797..75f43db 100755 (executable)
@@ -78,4 +78,4 @@ DEB_VENDOR=test-dummy-aside \
 expect-fail-distro-series DEB_VENDOR \
 t-dgit clone $p
 
-echo done.
+t-ok
index 9d2e632..c8a5c5a 100755 (executable)
@@ -47,4 +47,4 @@ git commit --allow-empty -m 'Has no common ancestor'
 
 push_and_check +HEAD:master
 
-echo done.
+t-ok
index f87cbdc..f829dc9 100755 (executable)
@@ -191,4 +191,4 @@ mustfail "not in permissions list although in keyring" $push_spec
 prep_dm_mangle ''
 mustsucceed $push_spec # succeeds
 
-echo ok.
+t-ok
index 16bfa2e..4346579 100755 (executable)
@@ -13,4 +13,4 @@ t-dgit clone-dgit-repos-server drs-cloned
 cd drs-cloned
 ls -al infra/dgit-repos-server
 
-echo ok.
+t-ok
index b0ade5f..7d603b2 100755 (executable)
@@ -17,4 +17,4 @@ t-dgit pull
 t-cloned-fetched-good
 t-has-ancestor $old
 
-echo ok.
+t-ok
index 15b9404..63abe8a 100755 (executable)
@@ -12,4 +12,4 @@ cd $p
 t-cloned-fetched-good
 t-has-ancestor debian/3-1
 
-echo ok.
+t-ok
index 29dd457..beea121 100755 (executable)
@@ -74,4 +74,4 @@ done
 cd $tmp
 diff -ruN gbp-output/tar-x tar-x
 
-echo done.
+t-ok
index 263d733..12b342b 100755 (executable)
@@ -35,4 +35,4 @@ t-dgit clean
 
 t-dgit -cdgit.default.clean-mode=none clean
 
-echo ok.
+t-ok
index 98092a2..b86eef6 100755 (executable)
@@ -96,4 +96,4 @@ test "x$mb" = x
 t-expect-fail 'signature check failed' \
 t-dgit import-dsc --require-valid-signature $dsc2 +$branch
 
-echo ok.
+t-ok
index d07cd9d..1e09343 100755 (executable)
@@ -66,4 +66,4 @@ for v in $versions; do
        lastv_imp=$this_imp
 done
 
-echo ok.
+t-ok
index d324172..3568563 100755 (executable)
@@ -14,4 +14,4 @@ t-import-chk example 1.0-1
 # 3.0 (quilt), single-debian-patch, one orig
 t-import-chk sunxi-tools 1.2-2.~~dgittest
 
-echo done.
+t-ok
index c0bc4c4..9b7f65a 100755 (executable)
@@ -46,4 +46,4 @@ echo SPONG >.pc/SPONG
 tar zvcf ../$orig .
 mangle2
 
-echo done.
+t-ok
index b34ba33..b1e0c5f 100755 (executable)
@@ -76,4 +76,4 @@ cd ..
 
 copy-check 2.1 testing
 
-echo ok.
+t-ok
index 95c1cdb..4947688 100755 (executable)
@@ -77,4 +77,4 @@ done
 
 t-check-mirrored
 
-echo done.
+t-ok
index 4033835..c26ba89 100755 (executable)
@@ -23,4 +23,4 @@ t-dgit push --new
 t-check-not-mirrored
 t-files-notexist $reposmirror/$p.*
 
-echo ok.
+t-ok
index b7c53f2..ea0d724 100755 (executable)
@@ -21,4 +21,4 @@ t-dgit build-source
 t-expect-fail 'debian/TRASH' \
 t-dgit push --new
 
-echo ok.
+t-ok
index 9bb554e..85c7086 100755 (executable)
@@ -31,4 +31,4 @@ t-dgit -wgf build-source
 
 t-dgit -wgf push --new
 
-echo ok.
+t-ok
index 0a580be..d39475b 100755 (executable)
@@ -54,4 +54,4 @@ multi-good
 
 t-has-parent-or-is HEAD $rcombined
 
-echo ok.
+t-ok
index cb270b2..098fe19 100755 (executable)
@@ -21,5 +21,5 @@ for count in 1 2; do
        test-push "newtag $count"
 done
 
-echo ok.
+t-ok
 
index 5617a1e..a37f997 100755 (executable)
@@ -18,4 +18,4 @@ test-push-1 1.1-1.3 '' stable
 t-expect-fail E:'archive contains .* with different checksum' \
 test-push-2 --new
 
-echo done.
+t-ok
index 59fc80f..f8eac57 100755 (executable)
@@ -30,4 +30,4 @@ test_push_2_hook=update-files_in_archive
 
 . $troot/lib-orig-include-exclude
 
-echo done.
+t-ok
index 25356a8..3544390 100755 (executable)
@@ -36,4 +36,4 @@ git revert --no-edit 'HEAD^{/Break changelog}'
 
 t-dgit push --overwrite stable
 
-echo done.
+t-ok
index 2f8fd70..e11d1f8 100755 (executable)
@@ -19,4 +19,4 @@ t-dgit -wgf build
 
 t-dgit push --overwrite=1.2 stable
 
-echo ok.
+t-ok
index 725357d..0ef03f6 100755 (executable)
@@ -24,4 +24,4 @@ t-dgit --quilt=gbp --dgit-view-save=split.p --overwrite push
 
 t-gbp-pushed-good
 
-echo ok.
+t-ok
index 34ee014..34301ac 100755 (executable)
@@ -17,4 +17,4 @@ t-dgit push stable
 
 t-dgit push --overwrite=1.2 stable
 
-echo ok.
+t-ok
index 987c081..505d105 100755 (executable)
@@ -28,4 +28,4 @@ t-dgit --build-products-dir=../bpd push
 
 t-pushed-good dgit/sid
 
-echo ok.
+t-ok
index d0f3f35..79355e3 100755 (executable)
@@ -27,4 +27,4 @@ t-dgit push --new
 
 t-pushed-good master
 
-echo ok.
+t-ok
index 8d4a36f..d0436ab 100755 (executable)
@@ -22,4 +22,4 @@ t-dgit push
 
 t-pushed-good dgit/sid
 
-echo ok.
+t-ok
index 0462f1a..1a921b3 100755 (executable)
@@ -93,4 +93,4 @@ do
        mv ../this.cmp ../last.cmp
 done
 
-echo ok.
+t-ok
index 38d2489..3ef89e8 100755 (executable)
@@ -58,4 +58,4 @@ t-dgit --quilt=gbp --clean=git --dgit-view-save=split.b build-source
 
 test-push-2
 
-echo ok.
+t-ok
index b89c26e..cd77dab 100755 (executable)
@@ -10,4 +10,4 @@ bm-gbp-example-acts                           \
        'gbp-build -S'                          \
        'gbp-build -b'                          \
 
-echo ok.
+t-ok
index 8da93d3..4c86bfe 100755 (executable)
@@ -9,4 +9,4 @@ t-restrict x-dgit-schroot-build
 bm-gbp-example-acts                            \
        'sbuild -c build --arch-all'            \
 
-echo ok.
+t-ok
index 6a04329..3b6e228 100755 (executable)
@@ -36,4 +36,4 @@ debian-changes
 series
 END
 
-echo ok.
+t-ok
index 112bc39..9f0ae5f 100755 (executable)
@@ -137,4 +137,4 @@ t-commit dpmish-stable 1.0-6 $suite
 
 want-success dpm --new
 
-echo ok.
+t-ok
index c627788..71bbe2b 100755 (executable)
@@ -28,4 +28,4 @@ t-dgit --ssh=$troot/ssh rpush somehost:$tmp/$p
 cd $tmp/$p
 t-pushed-good dgit/sid
 
-echo ok.
+t-ok
index 74541b7..ed1290c 100755 (executable)
@@ -13,4 +13,4 @@ set -e
 
 test $rc = 1
 
-echo ok.
+t-ok
index 8c6ab09..824fd1e 100755 (executable)
@@ -34,4 +34,4 @@ t-refs-same-start
 t-ref-same-exact $tagref
 fetch-check
 
-echo done.
+t-ok
index 2039ec6..ad731f5 100755 (executable)
@@ -82,4 +82,4 @@ t-dgit push
 attempt-replay "does not declare previously tags/$tagpfx/$v"
 
 
-echo ok.
+t-ok
index 5b3e139..0d02c6a 100755 (executable)
@@ -49,4 +49,4 @@ badly-2
 start
 attempt
 
-echo ok.
+t-ok
index 93c6a45..22c35e7 100755 (executable)
@@ -29,4 +29,4 @@ done
 
 fgrep 'Update to version 1.1' ../${p}_${v}_source.changes
 
-echo ok.
+t-ok