i installed castalia but i don't know how to run my simulation in castalia?
What files are required to run simulation or Create output files??
I get this error in my simulation:
Program "g++" not found in PATH
Related
My company still uses the old PredictionIO instead of HarnessActionML so I'm still working on it. I want to know where is the source code for "pio build" and "pio train" command lines.
I mean I can find "pio-start-all", "pio-stop-all" on /bin folder and open it to see the source code, but I can't find "pio build" and "pio train", "pio status" anywhere.
I want to understand more about how these 2 commands work. For example, I had an OutOfMemory JavaHeap error when running pio train command, turn out I had to add "--driver-memory 4G --executor-memory 4G" parameter to pio train command, so I wondered, what are other parameters that I can add when run pio train or pio build command? How do these commands work?
I want to use bullseye code coverage in my dos script.
And I have written below code. The test.cov file is created but result is not generated on test.cov.
SET MY_LOCAL_COV_FILE=c:\test.cov
SET COVFILE=%MY_LOCAL_COV_FILE%
SET COVBUILDZONE=%BUILD_NUMBER%
covselect --file "%MY_LOCAL_COV_FILE%" --add c:
cov01 --on
MSBuild ".\my.sln" /t:clean /p:Configuration="Debug"
cov01 --off
I think you have two problems.
You are not building the code, you have only run the 'clean' target from MSBuild, try running 'rebuild' which will clean and then compile the code so the code coverage instrumentation is inserted.
You are not running the built code so Bullseye can't get any meaningful coverage information. Before the 'conv01 --off' try running your executable, or unit test, or whatever it is you have built.
I used eclipse with dart plugins, when I run "pub build", I got the result below.
I had move the built directory to a VPS with Tomcat, the client code runs okay.
How to run the server side code(TreeFilesystemServer.dart)?
Because I had some server side code, the result says I might provide a preamble file.
Do I must provide the preamble file? What does preamble file mean?
Thanks in advance!
1.My project framework.
Main
--web
--allyEdit
--TreeFilesystemServer.dart <=(this is a server side code)
--Main.css
--Main.dart <=(this is the entry point of client )
--Main.html
--pubspec.lock
--pubspec.yaml
2.Below is the message when I run pub build.
[Info from Dart2JS]:
Compiling allyEdit_dart|web/allyEdit/TreeFilesystemServer.dart...
[Warning from Dart2JS on allyEdit_dart|web/allyEdit/TreeFilesystemServer.dart]:
When run on the command-line, the compiled output might require a preamble file located in:
<sdk>/lib/_internal/lib/preambles.
[Info from Dart2JS]:
Took 0:00:04.534259 to compile allyEdit_dart|web/allyEdit/TreeFilesystemServer.dart.
Built 1649 files to "build".
A "preamble file" for dart2js compiled output is a javascript file that sets up a JS environment sufficiently similar to that of a browser, so that dart2js output can be run outside of the browser.
The Dart project's tests can be run both in a browser, in the "d8" stand-alone JavaScript shell based on v8, and in "jsshell" which is a stand-alone version of the Mozilla JS engine.
For the last two, the compiled code needs a "preamble file" to be executed before the compiled script. The dart2js preamble files are located in sdk/lib/_internal/compiler/js_lib/preambles - they were moved here semi-recently, so some older references might point to a different location.
If you only run that dart2js compiled code in a browser, you don't need to provide a preamble file.
If you want to test the output in d8, you will need the d8 preamble file (which sets up hooks for printing and simulates timers).
I am using Eclipse Juno with GCC compiler for C code. I am trying to use gcno plugin to get code coverage.
of course I added -ftest-coverage -fprofile-arcs to the compiler and the linker flags.
But, when I click on profiling tools for code coverage I get the error in the image below:
"Recompile at least one of your C/C++ source files with the
"-fprofile-arcs" and "-ftest-coverage" options and link your
executable with "-lgcov". If you compile and link in a single gcc
call, you can use the gcc "--coverage" option. "
Please I need help with this error.
In order to use the gcov code coverage results you must not only compile with the compiler and linker flags you mentions, but you must also either run a unit test or run your program to gather the data. Gcov gathers the data as the points in your code are reached. If you do not run the program you will not generate any data.
I am trying to run nunit tests with gallio.
These tests run with nunit-console-x86.exe
When I run them with nunit-console.exe, I am getting System.BadImageFormatException
Running with Gallio.Echo.exe (installed the x86 bundle from gallio.org), I am getting the same exception. Is there a way to get gallio to use the nunit-console-x86.exe?
I am running the command "C:\Program Files (x86)\Gallio\bin\Gallio.echo.exe" /r:IsolatedProcess "C:\projectdata.Tests.dll"
and I am getting this exception:
Message
System.BadImageFormatException : Could not load file or assembly 'projectdata, Version=8.2.0.17, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.
Update: I figured out this is because I have project.dll(x86) and project.test.dll(Any CPU).
Any Ideas on how I can get gallio.echo to work for this? Is it possible to get a Gallio.Echo-x86.exe?
I was able to get it working by renaming the following files.
Gallio.Host.Elevated.exe --> Gallio.Host.Elevated.old.exe
Gallio.Host.Elevated.x86.exe --> Gallio.Host.Elevated.exe
Gallio.Host.exe --> Gallio.Host.old.exe
Gallio.Host.x86.exe --> Gallio.Host.exe
Note: You may want to create another copy of the gallio folder under program files to do this.
I have 2 copies. one in Program Files and one in Program Files (x86) with these changes.