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
capstyle.rsd
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
deflang.rsd
dialog0.rc
dialog0.rsd
dialog1.rc
dialog1.rsd
dialogid.rc
dialogid.rsd
dialogsignature.rc
dialogsignature.rsd
dlgfont.rc
dlgfont.rsd
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
escapea.rsd
escapex.rc
escapex.rsd
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
nocaption.rsd
printstyle.rc
printstyle.rsd
quoteclass.rc
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
sublang.rsd
windres.exp

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.