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
This commit is contained in:
Benjamin Kosnik 2005-02-23 06:14:01 +00:00 committed by Benjamin Kosnik
parent 744b12b65f
commit bba6afa6ac
3 changed files with 32 additions and 17 deletions

View File

@ -1,3 +1,10 @@
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>
PR libstdc++/20091

View File

@ -32,42 +32,50 @@ SH_FLAG="-Wl,--rpath -Wl,$BUILD_DIR/../../gcc \
-Wl,--rpath -Wl,$BUILD_DIR/src/.libs"
ST_FLAG="-static"
LINK=$SH_FLAG
CXX="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS -DNOTHREAD $LINK"
CXX_THREAD="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS $THREAD_FLAG $LINK"
CXX="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS $LINK"
TESTS_FILE="testsuite_files_performance"
for NAME in `cat $TESTS_FILE`
do
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`
do
RUN=false
echo $NAME $CYCLE
FILE_NAME="`basename $NAME`"
EXE_NAME="`echo $FILE_NAME-$CYCLE | sed 's/cc$/exe/'`"
$CXX -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME
./$EXE_NAME
echo ""
FILE_NAME="`echo $FILE_NAME | sed 's/.cc//g'`"
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
fi
done
for CYCLE in `sed -n 's,.*\(TEST_[TB][0-9]*\)$,\1,p' $SRC_DIR/testsuite/$NAME`
do
RUN=false
echo $NAME $CYCLE THREAD
echo $NAME $CYCLE thread
FILE_NAME="`basename $NAME`"
EXE_NAME="`echo $FILE_NAME-$CYCLE | sed 's/cc$/exe/'`"
$CXX_THREAD -D$CYCLE $SRC_DIR/testsuite/$NAME -o $EXE_NAME
./$EXE_NAME
echo ""
FILE_NAME="`echo $FILE_NAME | sed 's/.cc//g'`"
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
fi
done
if $RUN; then
echo $NAME
FILE_NAME="`basename $NAME`"
EXE_NAME="`echo $FILE_NAME | sed 's/cc$/exe/'`"
$CXX $SRC_DIR/testsuite/$NAME -o $EXE_NAME
./$EXE_NAME
echo ""
if [ -f $EXE_NAME ]; then
./$EXE_NAME
fi
fi
done

View File

@ -33,8 +33,8 @@ test03(void)
typedef wios::pos_type pos_type;
const char* TEST_IN = "wostream_inserter_other_in";
const char* TEST_OUT = "wostream_inserter_other_out";
const char* TEST_IN = "wostream_inserter_other_in.txt";
const char* TEST_OUT = "wostream_inserter_other_out.txt";
pos_type i_read, i_wrote, rs, ws;
double tf_size = BUFSIZ * 2.5;
ofstream testfile(TEST_IN);