3 # Script to do performance testing.
6 # check_performance SRC_DIR BUILD_DIR
13 # Now that we've successfully translated the numerical option into
14 # a symbolic one, we can safely ignore it.
17 # This has been true all along. Found out about it the hard way...
20 echo 'You need bash 2.x to run check_performance. Exiting.';
25 flags_script
=$BUILD_DIR/scripts
/testsuite_flags
26 INCLUDES
=`$flags_script --build-includes`
27 PCH_FLAGS
=`$flags_script --cxxpchflags`
28 FLAGS
=`$flags_script --cxxflags`
30 COMPILER
=`$flags_script --build-cxx`
31 CXX
="$COMPILER $INCLUDES $PCH_FLAGS $FLAGS -Wfatal-errors $TEST_FLAGS"
33 echo "compile line is:"
37 TESTS_FILE
="testsuite_files"
42 for NAME
in `cat $TESTS_FILE`
46 OUTPUT_NAME
=$UNIQUE_ID
47 $CXX $SRC_DIR/testsuite
/$NAME -o $OUTPUT_NAME
48 if [ -f $OUTPUT_NAME ]; then
49 # mv $OUTPUT_NAME binaries