[Cs-dev] Csound Catalog Test Script for New Parser
Date | 2012-01-10 01:15 |
From | Steven 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 |
Date | 2012-01-10 01:20 |
From | Steven Yi |
Subject | Re: [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 |
Date | 2012-01-10 07:18 |
From | Tito Latini |
Subject | Re: [Cs-dev] Csound Catalog Test Script for New Parser |
Attachments | None |
Date | 2012-01-10 14:44 |
From | menno |
Subject | Re: [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 |
Date | 2012-01-10 14:51 |
From | Felipe Sateler |
Subject | Re: [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 |
Date | 2012-01-10 20:01 |
From | Steven Yi |
Subject | Re: [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 |
Date | 2012-01-10 20:36 |
From | menno |
Subject | Re: [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 |
Date | 2012-01-10 22:30 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound Catalog Test Script for New Parser |
Attachments | t.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 |
Date | 2012-01-10 22:31 |
From | Steven Yi |
Subject | Re: [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 |
Date | 2012-01-10 22:55 |
From | Tito Latini |
Subject | Re: [Cs-dev] Csound Catalog Test Script for New Parser |
Attachments | None |
Date | 2012-01-10 23:15 |
From | Victor |
Subject | Re: [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 |
Date | 2012-01-11 03:29 |
From | Steven Yi |
Subject | Re: [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 |
Date | 2012-01-11 10:07 |
From | jpff@cs.bath.ac.uk |
Subject | Re: [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 |