old-cross-binutils/binutils/testsuite/binutils-all/windres
Danny Smith b9ae04920a * rcparse.y (res_text_field): New res_id variable.
(res_null_text): New static const struct res_id object,
	with empty unicode name field.
	(control): Pop parsing of optresidc up one level. Set
	res_text_field to $2 except for controls which do not accept
	a text field.  Set res_text_field to res_null_text for the
	special cases (viz. COMBOBOX, EDITTEXT, LISTBOX, SCROLLBAR).
	(control_params): Adjust to use res_text_field rather
	than optresidc.
	(COMBOBOX): Add comment about discrepency between documented
	vs. observed default style.
	* resrc.c (define_control): Make first param const.
	* windres.h (define_control): Adjust prototype.

testsuite:

	* binutils-all/windres/checkbox.rc: New file.
	* binutils-all/windres/checkbox.rsd: New file.
	* binutils-all/windres/combobox.rc: New file.
	* binutils-all/windres/combobox.rsd: New file.
	* binutils-all/windres/edittext.rc: New file.
	* binutils-all/windres/edittext.rsd: New file.
	* binutils-all/windres/listbox.rc: New file.
	* binutils-all/windres/listbox.rsd: New file.
	* binutils-all/windres/scrollbar.rc: New file.
	* binutils-all/windres/scrollbar.rsd: New file.
2003-06-28 02:37:43 +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 Replace "Static" with "classname" so that results match the behaviour of the 2003-04-03 10:48:16 +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.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
lang.rc
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
msupdate
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
README
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
strtab1.rsd
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
windres.exp Rename -I to -J. Deprecate old use of -I, but leave it enabled for now. 2003-04-22 17:31:08 +00:00

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 *-*-*

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.