]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_build_testrdepends
VM: adjusted for new VB exposing mounted host directories under /media
[neurodebian.git] / tools / nd_build_testrdepends
index bc1369604b5b84501e8cff657836b5f27ed95e84..a765ee84a9a023d1b96e5ca35ecb3b2970e72420 100755 (executable)
@@ -5,7 +5,8 @@ set -u
 # no failures
 set -e
 
-CMD=echo
+CMD=
+#echo
 
 family=$1
 dist=$2
@@ -13,13 +14,13 @@ arch=$3      # limit to 1 for now
 
 dscfile=$4
 dscfilef=$(readlink -f $dscfile)
-dscfilebase=${dscfilef%%.dsc}
+dscfilef_base=${dscfilef%%.dsc}
 
 pkg=${dscfile%_*}
 
 #? TODO -- should be a parameter as well?
 
-testdir=$PWD/$pkg-$arch.test-bdepends
+testdir=${dscfilef_base}_$arch.testrdepends.$family-$dist
 bindir=$testdir/bin
 debdir=$testdir/debs
 srcdir=$testdir/srcs
@@ -49,9 +50,9 @@ chmod a+x $bindir/D00add_custom_repo
 
 echo "I: Going throught the packages and testing the builds"
 cd $srcdir
-summary_file=${dscfilebase}_$arch.$family-$dist.test-rdeps
+summary_file=${testdir}.summary
 echo -e "\nTesting builds against $dscfile" >> $summary_file
-for dsc in *dipy*.dsc; do
+for dsc in *.dsc; do
        echo " I: Building $dsc with native versions"
        src=${dsc%%_*}
        dscbase=${dsc%%.dsc}
@@ -63,5 +64,5 @@ for dsc in *dipy*.dsc; do
                --hookdir=$bindir --bindmount=$testdir \
                && new=ok || new="FAILED $newbuildsdir/${dscbase}_$arch.build"
        mv ${dscbase}_$arch.build $newbuildsdir
-       printf '%-20s\t%5s\t%5s\n' $dsc "$old" "$new" >> $summary_file
+       printf '%-40s\t%5s\t%5s\n' $dsc "$old" "$new" >> $summary_file
 done