OSDN Git Service

Add version info test files
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 4 Sep 2017 12:44:53 +0000 (21:44 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Mon, 4 Sep 2017 12:44:53 +0000 (21:44 +0900)
12 files changed:
Testing/Data/FileVersion/build.cmd [new file with mode: 0644]
Testing/Data/FileVersion/file1.dll [new file with mode: 0644]
Testing/Data/FileVersion/file1.rc [new file with mode: 0644]
Testing/Data/FileVersion/file2.dll [new file with mode: 0644]
Testing/Data/FileVersion/file2.rc [new file with mode: 0644]
Testing/Data/FileVersion/file3.dll [new file with mode: 0644]
Testing/Data/FileVersion/file3.rc [new file with mode: 0644]
Testing/Data/FileVersion/file4.dll [new file with mode: 0644]
Testing/Data/FileVersion/file4.rc [new file with mode: 0644]
Testing/Data/FileVersion/file5.dll [new file with mode: 0644]
Testing/Data/FileVersion/file5.rc [new file with mode: 0644]
Testing/Data/FileVersion/resource.h [new file with mode: 0644]

diff --git a/Testing/Data/FileVersion/build.cmd b/Testing/Data/FileVersion/build.cmd
new file mode 100644 (file)
index 0000000..a873534
--- /dev/null
@@ -0,0 +1 @@
+for %%i in (1,1,5) do rc file%%i.rc & link /dll /noentry file%%i.res\r
diff --git a/Testing/Data/FileVersion/file1.dll b/Testing/Data/FileVersion/file1.dll
new file mode 100644 (file)
index 0000000..b3926f2
Binary files /dev/null and b/Testing/Data/FileVersion/file1.dll differ
diff --git a/Testing/Data/FileVersion/file1.rc b/Testing/Data/FileVersion/file1.rc
new file mode 100644 (file)
index 0000000..1d0f606
--- /dev/null
@@ -0,0 +1,99 @@
+// Microsoft Visual C++ generated resource script.\r
+//\r
+#include "resource.h"\r
+\r
+#define APSTUDIO_READONLY_SYMBOLS\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 2 resource.\r
+//\r
+#include "winres.h"\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#undef APSTUDIO_READONLY_SYMBOLS\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+// English (United States) resources\r
+\r
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\r
+\r
+#ifdef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// TEXTINCLUDE\r
+//\r
+\r
+1 TEXTINCLUDE \r
+BEGIN\r
+    "resource.h\0"\r
+END\r
+\r
+2 TEXTINCLUDE \r
+BEGIN\r
+    "#include ""winres.h""\r\n"\r
+    "\0"\r
+END\r
+\r
+3 TEXTINCLUDE \r
+BEGIN\r
+    "\r\n"\r
+    "\0"\r
+END\r
+\r
+#endif    // APSTUDIO_INVOKED\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Version\r
+//\r
+\r
+VS_VERSION_INFO VERSIONINFO\r
+ FILEVERSION 1,2,1234,12345\r
+ PRODUCTVERSION 2,3,4,5\r
+ FILEFLAGSMASK 0x3fL\r
+#ifdef _DEBUG\r
+ FILEFLAGS 0x1L\r
+#else\r
+ FILEFLAGS 0x0L\r
+#endif\r
+ FILEOS 0x40004L\r
+ FILETYPE 0x1L\r
+ FILESUBTYPE 0x0L\r
+BEGIN\r
+    BLOCK "StringFileInfo"\r
+    BEGIN\r
+        BLOCK "040904b0"\r
+        BEGIN\r
+            VALUE "CompanyName", "Test"\r
+            VALUE "FileDescription", "Test"\r
+            VALUE "FileVersion", "1,2,1234,12345"\r
+            VALUE "InternalName", "file1.dll"\r
+            VALUE "LegalCopyright", "Copyright (C)"\r
+            VALUE "OriginalFilename", "file1.dll"\r
+            VALUE "ProductName", "Test"\r
+            VALUE "ProductVersion", "2,3,4,5"\r
+        END\r
+    END\r
+    BLOCK "VarFileInfo"\r
+    BEGIN\r
+        VALUE "Translation", 0x409, 1200\r
+    END\r
+END\r
+\r
+#endif    // English (United States) resources\r
+/////////////////////////////////////////////////////////////////////////////\r
+\r
+\r
+\r
+#ifndef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 3 resource.\r
+//\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#endif    // not APSTUDIO_INVOKED\r
+\r
diff --git a/Testing/Data/FileVersion/file2.dll b/Testing/Data/FileVersion/file2.dll
new file mode 100644 (file)
index 0000000..665f93b
Binary files /dev/null and b/Testing/Data/FileVersion/file2.dll differ
diff --git a/Testing/Data/FileVersion/file2.rc b/Testing/Data/FileVersion/file2.rc
new file mode 100644 (file)
index 0000000..b4748ae
--- /dev/null
@@ -0,0 +1,99 @@
+// Microsoft Visual C++ generated resource script.\r
+//\r
+#include "resource.h"\r
+\r
+#define APSTUDIO_READONLY_SYMBOLS\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 2 resource.\r
+//\r
+#include "winres.h"\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#undef APSTUDIO_READONLY_SYMBOLS\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+// English (United States) resources\r
+\r
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\r
+\r
+#ifdef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// TEXTINCLUDE\r
+//\r
+\r
+1 TEXTINCLUDE \r
+BEGIN\r
+    "resource.h\0"\r
+END\r
+\r
+2 TEXTINCLUDE \r
+BEGIN\r
+    "#include ""winres.h""\r\n"\r
+    "\0"\r
+END\r
+\r
+3 TEXTINCLUDE \r
+BEGIN\r
+    "\r\n"\r
+    "\0"\r
+END\r
+\r
+#endif    // APSTUDIO_INVOKED\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Version\r
+//\r
+\r
+VS_VERSION_INFO VERSIONINFO\r
+ FILEVERSION 1,10,123,1234\r
+ PRODUCTVERSION 2,3,4,5\r
+ FILEFLAGSMASK 0x3fL\r
+#ifdef _DEBUG\r
+ FILEFLAGS 0x1L\r
+#else\r
+ FILEFLAGS 0x0L\r
+#endif\r
+ FILEOS 0x40004L\r
+ FILETYPE 0x1L\r
+ FILESUBTYPE 0x0L\r
+BEGIN\r
+    BLOCK "StringFileInfo"\r
+    BEGIN\r
+        BLOCK "040904b0"\r
+        BEGIN\r
+            VALUE "CompanyName", "Test"\r
+            VALUE "FileDescription", "Test"\r
+            VALUE "FileVersion", "1,10,123,1234"\r
+            VALUE "InternalName", "file2.dll"\r
+            VALUE "LegalCopyright", "Copyright (C)"\r
+            VALUE "OriginalFilename", "file2.dll"\r
+            VALUE "ProductName", "Test"\r
+            VALUE "ProductVersion", "2,3,4,5"\r
+        END\r
+    END\r
+    BLOCK "VarFileInfo"\r
+    BEGIN\r
+        VALUE "Translation", 0x409, 1200\r
+    END\r
+END\r
+\r
+#endif    // English (United States) resources\r
+/////////////////////////////////////////////////////////////////////////////\r
+\r
+\r
+\r
+#ifndef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 3 resource.\r
+//\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#endif    // not APSTUDIO_INVOKED\r
+\r
diff --git a/Testing/Data/FileVersion/file3.dll b/Testing/Data/FileVersion/file3.dll
new file mode 100644 (file)
index 0000000..8d56381
Binary files /dev/null and b/Testing/Data/FileVersion/file3.dll differ
diff --git a/Testing/Data/FileVersion/file3.rc b/Testing/Data/FileVersion/file3.rc
new file mode 100644 (file)
index 0000000..2108cc3
--- /dev/null
@@ -0,0 +1,99 @@
+// Microsoft Visual C++ generated resource script.\r
+//\r
+#include "resource.h"\r
+\r
+#define APSTUDIO_READONLY_SYMBOLS\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 2 resource.\r
+//\r
+#include "winres.h"\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#undef APSTUDIO_READONLY_SYMBOLS\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+// English (United States) resources\r
+\r
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\r
+\r
+#ifdef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// TEXTINCLUDE\r
+//\r
+\r
+1 TEXTINCLUDE \r
+BEGIN\r
+    "resource.h\0"\r
+END\r
+\r
+2 TEXTINCLUDE \r
+BEGIN\r
+    "#include ""winres.h""\r\n"\r
+    "\0"\r
+END\r
+\r
+3 TEXTINCLUDE \r
+BEGIN\r
+    "\r\n"\r
+    "\0"\r
+END\r
+\r
+#endif    // APSTUDIO_INVOKED\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Version\r
+//\r
+\r
+VS_VERSION_INFO VERSIONINFO\r
+ FILEVERSION 12,1,2,3\r
+ PRODUCTVERSION 2,3,4,5\r
+ FILEFLAGSMASK 0x3fL\r
+#ifdef _DEBUG\r
+ FILEFLAGS 0x1L\r
+#else\r
+ FILEFLAGS 0x0L\r
+#endif\r
+ FILEOS 0x40004L\r
+ FILETYPE 0x1L\r
+ FILESUBTYPE 0x0L\r
+BEGIN\r
+    BLOCK "StringFileInfo"\r
+    BEGIN\r
+        BLOCK "040904b0"\r
+        BEGIN\r
+            VALUE "CompanyName", "Test"\r
+            VALUE "FileDescription", "Test"\r
+            VALUE "FileVersion", "12,1,2,3"\r
+            VALUE "InternalName", "file3.dll"\r
+            VALUE "LegalCopyright", "Copyright (C)"\r
+            VALUE "OriginalFilename", "file3.dll"\r
+            VALUE "ProductName", "Test"\r
+            VALUE "ProductVersion", "2,3,4,5"\r
+        END\r
+    END\r
+    BLOCK "VarFileInfo"\r
+    BEGIN\r
+        VALUE "Translation", 0x409, 1200\r
+    END\r
+END\r
+\r
+#endif    // English (United States) resources\r
+/////////////////////////////////////////////////////////////////////////////\r
+\r
+\r
+\r
+#ifndef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 3 resource.\r
+//\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#endif    // not APSTUDIO_INVOKED\r
+\r
diff --git a/Testing/Data/FileVersion/file4.dll b/Testing/Data/FileVersion/file4.dll
new file mode 100644 (file)
index 0000000..bdf6b58
Binary files /dev/null and b/Testing/Data/FileVersion/file4.dll differ
diff --git a/Testing/Data/FileVersion/file4.rc b/Testing/Data/FileVersion/file4.rc
new file mode 100644 (file)
index 0000000..9b9d0ed
--- /dev/null
@@ -0,0 +1,99 @@
+// Microsoft Visual C++ generated resource script.\r
+//\r
+#include "resource.h"\r
+\r
+#define APSTUDIO_READONLY_SYMBOLS\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 2 resource.\r
+//\r
+#include "winres.h"\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#undef APSTUDIO_READONLY_SYMBOLS\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+// English (United States) resources\r
+\r
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\r
+\r
+#ifdef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// TEXTINCLUDE\r
+//\r
+\r
+1 TEXTINCLUDE \r
+BEGIN\r
+    "resource.h\0"\r
+END\r
+\r
+2 TEXTINCLUDE \r
+BEGIN\r
+    "#include ""winres.h""\r\n"\r
+    "\0"\r
+END\r
+\r
+3 TEXTINCLUDE \r
+BEGIN\r
+    "\r\n"\r
+    "\0"\r
+END\r
+\r
+#endif    // APSTUDIO_INVOKED\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Version\r
+//\r
+\r
+VS_VERSION_INFO VERSIONINFO\r
+ FILEVERSION 12,1,12,3\r
+ PRODUCTVERSION 2,3,4,5\r
+ FILEFLAGSMASK 0x3fL\r
+#ifdef _DEBUG\r
+ FILEFLAGS 0x1L\r
+#else\r
+ FILEFLAGS 0x0L\r
+#endif\r
+ FILEOS 0x40004L\r
+ FILETYPE 0x1L\r
+ FILESUBTYPE 0x0L\r
+BEGIN\r
+    BLOCK "StringFileInfo"\r
+    BEGIN\r
+        BLOCK "040904b0"\r
+        BEGIN\r
+            VALUE "CompanyName", "Test"\r
+            VALUE "FileDescription", "Test"\r
+            VALUE "FileVersion", "12,1,12,3"\r
+            VALUE "InternalName", "file4.dll"\r
+            VALUE "LegalCopyright", "Copyright (C)"\r
+            VALUE "OriginalFilename", "file4.dll"\r
+            VALUE "ProductName", "Test"\r
+            VALUE "ProductVersion", "2,3,4,5"\r
+        END\r
+    END\r
+    BLOCK "VarFileInfo"\r
+    BEGIN\r
+        VALUE "Translation", 0x409, 1200\r
+    END\r
+END\r
+\r
+#endif    // English (United States) resources\r
+/////////////////////////////////////////////////////////////////////////////\r
+\r
+\r
+\r
+#ifndef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 3 resource.\r
+//\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#endif    // not APSTUDIO_INVOKED\r
+\r
diff --git a/Testing/Data/FileVersion/file5.dll b/Testing/Data/FileVersion/file5.dll
new file mode 100644 (file)
index 0000000..b246354
Binary files /dev/null and b/Testing/Data/FileVersion/file5.dll differ
diff --git a/Testing/Data/FileVersion/file5.rc b/Testing/Data/FileVersion/file5.rc
new file mode 100644 (file)
index 0000000..4a21c64
--- /dev/null
@@ -0,0 +1,99 @@
+// Microsoft Visual C++ generated resource script.\r
+//\r
+#include "resource.h"\r
+\r
+#define APSTUDIO_READONLY_SYMBOLS\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 2 resource.\r
+//\r
+#include "winres.h"\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#undef APSTUDIO_READONLY_SYMBOLS\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+// English (United States) resources\r
+\r
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US\r
+\r
+#ifdef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// TEXTINCLUDE\r
+//\r
+\r
+1 TEXTINCLUDE \r
+BEGIN\r
+    "resource.h\0"\r
+END\r
+\r
+2 TEXTINCLUDE \r
+BEGIN\r
+    "#include ""winres.h""\r\n"\r
+    "\0"\r
+END\r
+\r
+3 TEXTINCLUDE \r
+BEGIN\r
+    "\r\n"\r
+    "\0"\r
+END\r
+\r
+#endif    // APSTUDIO_INVOKED\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Version\r
+//\r
+\r
+VS_VERSION_INFO VERSIONINFO\r
+ FILEVERSION 12,1,12,23\r
+ PRODUCTVERSION 2,3,4,5\r
+ FILEFLAGSMASK 0x3fL\r
+#ifdef _DEBUG\r
+ FILEFLAGS 0x1L\r
+#else\r
+ FILEFLAGS 0x0L\r
+#endif\r
+ FILEOS 0x40004L\r
+ FILETYPE 0x1L\r
+ FILESUBTYPE 0x0L\r
+BEGIN\r
+    BLOCK "StringFileInfo"\r
+    BEGIN\r
+        BLOCK "040904b0"\r
+        BEGIN\r
+            VALUE "CompanyName", "Test"\r
+            VALUE "FileDescription", "Test"\r
+            VALUE "FileVersion", "12,1,12,23"\r
+            VALUE "InternalName", "file4.dll"\r
+            VALUE "LegalCopyright", "Copyright (C)"\r
+            VALUE "OriginalFilename", "file4.dll"\r
+            VALUE "ProductName", "Test"\r
+            VALUE "ProductVersion", "2,3,4,5"\r
+        END\r
+    END\r
+    BLOCK "VarFileInfo"\r
+    BEGIN\r
+        VALUE "Translation", 0x409, 1200\r
+    END\r
+END\r
+\r
+#endif    // English (United States) resources\r
+/////////////////////////////////////////////////////////////////////////////\r
+\r
+\r
+\r
+#ifndef APSTUDIO_INVOKED\r
+/////////////////////////////////////////////////////////////////////////////\r
+//\r
+// Generated from the TEXTINCLUDE 3 resource.\r
+//\r
+\r
+\r
+/////////////////////////////////////////////////////////////////////////////\r
+#endif    // not APSTUDIO_INVOKED\r
+\r
diff --git a/Testing/Data/FileVersion/resource.h b/Testing/Data/FileVersion/resource.h
new file mode 100644 (file)
index 0000000..e69de29