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
101101 echo "$@" >>$logfile
102102 }
103103
104+logfile(){
105+ log BEGIN $1
106+ cat -n $1 >>$logfile
107+ log END $1
108+}
109+
104110 die(){
111+ log "$@"
105112 echo "$@"
106113 rm -f $TMPC $TMPO $TMPE $TMPS $TMPH
107114 exit 1
@@ -168,6 +175,7 @@ add_extralibs(){ · 60 unmodified lines
168175 check_cc(){
169176 log check_cc "$@"
170177 cat >$TMPC
178+ logfile $TMPC
171179 log $cc $CFLAGS "$@" -c -o $TMPO $TMPC
172180 $cc $CFLAGS "$@" -c -o $TMPO $TMPC >>$logfile 2>&1
173181 }
@@ -175,6 +183,7 @@ check_cc(){ · 1 unmodified line
175183 check_cpp(){
176184 log check_cpp "$@"
177185 cat >$TMPC
186+ logfile $TMPC
178187 log $cc $CFLAGS "$@" -E -o $TMPO $TMPC
179188 $cc $CFLAGS "$@" -E -o $TMPO $TMPC >>$logfile 2>&1
180189 }
@@ -182,8 +191,9 @@ check_cpp(){ · 1 unmodified line
182191 check_ld(){
183192 log check_ld "$@"
184193 cat >$TMPC
194+ logfile $TMPC
185195 log $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs
186− $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>/dev/null 2>&1
196+ $cc $CFLAGS $LDFLAGS "$@" -o $TMPE $TMPC $extralibs >>$logfile 2>&1
187197 }
188198
189199 check_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