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

📄 run-testsuite

📁 用C++ 包装了大整数这个类
💻
字号:
#!/bin/bashbad=# If you encounter the following problem with Valgrind like I did:#     https://bugzilla.redhat.com/show_bug.cgi?id=455644# you can pass the environment variable NO_VALGRIND=1 to run the testsuite# without it.if [ "$NO_VALGRIND" ]; then	cmd=(./testsuite)else	cmd=(valgrind --error-exitcode=1 --leak-check=full ./testsuite)fiset -o pipefail# Stdout goes directly to testsuite.out; stderr goes down the pipe.if ! "${cmd[@]}" 2>&1 >testsuite.out | tee testsuite.err; then	echo >&2 'Memory errors!'	bad=1fiif grep 'LEAK SUMMARY' testsuite.err >/dev/null; then	echo >&2 'Memory leaks!'	bad=1fiif ! diff -u testsuite.expected testsuite.out; then	echo >&2 'Output is incorrect!'	bad=1fiif [ $bad ]; then	echo >&2 'Test suite failed!'	exit 1else	echo 'Test suite passed.'fi

⌨️ 快捷键说明

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