Mercurial > pub > dyncall > dyncall
comparison test/pack-tests.sh @ 0:3e629dc19168
initial from svn dyncall-1745
author | Daniel Adler |
---|---|
date | Thu, 19 Mar 2015 22:24:28 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e629dc19168 |
---|---|
1 #!/bin/sh | |
2 # pack-script for embedded testing. | |
3 | |
4 DATE=`date +%s` | |
5 NAME="dyncall-tests-${DATE}" | |
6 | |
7 mkdir -p _work/${NAME} | |
8 printf "#!/bin/sh\n" >_work/${NAME}/run.sh | |
9 for I in $* ; do | |
10 cp $I/$I _work/${NAME} | |
11 printf "./$I\n" >>_work/${NAME}/run.sh | |
12 printf "%-20s <- %-20s\n" "$I" "$PWD/$I/$I" >>_work/${NAME}/CONTENTS.txt | |
13 done | |
14 mkdir -p _packed | |
15 chmod +x _work/${NAME}/run.sh | |
16 tar -cvzf _packed/${NAME}.tar.gz -C _work ${NAME} | |
17 printf "finished: tests are in ${PWD}/_packed/${NAME}.tar.gz, execute run-all.sh\n" | |
18 |