Csound Csound-dev Csound-tekno Search About

[Cs-dev] Csound Catalog Test Script for New Parser

Date2012-01-10 01:15
FromSteven Yi
Subject[Cs-dev] Csound Catalog Test Script for New Parser
Hi All,

I've committed a python test script in tests/testCsoundCatalog.py.
This script is designed to run with the Csound Catalog and tests using
all orc/sco files found in it.  Currently, I get:

TESTS COMPLETE:
	SUCCESS	1108
	FAIL	135
	TOTAL	1243

Also, some times a test hangs and I have to use ctrl-c twice to kill
Csound for that test to let the test runner continue.  Failed results
from a run using latest from Git can be viewed here:

http://www.kunstmusik.com/catalog_results.txt

To use the script, you will need to:

1. copy the Csound Catalog to your hard drive
2. Modify the testCsoundCatalog.py to point to the location of your
catalog (edit the SRC_DIR variable near the top of the script)
3. run 'python testCsoundCatalog.py'

Also to note, please do continue to add test CSD files to the tests
folder and update the tests.py file to add the new tests.  We may
eventually want to modify our test suite so that files can be just
auto-read from a directory much like how testCsoundCatalog.py works.

I'll work on a testCsoundManual.py file now and will commit that shortly.

Thanks!
steven

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-10 01:20
FromSteven Yi
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
I've now committed tests/testCsoundManual.py:

TESTS COMPLETE:
	SUCCESS	843
	FAIL	110
	TOTAL	953

Results posted at:

http://www.kunstmusik.com/manual_results.txt


On Mon, Jan 9, 2012 at 8:15 PM, Steven Yi  wrote:
> Hi All,
>
> I've committed a python test script in tests/testCsoundCatalog.py.
> This script is designed to run with the Csound Catalog and tests using
> all orc/sco files found in it.  Currently, I get:
>
> TESTS COMPLETE:
>        SUCCESS 1108
>        FAIL    135
>        TOTAL   1243
>
> Also, some times a test hangs and I have to use ctrl-c twice to kill
> Csound for that test to let the test runner continue.  Failed results
> from a run using latest from Git can be viewed here:
>
> http://www.kunstmusik.com/catalog_results.txt
>
> To use the script, you will need to:
>
> 1. copy the Csound Catalog to your hard drive
> 2. Modify the testCsoundCatalog.py to point to the location of your
> catalog (edit the SRC_DIR variable near the top of the script)
> 3. run 'python testCsoundCatalog.py'
>
> Also to note, please do continue to add test CSD files to the tests
> folder and update the tests.py file to add the new tests.  We may
> eventually want to modify our test suite so that files can be just
> auto-read from a directory much like how testCsoundCatalog.py works.
>
> I'll work on a testCsoundManual.py file now and will commit that shortly.
>
> Thanks!
> steven

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-10 07:18
FromTito Latini
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
AttachmentsNone  

Date2012-01-10 14:44
Frommenno
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
oink, that is weird. For example the example from the manual that does not
run for you, runs for me:

error: syntax error, unexpected T_IDENT_S, expecting T_OPCODE or ','  (token
"STKMandolin") line 22:
>>>asig	STKMandolin� <<<
Parsing failed due to invalid input!
Stopping on parser failure

When i play the example in CsoundQt it runs fine, also from the command
line. And i do not notice anything strange in the text when i view it in
Gedit.
Also other examples, like adsr.csd or birnd.csd run perfectly here?? 
Any ideas?

Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-Catalog-Test-Script-for-New-Parser-tp5133017p5134232.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-dev

Date2012-01-10 14:51
FromFelipe Sateler
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
Looks like a missing opcode in the test build.

On Tue, Jan 10, 2012 at 11:44, menno  wrote:
> oink, that is weird. For example the example from the manual that does not
> run for you, runs for me:
>
> error: syntax error, unexpected T_IDENT_S, expecting T_OPCODE or ','  (token
> "STKMandolin") line 22:
>>>>asig STKMandolin� <<<
> Parsing failed due to invalid input!
> Stopping on parser failure
>
> When i play the example in CsoundQt it runs fine, also from the command
> line. And i do not notice anything strange in the text when i view it in
> Gedit.
> Also other examples, like adsr.csd or birnd.csd run perfectly here??
> Any ideas?
>
> Menno
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-Catalog-Test-Script-for-New-Parser-tp5133017p5134232.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.so

Date2012-01-10 20:01
FromSteven Yi
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
Yes, some of the failures are definitely due to missing opcodes (i.e.
I don't have the dsssi opcodes here on OSX).  I'm also not building
the STK examples.  So we need to be careful in how we read the test
failures.

On Tue, Jan 10, 2012 at 9:51 AM, Felipe Sateler  wrote:
> Looks like a missing opcode in the test build.
>
> On Tue, Jan 10, 2012 at 11:44, menno  wrote:
>> oink, that is weird. For example the example from the manual that does not
>> run for you, runs for me:
>>
>> error: syntax error, unexpected T_IDENT_S, expecting T_OPCODE or ','  (token
>> "STKMandolin") line 22:
>>>>>asig STKMandolin� <<<
>> Parsing failed due to invalid input!
>> Stopping on parser failure
>>
>> When i play the example in CsoundQt it runs fine, also from the command
>> line. And i do not notice anything strange in the text when i view it in
>> Gedit.
>> Also other examples, like adsr.csd or birnd.csd run perfectly here??
>> Any ideas?
>>
>> Menno
>>
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Csound-Catalog-Test-Script-for-New-Parser-tp5133017p5134232.html
>> Sent from the Csound - Dev mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> --
>
> Saludos,
> Felipe Sateler
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cs

Date2012-01-10 20:36
Frommenno
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
of course, you are on OSX - didn't think of it.
i ran the testCsoundManual.py here on Xubuntu and got this result:
TESTS COMPLETE:
	SUCCESS	941
	FAIL	31
	TOTAL	972

What does the program test?
As i said, adsr.csd and birnd.csd work fine here from the command line and
CsoundQt, but when i look at the test results from your link it does not on
your machine. 
Is this test actually running the csds?

I have attached the text file that testCsoundManual.py produces, there are
some codes i do not understand but perhaps indicate a problem? It certainly
looks different from the list i saw on your link
http://www.kunstmusik.com/manual_results.txt
My output:  http://csound.1045644.n5.nabble.com/file/n5135152/test_examples
test_examples 

greetings
Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/Csound-Catalog-Test-Script-for-New-Parser-tp5133017p5135152.html
Sent from the Csound - Dev mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-10 22:30
FromSteven Yi
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
Attachmentst.csd  None  None  
Hi Tito,

Thanks for the fixes.  I'm still seeing an issue in a project of mine
that wasn't there earlier that I suspect is due to relinking.  There
error I see is:

error: syntax error, unexpected NEWLINE  (token "
") line 12:
>>>aout 	oscil3 1, kcps, iSineTable, iskip * -1 <<<
Parsing failed due to 1 syntax error!

I've attached a stripped down test file.  I have to go and rebuild in
XCode to do some debugging but I suspect the iskip * -1 is the issue
as in the larger file it happens in two places, both where there is a
-1 as a multiplier.

Thanks!
steven

On Tue, Jan 10, 2012 at 2:18 AM, Tito Latini  wrote:
>> TESTS COMPLETE:
>>       SUCCESS 843
>>       FAIL    110
>>       TOTAL   953
>>
>> Results posted at:
>>
>> http://www.kunstmusik.com/manual_results.txt
>
> It's a relink problem in verify_tree.
>
> instr 1
> ... opcode 1+1, 2+2, 3+3
>
>  fails
>
> instr 1
> ibla = 1+1
> ... opcode 1+1, 2+2, 3+3
>
>  no optimize
>
> tito
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2012-01-10 22:31
FromSteven Yi
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
Hi Menno,

The python script has the commandline used, which has:

csoundCommand = "csound -+msg_color=0 --new-parser --syntax-check-only
\"%s\" 2> %s"

so the flags are -+msg_color=0 --new-parser --syntax-check-only

Thanks!
steven

On Tue, Jan 10, 2012 at 3:36 PM, menno  wrote:
> of course, you are on OSX - didn't think of it.
> i ran the testCsoundManual.py here on Xubuntu and got this result:
> TESTS COMPLETE:
>        SUCCESS 941
>        FAIL    31
>        TOTAL   972
>
> What does the program test?
> As i said, adsr.csd and birnd.csd work fine here from the command line and
> CsoundQt, but when i look at the test results from your link it does not on
> your machine.
> Is this test actually running the csds?
>
> I have attached the text file that testCsoundManual.py produces, there are
> some codes i do not understand but perhaps indicate a problem? It certainly
> looks different from the list i saw on your link
> http://www.kunstmusik.com/manual_results.txt
> My output:  http://csound.1045644.n5.nabble.com/file/n5135152/test_examples
> test_examples
>
> greetings
> Menno
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Csound-Catalog-Test-Script-for-New-Parser-tp5133017p5135152.html
> Sent from the Csound - Dev mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-10 22:55
FromTito Latini
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
AttachmentsNone  

Date2012-01-10 23:15
FromVictor
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
Tito, you are a godsend.

Sent from my iPad

On 10 Jan 2012, at 22:55, Tito Latini  wrote:

> Steven, with the current git (d62b215bb418922)
> 
> without the syntax errors in the manual
> 
>  mac.csd
>  vtablewa.csd
>  vdelayxwq.csd
>  sfilist.csd
>  vbap8.csd
>  follow2.csd
>  tabmorphak.csd
>  trigseq.csd
>  poscil3.csd
>  sfinstr.csd
>  tableiw.csd
>  bitwise.csd
>  outic.csd
>  sfinstr3m.csd
>  lowresx.csd
> 
> without the opcodes that I cannot verify (wii, p5g and lua)
> 
>  qinf.csd
>  vst4cs.csd
>  p5g.csd
>  wii.csd
>  lua..
> 
> and without the correct midi tests
> 
>  moscil.csd
>  noteondur2.csd
>  mdelay.csd
>  scogen.csd
>  outkpc_fltk.csd
>  fluidcomplex.csd
>  noteondur.csd
> 
> I get
> 
> TESTS COMPLETE:
>    SUCCESS    916
>    FAIL    3
>    TOTAL    919
> 
> Tomorrow we will win
> 
> tito
> 
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create 
> new or port existing apps to sell to consumers worldwide. Explore the 
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create 
new or port existing apps to sell to consumers worldwide. Explore the 
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-11 03:29
FromSteven Yi
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
Fantastic! And to echo Victor's sentiments, I truly appreciate the
work you've put into all of this: thank you!

On Tue, Jan 10, 2012 at 5:55 PM, Tito Latini  wrote:
> Steven, with the current git (d62b215bb418922)
>
> without the syntax errors in the manual
>
>  mac.csd
>  vtablewa.csd
>  vdelayxwq.csd
>  sfilist.csd
>  vbap8.csd
>  follow2.csd
>  tabmorphak.csd
>  trigseq.csd
>  poscil3.csd
>  sfinstr.csd
>  tableiw.csd
>  bitwise.csd
>  outic.csd
>  sfinstr3m.csd
>  lowresx.csd
>
> without the opcodes that I cannot verify (wii, p5g and lua)
>
>  qinf.csd
>  vst4cs.csd
>  p5g.csd
>  wii.csd
>  lua..
>
> and without the correct midi tests
>
>  moscil.csd
>  noteondur2.csd
>  mdelay.csd
>  scogen.csd
>  outkpc_fltk.csd
>  fluidcomplex.csd
>  noteondur.csd
>
> I get
>
> TESTS COMPLETE:
>        SUCCESS 916
>        FAIL    3
>        TOTAL   919
>
> Tomorrow we will win
>
> tito
>
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-01-11 10:07
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Csound Catalog Test Script for New Parser
Cannot be relinkinking -- surely syntax

iskip * -1

-iskip will work and is syntactically cleaner


> Hi Tito,
>
> Thanks for the fixes.  I'm still seeing an issue in a project of mine
> that wasn't there earlier that I suspect is due to relinking.  There
> error I see is:
>
> error: syntax error, unexpected NEWLINE  (token "
> ") line 12:
>>>>aout 	oscil3 1, kcps, iSineTable, iskip * -1 <<<
> Parsing failed due to 1 syntax error!
>
> I've attached a stripped down test file.  I have to go and rebuild in
> XCode to do some debugging but I suspect the iskip * -1 is the issue
> as in the larger file it happens in two places, both where there is a
> -1 as a multiplier.
>
> Thanks!
> steven
>
> On Tue, Jan 10, 2012 at 2:18 AM, Tito Latini 
> wrote:
>>> TESTS COMPLETE:
>>>       SUCCESS 843
>>>       FAIL    110
>>>       TOTAL   953
>>>
>>> Results posted at:
>>>
>>> http://www.kunstmusik.com/manual_results.txt
>>
>> It's a relink problem in verify_tree.
>>
>> instr 1
>> ... opcode 1+1, 2+2, 3+3
>>
>>  fails
>>
>> instr 1
>> ibla = 1+1
>> ... opcode 1+1, 2+2, 3+3
>>
>>  no optimize
>>
>> tito
>>
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> ------------------------------------------------------------------------------
> Write once. Port to many.
> Get the SDK and tools to simplify cross-platform app development. Create
> new or port existing apps to sell to consumers worldwide. Explore the
> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
> http://p.sf.net/sfu/intel-appdev_______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net