⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chk.cxxtests

📁 这是linux下运行的mysql软件包,可用于linux 下安装 php + mysql + apach 的网络配置
💻 CXXTESTS
字号:
#!/bin/sh -## $Id: chk.cxxtests,v 1.5 2002/07/05 22:17:59 dda Exp $## Check to make sure that regression tests for C++ run.TEST_CXX_SRCDIR=../test/scr015  # must be a relative directory# All paths must be relative to a subdirectory of the build directoryLIBS="-L.. -ldb -ldb_cxx"CXXFLAGS="-I.. -I../../dbinc"# Test must be run from a local build directory, not from a test# directory.cd ..[ -f db_config.h ] || {	echo 'FAIL: chk.cxxtests must be run from a local build directory.'	exit 1}[ -d ../docs_src ] || {	echo 'FAIL: chk.cxxtests must be run from a local build directory.'	exit 1}[ -f libdb.a ] || make libdb.a || {	echo 'FAIL: unable to build libdb.a'	exit 1}[ -f libdb_cxx.a ] || make libdb_cxx.a || {	echo 'FAIL: unable to build libdb_cxx.a'	exit 1}CXX=`sed -e '/^CXX=/!d' -e 's/^CXX=//' -e 's/.*mode=compile *//' Makefile`echo "  ====== cxx tests using $CXX"testnames=`cd $TEST_CXX_SRCDIR; ls *.cpp | sed -e 's/\.cpp$//'`for testname in $testnames; do	if grep -x $testname $TEST_CXX_SRCDIR/ignore > /dev/null; then		echo "    **** cxx test $testname ignored"		continue	fi	echo "    ==== cxx test $testname"	rm -rf TESTCXX; mkdir TESTCXX	cd ./TESTCXX	testprefix=../$TEST_CXX_SRCDIR/$testname	${CXX} ${CXXFLAGS} -o $testname $testprefix.cpp ${LIBS} > ../$testname.compileout 2>&1 || {		echo "FAIL: compilation of $testname failed, see ../$testname.compileout"		exit 1	}	rm -f ../$testname.compileout	infile=$testprefix.testin	[ -f $infile ] || infile=/dev/null	goodoutfile=$testprefix.testout	[ -f $goodoutfile ] || goodoutfile=/dev/null	gooderrfile=$testprefix.testerr	[ -f $gooderrfile ] || gooderrfile=/dev/null	./$testname <$infile >../$testname.out 2>../$testname.err	cmp ../$testname.out $goodoutfile > /dev/null || {		echo "FAIL: $testname output differs: see ../$testname.out, $goodoutfile"		exit 1	}	cmp ../$testname.err $gooderrfile > /dev/null || {		echo "FAIL: $testname error differs: see ../$testname.err, $gooderrfile"		exit 1	}	cd ..	rm -f $testname.err $testname.outdonerm -rf TESTCXXexit 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -