Initialize
Continous integration / Tests (push) Canceled after 0s
Testing clients / Build beanstalkd (push) Canceled after 0s
Continous integration / Docker build (push) Canceled after 0s
Testing clients / Test Pheanstalk PHP (push) Canceled after 0s
Testing clients / Test Greenstalk Python (3.9) (push) Canceled after 0s
Testing clients / Test Pystalk Python (3.10) (push) Canceled after 0s
Continous integration / Tests (push) Canceled after 0s
Testing clients / Build beanstalkd (push) Canceled after 0s
Continous integration / Docker build (push) Canceled after 0s
Testing clients / Test Pheanstalk PHP (push) Canceled after 0s
Testing clients / Test Greenstalk Python (3.9) (push) Canceled after 0s
Testing clients / Test Pystalk Python (3.10) (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
fixsyms() {
|
||||
if test "`uname -s|tr A-Z a-z`" = darwin
|
||||
then egrep -v [.] | egrep ^_ | sed s/^_//
|
||||
else cat
|
||||
fi
|
||||
}
|
||||
|
||||
syms() {
|
||||
prefix=$1
|
||||
shift
|
||||
for f in "$@"
|
||||
do nm $f
|
||||
done | cut -d ' ' -f 3 | fixsyms | egrep ^$prefix
|
||||
}
|
||||
|
||||
ts=`syms cttest "$@" || true`
|
||||
bs=`syms ctbench "$@" || true`
|
||||
|
||||
printf '#include <stdint.h>\n'
|
||||
printf '#include "internal.h"\n'
|
||||
|
||||
for t in $ts
|
||||
do printf 'void %s(void);\n' $t
|
||||
done
|
||||
|
||||
for b in $bs
|
||||
do printf 'void %s(int);\n' $b
|
||||
done
|
||||
|
||||
printf 'Test ctmaintest[] = {\n'
|
||||
for t in $ts
|
||||
do printf ' {%s, "%s", 0, 0, 0, TmpDirPat},\n' $t $t
|
||||
done
|
||||
printf ' {.f = 0},\n'
|
||||
printf '};\n'
|
||||
|
||||
printf 'Benchmark ctmainbench[] = {\n'
|
||||
for b in $bs
|
||||
do printf ' {%s, "%s", 0, 0, 0, TmpDirPat},\n' $b $b
|
||||
done
|
||||
printf ' {.f = 0},\n'
|
||||
printf '};\n'
|
||||
Reference in New Issue
Block a user