cease shipping mtests’ binaries, not feasible due to sheer size
authormirabilos <tg@debian.org>
Fri, 7 Dec 2018 22:16:42 +0000 (23:16 +0100)
committermirabilos <mirabilos@evolvis.org>
Fri, 7 Dec 2018 22:16:42 +0000 (23:16 +0100)
(also, would only partially exercise the code, not the main program)

perhaps we could do a “superficial” test of the batch converter
under valgrind, but… this sounds a bit meh and not worth the
effort (developer and QA infrastructure both)

debian/buildtest
debian/rules

index 8863bec..af08fe2 100644 (file)
@@ -10,30 +10,9 @@ objdir=$(perl -MDebian::Debhelper::Dh_Buildsystems -e \
     'buildsystems_init(); print load_buildsystem("cmake", "configure")->get_builddir();')
 topdir=$(realpath .)
 
-case $1 {
-(run)
-       ;;
-(install)
-       dp=debian/.debhelper/musescore/dbgsym-root/usr/lib/debug/musescore
-       mkdir -p $dp
-       print -r -- "$objdir" >"$dp/objdir"
-       dp=$(realpath $dp)
-       cd "$objdir"
-       find mtest -type f | \
-           grep '/tst_[a-zA-Z0-9_]*$' | \
-           cpio -pdlu "$dp/"
-       print -ru2 -- "I: installed mtest executables for autopkgtests"
-       exit 0
-       ;;
-(*)
-       print -ru2 -- "E: unknown mode <$1>"
-       exit 1 ;;
-}
-
 # parse DEB_BUILD_OPTIONS
 j=
 J=
-shift
 for i in "$@"; do
        if [[ $i = parallel ]]; then
                nproc=$(nproc) || nproc=1
index 211adfa..4747dcd 100755 (executable)
@@ -44,7 +44,7 @@ override_dh_auto_build:
 
 override_dh_auto_test:
 ifeq (,$(findstring nocheck,${DEB_BUILD_OPTIONS}))
-       mksh debian/buildtest run ${DEB_BUILD_OPTIONS}
+       mksh debian/buildtest ${DEB_BUILD_OPTIONS}
 else
        @echo 'I: tests disabled'
 endif
@@ -56,5 +56,3 @@ override_dh_install-indep:
        cd debian/musescore-common/usr/share/mscore-* && \
            mkdir -p sound && \
            ln -sf ../../sounds/sf2 ../../sounds/sf3 ../../sounds/sfz sound/
-       # add mtest executables to dbgsym package for as-installed tests
-       mksh debian/buildtest install