binutils-gdb/binutils/testsuite/binutils-all/windres
Nick Clifton bfb6c1ab1e PR binutils/13051
Fix a syntax error bug when compiling rc files with the VERSIONINFO resource
	containing more than one language block inside a single StringFileInfo block.

	* windint.h (rc_ver_stringtable): New structure definition.
	(rc_ver_info): Use it.
	* rcparse.y (verstringtable): New variable.
	(verstringtables): New type.
	(verstringtables:): New rule declaration.
	(verblocks:): Use it.
	* resrc.c (append_ver_stringtable): New function.
	(append_ver_stringfileinfo): Update to use stringtables.
	* windres.h (append_ver_stringfileinfo): Update declaration.
	(append_ver_stringtable): New declaration.
	* resrc.c (write_rc_versioninfo): Update to support multiple blocks.
	* resbin.c (bin_to_res_version): Likewise.
	(res_to_bin_versioninfo): Likewise.

	* binutils-all\windres\version.rsd: Regenerate.
	* binutils-all\windres\version_cat.rsd: Regenerate.
	* binutils-all\windres\version_mlang.rc: Add new test.
	* binutils-all\windres\version_mlang.rsd: Likewise.
2011-10-11 15:56:29 +00:00
..
MSG00001.bin Updated windres tool 2007-05-23 08:48:29 +00:00
README * windres.c (usage): Add new --preprocessor-arg option. 2011-04-13 07:50:15 +00:00
bmp1.bmp
bmpalign.rc
bmpalign.rsd
capstyle.rc Add WS_CAPTION dialog style if CAPTION is specified. 2002-04-09 17:23:19 +00:00
capstyle.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
checkbox.rc * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
checkbox.rsd * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
combobox.rc * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
combobox.rsd * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
deflang.rc Set default LANGUAGE to english/us. 2002-04-09 16:55:48 +00:00
deflang.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
dialog0.rc Define MEMFLAGS_DISCARDABLE by default for dialogs. 2002-04-16 08:13:03 +00:00
dialog0.rsd Define MEMFLAGS_DISCARDABLE by default for dialogs. 2002-04-16 08:13:03 +00:00
dialog1.rc Define MEMFLAGS_DISCARDABLE by default for dialogs. 2002-04-16 08:13:03 +00:00
dialog1.rsd Define MEMFLAGS_DISCARDABLE by default for dialogs. 2002-04-16 08:13:03 +00:00
dialogid.rc Replace "Static" with "classname" so that results match the behaviour of the 2003-04-03 10:48:16 +00:00
dialogid.rsd Updated windres tool 2007-05-23 08:48:29 +00:00
dialogsignature.rc Use signature to identify DIALOGEX. 2002-04-09 16:37:21 +00:00
dialogsignature.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
dlgfont.rc Allow two to five parameter in FONT statement of DIALOGEX resources. 2002-04-15 14:12:41 +00:00
dlgfont.rsd Allow two to five parameter in FONT statement of DIALOGEX resources. 2002-04-15 14:12:41 +00:00
edittext.rc * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
edittext.rsd * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
escapea.rc "\a" escape (used for right justified key definitions in menus) is encodes as 2002-04-09 15:44:36 +00:00
escapea.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
escapex-2.rc 2005-10-11 Danny Smith <dannysmith@users.sourceforge.net> 2005-10-12 00:19:26 +00:00
escapex-2.rsd 2005-10-11 Danny Smith <dannysmith@users.sourceforge.net> 2005-10-12 00:19:26 +00:00
escapex.rc Fix parsing hex constants in strings. Add test for the fix. 2002-04-09 15:36:43 +00:00
escapex.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
html.rc binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
html.rsd Updated windres tool 2007-05-23 08:48:29 +00:00
html1.hm Updated windres tool 2007-05-23 08:48:29 +00:00
html2.hm Updated windres tool 2007-05-23 08:48:29 +00:00
lang.rc binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
lang.rsd
listbox.rc * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
listbox.rsd * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
messagetable.rc binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
messagetable.rsd Updated windres tool 2007-05-23 08:48:29 +00:00
msupdate update copyright dates 2009-09-02 07:25:43 +00:00
nocaption.rc Don't print empty dialog caption. 2002-04-09 17:15:00 +00:00
nocaption.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
printstyle.rc Don't add default dialog style when explicit style specified. 2002-04-09 15:59:13 +00:00
printstyle.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
quoteclass.rc Apply patch from Bernd Herd to fix quoted class definitions inside dialogs. 2002-04-09 15:21:01 +00:00
scrollbar.rc * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
scrollbar.rsd * rcparse.y (res_text_field): New res_id variable. 2003-06-28 02:37:43 +00:00
strtab1.rc binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
strtab1.rsd
strtab2.rc binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
strtab2.rsd Updated windres tool 2007-05-23 08:48:29 +00:00
strtab3.rc * windres.c (usage): Add new --preprocessor-arg option. 2011-04-13 07:50:15 +00:00
strtab3.rsd * windres.c (usage): Add new --preprocessor-arg option. 2011-04-13 07:50:15 +00:00
sublang.rc Fix overlooked sublang shift bug. 2002-04-09 17:06:14 +00:00
sublang.rsd Regernated recently created expected output files using MSVC. 2002-04-10 08:14:32 +00:00
version.rc binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
version.rsd PR binutils/13051 2011-10-11 15:56:29 +00:00
version_cat.rc binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
version_cat.rsd PR binutils/13051 2011-10-11 15:56:29 +00:00
version_mlang.rc PR binutils/13051 2011-10-11 15:56:29 +00:00
version_mlang.rsd PR binutils/13051 2011-10-11 15:56:29 +00:00
windres.exp * windres.c (usage): Add new --preprocessor-arg option. 2011-04-13 07:50:15 +00:00

README

Instructions for adding tests:

The files *.rc are hand-edited or copied from elsewhere.

The script msupdate is used to generate the *.rsd files, which are
dumps of the RES formatted output of MSVC's RC utility.

Within the *.rc file, the first N lines beginning with a special
comment can control the test.  Comments are // /* or # (// is
recommended, as both rc and windres support those).  Each line
contains one command:

	// parse-only
	// xfail *-*-*
	// cpparg <preprocessor options passed via --preprocessor-arg>

parse-only must preceed any xfail commands, and indicates that a
comparison with the *.rsd file will not happen.  xfail indicates when
a failure is expected.  This should only be used for when you are
adding a new test that is known to fail because of a bug in windres,
and it should be removed when the bug is fixed.

You can use pfail or cfail instead of xfail to indicate that only the
parsing or comparing should be xfailed.

The windres tests only run for ix86 targets, because the
MSVC-generated *.rsd files are generated for that.