Commit bba6afa6 by Benjamin Kosnik Committed by Benjamin Kosnik

check_performance: Tweaks.


2005-02-22  Benjamin Kosnik  <bkoz@redhat.com>

	* scripts/check_performance: Tweaks.

	* testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
	output file with extension that clean rules can find.

From-SVN: r95440
parent 744b12b6
2005-02-22 Benjamin Kosnik <bkoz@redhat.com>
* scripts/check_performance: Tweaks.
* testsuite/27_io/basic_ostream/inserters_other/wchar_t/2.cc: Name
output file with extension that clean rules can find.
2005-02-22 Richard Henderson <rth@redhat.com> 2005-02-22 Richard Henderson <rth@redhat.com>
PR libstdc++/20091 PR libstdc++/20091
......
...@@ -32,42 +32,50 @@ SH_FLAG="-Wl,--rpath -Wl,$BUILD_DIR/../../gcc \ ...@@ -32,42 +32,50 @@ SH_FLAG="-Wl,--rpath -Wl,$BUILD_DIR/../../gcc \
-Wl,--rpath -Wl,$BUILD_DIR/src/.libs" -Wl,--rpath -Wl,$BUILD_DIR/src/.libs"
ST_FLAG="-static" ST_FLAG="-static"
LINK=$SH_FLAG LINK=$SH_FLAG
CXX="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS -DNOTHREAD $LINK" CXX="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS $LINK"
CXX_THREAD="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS $THREAD_FLAG $LINK"
TESTS_FILE="testsuite_files_performance" TESTS_FILE="testsuite_files_performance"
for NAME in `cat $TESTS_FILE` for NAME in `cat $TESTS_FILE`
do do
RUN=true RUN=true
# TEST_S == single thread
# TEST_B == do both single and multi-thread
# TEST_T == multi-thread
for CYCLE in `sed -n 's,.*\(TEST_[SB][0-9]*\)$,\1,p' $SRC_DIR/testsuite/$NAME` for CYCLE in `sed -n 's,.*\(TEST_[SB][0-9]*\)$,\1,p' $SRC_DIR/testsuite/$NAME`
do do
RUN=false RUN=false
echo $NAME $CYCLE echo $NAME $CYCLE
FILE_NAME="`basename $NAME`" FILE_NAME="`basename $NAME`"
EXE_NAME="`echo $FILE_NAME-$CYCLE | sed 's/cc$/exe/'`" FILE_NAME="`echo $FILE_NAME | sed 's/.cc//g'`"
$CXX -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME EXE_NAME="`echo $FILE_NAME-$CYCLE.exe`"
$CXX -DNOTHREAD -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME
if [ -f $EXE_NAME ]; then
./$EXE_NAME ./$EXE_NAME
echo "" fi
done done
for CYCLE in `sed -n 's,.*\(TEST_[TB][0-9]*\)$,\1,p' $SRC_DIR/testsuite/$NAME` for CYCLE in `sed -n 's,.*\(TEST_[TB][0-9]*\)$,\1,p' $SRC_DIR/testsuite/$NAME`
do do
RUN=false RUN=false
echo $NAME $CYCLE THREAD echo $NAME $CYCLE thread
FILE_NAME="`basename $NAME`" FILE_NAME="`basename $NAME`"
EXE_NAME="`echo $FILE_NAME-$CYCLE | sed 's/cc$/exe/'`" FILE_NAME="`echo $FILE_NAME | sed 's/.cc//g'`"
$CXX_THREAD -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME EXE_NAME="`echo $FILE_NAME-$CYCLE.exe`"
$CXX $THREAD_FLAG -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME
if [ -f $EXE_NAME ]; then
./$EXE_NAME ./$EXE_NAME
echo "" fi
done done
if $RUN; then if $RUN; then
echo $NAME echo $NAME
FILE_NAME="`basename $NAME`" FILE_NAME="`basename $NAME`"
EXE_NAME="`echo $FILE_NAME | sed 's/cc$/exe/'`" EXE_NAME="`echo $FILE_NAME | sed 's/cc$/exe/'`"
$CXX $SRC_DIR/testsuite/$NAME -o $EXE_NAME $CXX $SRC_DIR/testsuite/$NAME -o $EXE_NAME
if [ -f $EXE_NAME ]; then
./$EXE_NAME ./$EXE_NAME
echo "" fi
fi fi
done done
......
...@@ -33,8 +33,8 @@ test03(void) ...@@ -33,8 +33,8 @@ test03(void)
typedef wios::pos_type pos_type; typedef wios::pos_type pos_type;
const char* TEST_IN = "wostream_inserter_other_in"; const char* TEST_IN = "wostream_inserter_other_in.txt";
const char* TEST_OUT = "wostream_inserter_other_out"; const char* TEST_OUT = "wostream_inserter_other_out.txt";
pos_type i_read, i_wrote, rs, ws; pos_type i_read, i_wrote, rs, ws;
double tf_size = BUFSIZ * 2.5; double tf_size = BUFSIZ * 2.5;
ofstream testfile(TEST_IN); ofstream testfile(TEST_IN);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment