www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Preparing DStress for Windows

reply "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
Hi,

I'm currently preparing the DStress test suite
(http://dstress.kuehne.cn/www/dstress.html) for Windows.

The test code for the "simple" test cases is now in one C file instead of
several shell lines in the Makefile.
http://dstress.kuehne.cn/dstress.c [No, this isn't a code beauty contests ;)]

e.g.
dstress run some_source_file.d
dstress nocompile test/another_source.html 2> detailed.log 1> results.txt

As far as I'm aware only the simple "loadFile" functions needs a Windows
counterpart.

Anybody willing?

Thomas
Jan 27 2005
next sibling parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
Thomas Kuehne wrote:
 Hi,
 
 I'm currently preparing the DStress test suite 
 (http://dstress.kuehne.cn/www/dstress.html) for Windows.
 
 The test code for the "simple" test cases is now in one C file 
 instead of several shell lines in the Makefile.  
 http://dstress.kuehne.cn/dstress.c [No, this isn't a code beauty 
 contests ;)]
Did you write it in C to make sure that a DMD regression doesn't stop you from running the suite? :-)
 e.g.
 dstress run some_source_file.d
 dstress nocompile test/another_source.html 2> detailed.log 1> results.txt
 
 As far as I'm aware only the simple "loadFile" functions needs a
 Windows counterpart.
 
 Anybody willing?
You mean willing to write the Windows counterpart? I suppose I could have a go.... (Just looking at it, it appears that, given a file of size -1, it will allocate a zero-length buffer and set the byte just after the end of it to '\0', which I guess isn't what you meant? What is a file of size -1, anyway?) Stewart. -- My e-mail is valid but not my primary mailbox. Please keep replies on the 'group where everyone may benefit.
Jan 27 2005
parent "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
Stewart Gordon schrieb in news:ctbb33$2pi1$1 digitaldaemon.com :
 Thomas Kuehne wrote:
 Hi,

 I'm currently preparing the DStress test suite
 (http://dstress.kuehne.cn/www/dstress.html) for Windows.

 The test code for the "simple" test cases is now in one C file
 instead of several shell lines in the Makefile.
 http://dstress.kuehne.cn/dstress.c [No, this isn't a code beauty
 contests ;)]
Did you write it in C to make sure that a DMD regression doesn't stop you from running the suite? :-)
How could I write the test tool for the very compiler I am going to scrutinise?
 (Just looking at it, it appears that, given a file of size -1, it will
 allocate a zero-length buffer and set the byte just after the end of it
 to '\0', which I guess isn't what you meant?  What is a file of size -1,
 anyway?)
Mhh... Thomas
Jan 28 2005
prev sibling parent reply Carlos Santander <Carlos_member pathlink.com> writes:
In article <ctb7bu$2k90$1 digitaldaemon.com>, Thomas Kuehne says...
Hi,

I'm currently preparing the DStress test suite
(http://dstress.kuehne.cn/www/dstress.html) for Windows.

The test code for the "simple" test cases is now in one C file instead of
several shell lines in the Makefile.
http://dstress.kuehne.cn/dstress.c [No, this isn't a code beauty contests ;)]

e.g.
dstress run some_source_file.d
dstress nocompile test/another_source.html 2> detailed.log 1> results.txt

As far as I'm aware only the simple "loadFile" functions needs a Windows
counterpart.

Anybody willing?

Thomas
I think this does it (see attached file). It's based on std.file.read ---------------- Carlos Santander begin 0644 dstress.c M=6ET92`-"B`J(&AT='`Z+R]D<W1R97-S+FMU96AN92YC; T*("H-"B`J($-O M<'ER:6=H="`H0RD ,C`P-2!4:&]M87, 2W5E:&YE(#QT:&]M87-`:W5E:&YE M+F-N/ T*("H-"B`J(%1H:7, <')O9W)A;2!I<R!F<F5E('-O9G1W87)E.R!Y M;F1E<B!T:&4 =&5R;7, ;V8 =&AE($=.52!'96YE<F%L(%!U8FQI8R!,:6-E M;G-E(&%S('!U8FQI<VAE9"!B>0T*("H =&AE($9R964 4V]F='=A<F4 1F]U M;F1A=&EO;CL 96ET:&5R('9E<G-I;VX ,B!O9B!T:&4 3&EC96YS92P ;W(- M("H 5&AI<R!P<F]G<F%M(&ES(&1I<W1R:6)U=&5D(&EN('1H92!H;W!E('1H M4D%.5%D[('=I=&AO=70 979E;B!T:&4 :6UP;&EE9"!W87)R86YT>2!O9 T* M4B!055)03U-%+B` 4V5E('1H90T*("H 1TY5($=E;F5R86P 4'5B;&EC($QI M=F4 <F5C96EV960 82!C;W!Y(&]F('1H92!'3E4 1V5N97)A;"!0=6)L:6, M3&EC96YS90T*("H 86QO;F< =VET:"!T:&ES('!R;V=R86T[(&EF(&YO="P M=W)I=&4 =&\ =&AE($9R964 4V]F='=A<F4-"B`J($9O=6YD871I;VXL($EN M("` ("` ("` ("` ("` ("` ("`-" T*(VEN8VQU9&4 /'-T9&QI8BYH/ T* M;'5D92`\97)R;F\N:#X-" T*(V1E9FEN92!404< "0DB7U]$4U1215-37T1& M3$%'4U]?( T*(V1E9FEN92!/0DH)"2(M;V1O8FH ( T*(V1E9FEN92!43$]' M"0DB;&]G+G1M<"(-" T*(V1E9FEN92!254X)"3$-"B-D969I;F4 3D]254X) M"3(-"B-D969I;F4 0T]-4$E,10D)-`T*(V1E9FEN92!.3T-/35!)3$4).`T* M971E;G8H(F1M9"(I.PT*"0EI9BAB86-K/3U.54Q,*7L-" D)"6)A8VL /2`B M9&UD(CL-" D)?0T*"7T-" ER971U<FX 8F%C:SL-"GT-" T*+RH 475E<GD M971'96YE<F%L1FQA9W,H*7L-" EC:&%R*B!B86-K(#T 9V5T96YV*")$1DQ! M1U,B*3L-" EI9BAB86-K(#T]($Y53$PI>PT*"0EB86-K(#T 9V5T96YV*")D M;"YH/ T*(VEN8VQU9&4 /'5N:7-T9"YH/ T*8VAA<BH ;&]A9$9I;&4H8VAA M<BH 9FEL96YA;64I>PT*"6-H87(J(&)A8VL /2!.54Q,.PT*"7-T<G5C="!S M=&%T(&9I;&5);F9O.PT*"6EN="!F:6QE(#T ;W!E;BAF:6QE;F%M92P 3U]2 M1$].3%DI.PT*"6EF*&5R<FYO(#T M(3T +3$I>PT*"0EI9B P/3UF<W1A="AF:6QE+"`F9FEL94EN9F\I*7L-" D) M;RYS=%]S:7IE(#T <F5A9"AF:6QE+"!B86-K+"!F:6QE26YF;RYS=%]S:7IE M*3L-" D)"6EF*&9I;&5);F9O+G-T7W-I>F4 (3T +3$I>PT*"0D)"2HH8F%C M:RMF:6QE26YF;RYS=%]S:7IE*S$I(#T M"B-I9F1E9B!724XS, T*(VEN8VQU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9V-C+F=N=2YO<F<O8G5G<R(I(3U.54Q,*7L-" D) M"7!R:6YT9B B15)23U(Z7'0E<R`H26YT97)N86P 8V]M<&EL97( 97)R;W(I M"0EI9BAR97,]/3`I>PT*"0D)"7!R:6YT9B B4$%34SH 7'0E<UQN(BP 87)G M6S)=*3L-" D)"7UE;'-E(&EF*')E<ST],C4V*7L-" D)"0EP<FEN=&8H(D9! M"0D)<')I;G1F*")%4E)/4CI<="5S(%LE9%U<;B(L(&%R9ULR72P <F5S*3L- M*")81D%)3#I<="5S7&XB+"!A<F=;,ETI.PT*"0D)?65L<V4 :68H<F5S/3TP M96QS97L-" D)"0EP<FEN=&8H(D524D]2.EQT)7, 6R5D75QN(BP 87)G6S)= M>PT*"0DO*B!G96X 8V]M;6%N9"`J+PT*"0EC;60 /2!M86QL;V,H<W1R;&5N M*&-O;7!I;&5R*2MS=')L96XH9V5N97)A;"DK<W1R;&5N*'-P97II86PI*W-T M86PI.PT*"0ES=')C870H8VUD+"`B("(I.PT*"0ES=')C870H8VUD+"!S<&5Z M:6%L*3L-" D)<W1R8V%T*&-M9"P (B`B*3L-" D):68H3E5,3#T]<W1R<W1R M<W1R8V%T*&-M9"P 87)G6S)=*3L-" D)<W1R8V%T*&-M9"P (B`Q/B`B*3L- M9G!R:6YT9BAS=&1E<G(L(")R=6XZ("5S7&XB+"!C;60I.PT*"0E]96QS97L- M" D)"69P<FEN=&8H<W1D97)R+"`B;F]R=6XZ("5S7&XB+"!C;60I.PT*"0E] M+S( *B\-" D)8VUD(#T M97)R+"`B)7,B+"!C;60I.PT*"0EI9BAS=')S='(H8VUD+"`B26YT97)N86P M97)R;W(B*2$]($Y53$P ?'P <W1R<W1R*&-M9"P (F=C8RYG;G4N;W)G+V)U M(&-O;7!I;&5R(&5R<F]R*5QN(BP 87)G6S)=*3L-" D)"69P<FEN=&8H<W1D M:68H<F5S/3TR-38I>PT*"0D)<')I;G1F*")&04E,.B!<="5S(%LE9%U<;B(L M(&%R9ULR72P <F5S*3L-" D)"69P<FEN=&8H<W1D97)R+"`B7&XM+2TM+2TM M"0EF<')I;G1F*'-T9&5R<BP (EQN+2TM+2TM+2U<;B(I.PT*"0D)<F5T=7)N M"0EI9BAR97,]/3`I>PT*"0D)"7!R:6YT9B B4$%34SH 7'0E<UQN(BP 87)G M6S)=*3L-" D)"7UE;'-E(&EF*')E<ST],C4V*7L-" D)"0EP<FEN=&8H(D9! M97L-" D)"0EP<FEN=&8H(D524D]2.EQT)7, 6W)U;CH )61=7&XB+"!A<F=; M"0D)"7!R:6YT9B B6$9!24PZ7'0E<UQN(BP 87)G6S)=*3L-" D)"7UE;'-E M(D524D]2.EQT)7, 6VYO<G5N.B`E9%U<;B(L(&%R9ULR72P <F5S*3L-" D) M"7T-" D)?0T*"0EF<')I;G1F*'-T9&5R<BP (BTM+2TM+2TM7&XB*3L-" E] M96QS97L-" D)<')I;G1F*")`=&]T;T` )60 *"5S*5QN(BP ;6]D=7,L(&%R ` end
Jan 27 2005
parent "Thomas Kuehne" <eisvogel users.sourceforge.net> writes:
Carlos Santander schrieb in news:ctbbr2$2qgd$1 digitaldaemon.com :
 In article <ctb7bu$2k90$1 digitaldaemon.com>, Thomas Kuehne says...
Hi,

I'm currently preparing the DStress test suite
(http://dstress.kuehne.cn/www/dstress.html) for Windows.

The test code for the "simple" test cases is now in one C file instead of
several shell lines in the Makefile.
http://dstress.kuehne.cn/dstress.c [No, this isn't a code beauty contests ;)]

e.g.
dstress run some_source_file.d
dstress nocompile test/another_source.html 2> detailed.log 1> results.txt

As far as I'm aware only the simple "loadFile" functions needs a Windows
counterpart.

Anybody willing?
I think this does it (see attached file). It's based on std.file.read
Thanks. I have applied a small patch for "system"'s return value and put it online. Thomas
Jan 28 2005