File: t07-dbprune1

package info (click to toggle)
qsf 1.2.7-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, lenny, squeeze, wheezy
  • size: 1,372 kB
  • ctags: 598
  • sloc: ansic: 9,981; sh: 816; awk: 17; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 449 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# TEST: Automatic database pruning (1): 

$PROG -d $BACKEND:$TESTDB -D > .testdump-a
$PROG -d $BACKEND:$TESTDB -D | grep SINCEPRUNE > .testdump-b
./mboxsplit 1 < .test-non-spam \
 | $PROG -d $BACKEND:$TESTDB -m >/dev/null
$PROG -d $BACKEND:$TESTDB -D | grep SINCEPRUNE > .testdump-c
bash -c "if cmp -s .testdump-a .testdump-b; then exit 1; fi; exit 0"
$PROG -d $BACKEND:$TESTDB -R < .testdump-a
rm -f .testdump-a .testdump-b .testdump-c