aboutsummaryrefslogtreecommitdiff
path: root/tests/manifest/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-04 14:09:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-04 14:09:51 +0200
commitd3f62eb0cbdd6080a26d4e9013bf9f6671cee9d9 (patch)
tree0c19bd064f26a4bed2fb1b786f70cfd8d4867f56 /tests/manifest/driver.cxx
parentce6eb3555b1264c14563eb383c25f4132c0d2a89 (diff)
Split manifests into package_manifests and repository_manifests
Diffstat (limited to 'tests/manifest/driver.cxx')
-rw-r--r--tests/manifest/driver.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/manifest/driver.cxx b/tests/manifest/driver.cxx
index f3b5abf..4722425 100644
--- a/tests/manifest/driver.cxx
+++ b/tests/manifest/driver.cxx
@@ -25,10 +25,15 @@ main (int argc, char* argv[])
{
ifstream ifs;
ifs.exceptions (ifstream::badbit | ifstream::failbit);
- ifs.open (argv[1], ifstream::in | ifstream::binary);
+ ifs.open (argv[1]);
manifest_parser p (ifs, argv[1]);
- manifests ms (p);
+
+#ifdef TEST_PACKAGES
+ package_manifests ms (p);
+#else
+ repository_manifests ms (p);
+#endif
manifest_serializer s (cout, "stdout");
ms.serialize (s);