-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I have just added tests for qucs+ngspice backend. Both netlist and simulation tests were implemented. Sources are here: https://github.com/ra3xdh/qucs-test/tree/spice4qucs There was added four test projects:
- NG_RCL_prj RCL circuit --- AC+TRAN
- NG_BJT_prj BJT amplifier --- AC+TRAN
- NG_BJT-swp_prj BJT amplifier --- AC+TRAN+Parameter sweep
- NG_EDD-Q-test_prj Charge equations with EDD (Nonlinear capacitor) --- AC+TRAN
How it works: run.py automatically recognizes project names starting with NG_ and executes ngspice+qucs instead of qucsator.
I also have introduced command line option "--ngspice" for run.py. It have effect only together with --add-test or --reset. If this option is passsed schematic will be treated as ngspice simulation.
How to add new simulation tets:
run.py --add-test Schematic.sch --prefix where_qucs_installed/ --ngspice
I left --qucsator switch for ngspice-tests too. Test could be run as usual:
$ ./run.py --qucsator --project NG_EDD-Q-test_prj --prefix /mnt/Data2/qucs-0.0.19/bin/
Using Max. time: 90
Using rtol: 0.1
Using atol: 1e-05
Found Qucsator in: ['/mnt/Datei_2/qucs-0.0.19/bin/']
******************************************
** Test suite - Selected Test Projects **
******************************************
['NG_EDD-Q-test_prj']
********************************
** Test simulation and output **
********************************
Project : /home/vvk/qucs-test/testsuite/NG_EDD-Q-test_prj
Running : /mnt/Datei_2/qucs-0.0.19/bin/qucs -n -i /home/vvk/qucs-test/testsuite/NG_EDD-Q-test_prj/EDD-Q-test.sch -o /home/vvk/qucs-test/testsuite/NG_EDD-Q-test_prj/test_EDD-Q-test.dat --ngspice --run
############################################
# Report simulation result comparison #
--> Simulator location: /mnt/Datei_2/qucs-0.0.19/bin/
--> No significant numerical differences found.
# #
############################################
************************
* Qucsator test report *
************************
-----------------------------------------------------------------------
Project | Schem. Version | Sim. Runtime
-----------------------------------------------------------------------
NG_EDD-Q-test_prj | 0.0.19 | 0.465948
-----------------------------------------------------------------------
Qucsator version: Qucsator 0.0.19
Report produced on: 2015-07-25 18:11:30
-----------------------------------------------------------------------
Saved simulation report: report_simulation_Qucsator_0.0.19.txt
Saved coverage report: report_coverage_150725_181130.txt
############### Done. Return status: PASS ###############
Metadata
Metadata
Assignees
Labels
No labels