summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-03-03 19:12:16 +0000
committerRichard Hughes <richard@hughsie.com>2015-03-03 19:12:16 +0000
commita90d5e18dbd061b4dc01c41f8fac4762e401655b (patch)
treeb3294c7d832d40d025286f22d72ded61d9c06ffd /data
parentc90e4f94e136ec0ff2cbfe31f93f42c629d8ec5b (diff)
downloadappstream-glib-a90d5e18dbd061b4dc01c41f8fac4762e401655b.tar.gz
Add as_utils_load_inf_file()
This is for future use when loading firmware files.
Diffstat (limited to 'data')
-rw-r--r--data/tests/Makefile.am1
-rw-r--r--data/tests/example.inf50
2 files changed, 51 insertions, 0 deletions
diff --git a/data/tests/Makefile.am b/data/tests/Makefile.am
index 375178e..dd7033c 100644
--- a/data/tests/Makefile.am
+++ b/data/tests/Makefile.am
@@ -14,6 +14,7 @@ test_files = \
composite-1-1.fc21.x86_64.rpm \
example.appdata.xml \
example.desktop \
+ example.inf \
example.metainfo.xml \
example-v04.xml.gz \
example-v06.yml.gz \
diff --git a/data/tests/example.inf b/data/tests/example.inf
new file mode 100644
index 0000000..62b1d21
--- /dev/null
+++ b/data/tests/example.inf
@@ -0,0 +1,50 @@
+; Copyright (C) 2015 Hughski Limited
+
+[Version]
+Signature="$WINDOWS NT$"
+Class=Firmware
+ClassGuid={84f40464-9272-4ef7-9399-cd95f12da696}
+Provider=%Provider%
+DriverVer=03/03/2015,2.0.2
+PnpLockdown=1
+CatalogFile=firmware.cat
+
+[Manufacturer]
+%MfgName% = Hughski,NTamd64
+
+[Hughski.NTamd64]
+%FirmwareDesc% = Firmware_Install,firmware\RES_{84f40464-9272-4ef7-9399-cd95f12da695}
+
+[Firmware_Install.NT]
+CopyFiles = Firmware_CopyFiles
+
+[Firmware_CopyFiles]
+firmware.bin
+
+[Firmware_Install.NT.Hw]
+AddReg = Firmware_AddReg
+
+[Firmware_AddReg]
+HKR,,FirmwareId,,{84f40464-9272-4ef7-9399-cd95f12da695}
+HKR,,FirmwareVersion,%REG_DWORD%,0x0000000
+HKR,,FirmwareFilename,,firmware.bin
+
+[SourceDisksNames]
+1 = %DiskName%
+
+[SourceDisksFiles]
+firmware.bin = 1
+
+[DestinationDirs]
+DefaultDestDir = %DIRID_WINDOWS%,Firmware ; %SystemRoot%\Firmware
+
+[Strings]
+; localizable
+Provider = "Hughski"
+MfgName = "Hughski Limited"
+FirmwareDesc = "ColorHug Firmware"
+DiskName = "Firmware for the ColorHug Colorimeter"
+
+; non-localizable
+DIRID_WINDOWS = 10
+REG_DWORD = 0x00010001