annotate test/pack-tests.sh @ 217:87c695673522
dynload darwin/mach-o update:
- removed unnecessarily complex darwin loader interface, and sharing with dynload_unix now
- mach-o symbol resolving refactored:
* to handle symlinks, relative paths, paths with random casing
* loading lib when not already loaded, for API consistency with ELF and PE implementations
author |
Tassilo Philipp |
date |
Thu, 06 Apr 2017 12:00:36 +0200 |
parents |
3e629dc19168 |
children |
|
rev |
line source |
0
|
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
|