State of the tests

Benedikt Huber benedikt.huber at gmail.com
Mon Jan 26 12:04:46 EST 2009


Hi,
you have to run make in language-c/test first.
It is documented in the README of test/harness, but I stated  it more  
explicitly now.
benedikt

On 26.01.2009, at 17:54, Joe Thornber wrote:
> 2009/1/26 Benedikt Huber <benedikt.huber at gmail.com>:
>> On 26.01.2009, at 16:43, Joe Thornber wrote:
>> test/harness  should indeed work, but the mentioned deprecated.log  
>> tests
>> depend on having ruby installed (and maybe on the version of gcc  
>> you're
>> using).
>> Could you send the output of deprecated.log and deprecated- 
>> test.log, please
>> ?
>
>
> ejt at meynard:~/work/private/work/language-c-ejt2/test/harness$ ruby -- 
> version
> ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
> ejt at meynard:~/work/private/work/language-c-ejt2/test/harness$ make
> (cd ../..; cd examples ; make clean all > /dev/null)
> [1 of 1] Compiling Main             ( ParseAndPrint.hs,  
> ParseAndPrint.o )
> Linking ParseAndPrint ...
> [1 of 1] Compiling Main             ( ScanFile.hs, ScanFile.o )
> Linking ScanFile ...
> [1 of 1] Compiling Main             ( SearchDef.hs, SearchDef.o )
> Linking SearchDef ...
> [1 of 1] Compiling Main             ( TypeCheck.hs, TypeCheck.o )
> Linking TypeCheck ...
> [1 of 1] Compiling Main             ( ComputeSize.hs, ComputeSize.o )
> Linking ComputeSize ...
> (cd attributes && make clean all)
> make[1]: Entering directory
> `/home/ejt/work/private/work/language-c-ejt2/test/harness/attributes'
> rm -rf *.log
> sh ../../bin/compile_log.sh deprecated
> ../../bin/compile_log.sh: line 2: ../../bin/CTest: No such file or  
> directory
> --- deprecated.log      2009-01-26 16:53:25.000000000 +0000
> +++ deprecated_test.log 2009-01-26 16:53:25.000000000 +0000
> @@ -1,26 +0,0 @@
> - at POS warning: 'INT1' is deprecated
> - at POS warning: 'INT1' is deprecated
> - at POS warning: 'INT1' is deprecated
> - at POS warning: 'INT2' is deprecated
> - at POS warning: 'INT2' is deprecated
> - at POS warning: 'INT2' is deprecated
> - at POS warning: 'Color' is deprecated
> - at POS In function 'func1':
> - at POS warning: 'INT1' is deprecated
> - at POS warning: 'f1' is deprecated (declared at @POS)
> - at POS warning: 'x' is deprecated (declared at @POS)
> - at POS warning: 'y' is deprecated (declared at @POS)
> - at POS warning: 'g2' is deprecated (declared at @POS)
> - at POS warning: 'g3' is deprecated (declared at @POS)
> - at POS warning: 'f1' is deprecated (declared at @POS)
> - at POS In function 'func2':
> - at POS warning: 'field2' is deprecated (declared at @POS)
> - at POS warning: 'field4' is deprecated (declared at @POS)
> - at POS warning: 'u2' is deprecated (declared at @POS)
> - at POS warning: 'field6' is deprecated (declared at @POS)
> - at POS warning: 'field8' is deprecated (declared at @POS)
> - at POS At top level:
> - at POS warning: 'INT1' is deprecated
> - at POS warning: 'SS1' is deprecated (declared at @POS)
> - at POS warning: 'INT1' is deprecated
> - at POS warning: 'SS2' is deprecated (declared at @POS)
> make[1]: *** [deprecated] Error 1
> make[1]: Leaving directory
> `/home/ejt/work/private/work/language-c-ejt2/test/harness/attributes'
> make: *** [all] Error 2
> ejt at meynard:~/work/private/work/language-c-ejt2/test/harness$ gcc -- 
> version
> gcc (Debian 4.3.2-2) 4.3.3 20090110 (prerelease)
> Copyright (C) 2008 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There  
> is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR  
> PURPOSE.




More information about the Language-c mailing list