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

📄 mailer-t1.sh

📁 linux subdivision ying gai ke yi le ba
💻 SH
字号:
#!/bin/sh
#
# mailer-t1.sh: test #1 for the mailer.py script
#
# This test generates "email" for each revision in the repository,
# concatenating them into one big blob, which is then compared against
# a known output.
#
# Note: mailer-tweak.py must have been run to make the test outputs
#       consistent and reproducible
#
# USAGE: ./mailer-t1.sh REPOS MAILER-SCRIPT
#

if test "$#" != 2; then
    echo "USAGE: ./mailer-t1.sh REPOS MAILER-SCRIPT"
    exit 1
fi

glom=mailer-t1.current
rm -f $glom

youngest="`svnlook youngest $1`"
for rev in `python -c "import string; print string.join(map(str, range(1,$youngest+1)))"`; do
  $2 commit $1 $rev >> $glom
done

echo "current mailer.py output in: $glom"

echo diff -q mailer-t1.output $glom
diff -q mailer-t1.output $glom && echo "SUCCESS: no differences detected"

⌨️ 快捷键说明

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