Skip to content

Commit 65ef9bc

Browse files
committed
fix tests directory creation
1 parent ab5e5df commit 65ef9bc

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

prep_linux.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -e
1+
#!/usr/bin/env bash
22
ver=$(fgrep '#define VERSION ' stringtie.cpp)
33
ver=${ver#*\"}
44
ver=${ver%%\"*}
@@ -9,12 +9,12 @@ echo "preparing $linpack.tar.gz"
99
echo "-------------------"
1010
/bin/rm -rf $linpack
1111
/bin/rm -f $linpack.tar.gz
12-
mkdir $linpack
12+
mkdir -p $linpack/tests
1313
cd $srcpack
1414
make clean
1515
make -j4 static-cpp
16-
cp LICENSE README.md run_tests.sh stringtie prepDE.py prepDE.py3 ../$linpack/
17-
#cp -r tests_exp_out ../$linpack/
16+
cp -p LICENSE README.md run_tests.sh stringtie prepDE.py prepDE.py3 ../$linpack/
17+
cp -p tests/README.md ../$linpack/tests/
1818
cd ..
1919
tar cvfz $linpack.tar.gz $linpack
2020
ls -l $linpack.tar.gz

prep_mac.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22
ver=$(fgrep '#define VERSION ' stringtie.cpp)
33
ver=${ver#*\"}
44
ver=${ver%%\"*}
@@ -8,10 +8,11 @@ echo "preparing $macpack.tar.gz"
88
echo "-------------------"
99
/bin/rm -rf $macpack
1010
/bin/rm -f $macpack.tar.gz
11-
mkdir $macpack
11+
mkdir -p $macpack/tests
1212
make clean
1313
make release
1414
cp -p LICENSE README.md run_tests.sh stringtie prepDE.py prepDE.py3 $macpack/
15+
cp -p tests/README.md $macpack/tests/
1516
#cp -r tests_exp_out $macpack/
1617
tar cvfz $macpack.tar.gz $macpack
1718
ls -l $macpack.tar.gz

prep_source.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ echo "preparing $pack.tar.gz"
99
echo "-------------------"
1010
/bin/rm -rf $pack
1111
/bin/rm -f $pack.tar.gz
12-
mkdir $pack
13-
mkdir $pack/gclib
12+
mkdir -p $pack/gclib
13+
mkdir -p $pack/tests
1414
#cd htslib
1515
#make clean
1616
#/bin/rm -f xlibs config.h lzma bzip2 libdeflate
@@ -34,6 +34,6 @@ gldir=stringtie-$ver/gclib/
3434
cp Makefile LICENSE README.md run_tests.sh stringtie.cpp prepDE.py prepDE.py3 {rlink,bundle,tablemaker,tmerge}.{h,cpp} $pack/
3535
cp ./gclib/{GVec,GList,khashl,GHashMap}.hh ./gclib/GBitVec.h ./gclib/xxhash.h ./gclib/wyhash.h $gldir
3636
cp ./gclib/{GArgs,GStr,GSam,GBase,gdna,codons,gff,GFaSeqGet,GFastaIndex,proc_mem,GThreads}.{h,cpp} $gldir
37-
#cp -r tests_exp_out $pack/
37+
cp ./tests/README.md $pack/tests/
3838
tar cvfz $pack.tar.gz $pack
3939
ls -l $pack.tar.gz

run_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function unpack_test_data() {
1010
fi
1111
echo "..unpacking test data.."
1212
echo
13+
mkdir -p $tdir
1314
tar -xzf "$ftests" -C $tdir/ --strip-components=1
1415
if [ ! -f $tdir/human-chr19_P.gff ]; then
1516
echo "Error: invalid test data archive?"

0 commit comments

Comments
 (0)