Changes in / [e72969a:03c0e44]
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
re72969a r03c0e44 172 172 echo "Archiving core dumps" 173 173 dir (BuildDir) { 174 if( fileExists 'tests/crashes' ) { 175 sh """${SrcDir}/tools/jenkins/archive-gen.sh""" 176 archiveArtifacts artifacts: "tests/crashes/**/*,lib/**/lib*.so*,setup.sh", fingerprint: true 177 } 174 sh """${SrcDir}/tools/jenkins/archive-gen.sh""" 175 archiveArtifacts artifacts: "tests/crashes/**/*,lib/**/lib*.so*,setup.sh", fingerprint: true 178 176 } 179 177 throw err -
tests/concurrent/.expect/sleep.txt
re72969a r03c0e44 1 1 start 2 fast loop 0.047 3 fast loop 0.094 4 fast loop 0.141 5 fast loop 0.188 6 fast loop 0.235 7 slow loop 0.277 8 fast loop 0.282 9 fast loop 0.329 10 fast loop 0.376 11 fast loop 0.423 12 fast loop 0.47 13 fast loop 0.517 14 slow loop 0.554 15 fast loop 0.564 16 fast loop 0.611 17 fast loop 0.658 18 fast loop 0.705 19 fast loop 0.752 20 fast loop 0.799 21 slow loop 0.831 22 fast loop 0.846 23 fast loop 0.893 24 fast loop 0.94 25 slow loop 1.108 2 26 done -
tests/concurrent/sleep.cfa
re72969a r03c0e44 7 7 } 8 8 9 volatile int counter = 0;10 11 9 thread fast_sleeper {}; 12 10 void main(fast_sleeper &) { … … 14 12 for(i; 20) { 15 13 sleep(wait); 16 __atomic_fetch_add( &counter, 1, __ATOMIC_RELAXED);14 sout | acquire | "fast loop" | ((1 + i) * wait); 17 15 } 18 16 } … … 22 20 Duration wait = 277`ms; 23 21 for(i; 4) { 22 24 23 sleep(wait); 25 int val = __atomic_add_fetch( &counter, -5, __ATOMIC_RELAXED ); 26 if(val < -9) abort | "Value reached negative value:" | val; 24 sout | acquire | "slow loop" | ((1 + i) * wait); 27 25 } 28 26 } -
tools/jenkins/setup.sh.in
re72969a r03c0e44 30 30 { 31 31 local elfout=$(readelf -d $1 | grep "RUNPATH") 32 regex= '\[/([[:alpha:][:digit:]@/_.-]+)\]'32 regex="\[/([[:alpha:]/@_-\.[:digit:]]+)\]" 33 33 if [[ $elfout =~ $regex ]]; then 34 34 local myRPath=${BASH_REMATCH[1]} … … 46 46 retlcldeps=() 47 47 while IFS= read -r line; do 48 regex1= '/([[:alpha:][:digit:]@/_.-]+)'49 regex2= '(libcfa[[:alpha:][:digit:].]+) => not found'50 regex3= 'linux-vdso.so.1'48 regex1="/([[:alpha:]/@_-\.[:digit:]]+)" 49 regex2="(libcfa[[:alpha:]\.[:digit:]]+) => not found" 50 regex3="linux-vdso.so.1" 51 51 if [[ $line =~ $regex1 ]]; then 52 52 retsysdeps+=(${BASH_REMATCH[1]}) … … 123 123 do 124 124 # find the test's name 125 regex= 'tests/crashes/[[[:alpha:]/-]+/([[:alpha:][:digit:]@/_.-]+)/exe'125 regex="tests/crashes/[[[:alpha:]/-]+/([[:alpha:]/\@_\-\.[:digit:]]+)/exe" 126 126 if [[ $pgm =~ $regex ]]; then 127 127 name=${BASH_REMATCH[1]}
Note: See TracChangeset
for help on using the changeset viewer.