History

improved logging tests

Originally committed as revision 5491 to svn://svn.ffmpeg.org/ffmpeg/trunk

Måns Rullgård committed 20 years ago

Commit c8e9f801 parent 407ddb41 file · +11 −1Browse files

Unified · Split

configure+11−1
@@ -101,7 +101,14 @@ log(){ · 100 unmodified lines
101 echo "$@" >>$logfile101 echo "$@" >>$logfile
102}102}
103 103
104logfile(){
105 log BEGIN $1
106 cat -n $1 >>$logfile
107 log END $1
108}
109
104die(){110die(){
111 log "$@"
105 echo "$@"112 echo "$@"
106 rm -f $TMPC $TMPO $TMPE $TMPS $TMPH113 rm -f $TMPC $TMPO $TMPE $TMPS $TMPH
107 exit 1114 exit 1
@@ -168,6 +175,7 @@ add_extralibs(){ · 60 unmodified lines
168check_cc(){175check_cc(){
169 log check_cc "$@"176 log check_cc "$@"
170 cat >$TMPC177 cat >$TMPC
178 logfile $TMPC
171 log $cc $CFLAGS "$@" -c -o $TMPO $TMPC179 log $cc $CFLAGS "$@" -c -o $TMPO $TMPC
172 $cc $CFLAGS "$@" -c -o $TMPO $TMPC >>$logfile 2>&1180 $cc $CFLAGS "$@" -c -o $TMPO $TMPC >>$logfile 2>&1
173}181}
@@ -175,6 +183,7 @@ check_cc(){ · 1 unmodified line
175check_cpp(){183check_cpp(){
176 log check_cpp "$@"184 log check_cpp "$@"
177 cat >$TMPC185 cat >$TMPC
186 logfile $TMPC
178 log $cc $CFLAGS "$@" -E -o $TMPO $TMPC187 log $cc $CFLAGS "$@" -E -o $TMPO $TMPC
179 $cc $CFLAGS "$@" -E -o $TMPO $TMPC >>$logfile 2>&1188 $cc $CFLAGS "$@" -E -o $TMPO $TMPC >>$logfile 2>&1
180}189}
@@ -182,8 +191,9 @@ check_cpp(){ · 1 unmodified line
182check_ld(){191check_ld(){
183 log check_ld "$@"192 log check_ld "$@"
184 cat >$TMPC193 cat >$TMPC
194 logfile $TMPC
185 log $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs195 log $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs
186 $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>/dev/null 2>&1196 $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>$logfile 2>&1
187}197}
188 198
189check_cflags(){199check_cflags(){

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t