]> git.notmuchmail.org Git - notmuch/blob - test/ghost-report.cc
fix out of tree tests
[notmuch] / test / ghost-report.cc
1 #include <iostream>
2 #include <cstdlib>
3 #include <xapian.h>
4
5 int main(int argc, char **argv) {
6
7     if (argc < 2) {
8         std::cerr << "usage: ghost-report xapian-dir" << std::endl;
9         exit(1);
10     }
11
12     Xapian::Database db(argv[1]);
13     std::cout << db.get_termfreq("Tghost") << std::endl;
14 }