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