Skip to content

Commit 76cd8ed

Browse files
committed
CS-366: test binaries are missing in test clusters installed from packages
1 parent c54901c commit 76cd8ed

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

source/scripts/mk_dist

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ CreateRpm() # Arguments: package arch files
128128

129129
makearco=false
130130
makebin=false
131+
maketestbin=false
131132
makecommon=false
132133
makedoc=false
133134
makesgeee=false
@@ -166,6 +167,12 @@ while [ $ARGC -gt 0 ]; do
166167
shift
167168
ARGC=`expr $ARGC - 1`
168169
;;
170+
-testbin)
171+
echo "Creating tar file(s) of test binaries in testbin/"
172+
maketestbin=true
173+
shift
174+
ARGC=`expr $ARGC - 1`
175+
;;
169176
-common)
170177
echo "Creating tar file with common files of distribution"
171178
makecommon=true
@@ -381,6 +388,28 @@ if [ $makebin = true ]; then
381388
fi
382389
fi
383390

391+
if [ $maketestbin = true ]; then
392+
if [ "$SELECTED_ARCHS" = "" ]; then
393+
ErrUsage
394+
fi
395+
396+
# do any necessary postprocessing of the "testbin" package here
397+
if [ -f localext/$VDIR/mk_dist.private.bin ]; then
398+
echo executing commands from mk_dist.private.bin
399+
. ./localext/$VDIR/mk_dist.private.bin
400+
fi
401+
402+
cd $VDIR
403+
echo creating testbin tar.gz files for $SELECTED_ARCHS
404+
for i in $SELECTED_ARCHS; do
405+
ADIR="testbin/$i"
406+
filename=$BASEDIR/${PRODUCT}-${VERSION}-testbin-${i}.tar.gz
407+
echo Command: $TAR cvzf $filename $ADIR
408+
$TAR cvzf $filename $ADIR
409+
done
410+
cd ..
411+
fi
412+
384413
if [ -x /usr/bin/md5sum ]; then
385414
cd $BASEDIR
386415
/usr/bin/md5sum *.tar.gz *.pdf *.rpm >"$BASEDIR/${PRODUCT}-${VERSION}-md5sum.txt"

0 commit comments

Comments
 (0)