summaryrefslogtreecommitdiff
path: root/tests/ddb/check-ddb.in
blob: 0fa71cd7348978c8807bc5389b3e74dcae1dd3ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

set -e

export CAMLIBS="@camlibdir@"

true ./test-ddb<<EOF
# This is a pre-alpha test example

device "Canon PowerShot G1"
{
	driver "canon";
	operations config;
	
	interface serial
	{
		speeds 9600, 19200, 38400, 57600, 115200;
	};
	interface usb
	{
		vendor  0x04a9;
		product 0x3040;
	};
};

device "Canon PowerShot G2"
{
	driver "canon";
	interface usb
	{
		vendor  0x04a9;
		product 0x3055;
	};
};

EOF

@top_builddir@/packaging/generic/print-camera-list gp2ddb > gp2ddb.txt
true ./test-ddb gp2ddb.txt

./test-ddb --compare < gp2ddb.txt