]> git.saurik.com Git - apt.git/blob - test/test_udevcdrom.cc
add wrapper around dpkg to be able to use it easily in the tests
[apt.git] / test / test_udevcdrom.cc
1 #include <apt-pkg/cdrom.h>
2 #include <stdio.h>
3 #include <assert.h>
4
5 int main()
6 {
7 int i;
8 pkgUdevCdromDevices c;
9 assert(c.Dlopen());
10
11 vector<CdromDevice> l;
12 l = c.Scan();
13 assert(l.size() > 0);
14 for (i=0;i<l.size();i++)
15 std::cerr << l[i].DeviceName << " "
16 << l[i].Mounted << " "
17 << l[i].MountPath << std::endl;
18
19 }