Commit Graph

244 Commits

Author SHA1 Message Date
Caleb Herpin
76b273ab31 Updated requirements for pytests 2021-07-28 20:14:29 -05:00
Caleb Herpin
0db8f7afc5 Ported to python 3.6.13 2021-07-28 18:06:55 -05:00
Caleb Herpin
644e945c79 Fixed small error 2021-07-28 17:42:43 -05:00
Caleb Herpin
ff6688929e Dynamically get sim name 2021-07-28 17:32:24 -05:00
Caleb Herpin
fb41b4cec8 Building civetserver before tests 2021-07-28 14:22:05 -05:00
Caleb Herpin
ffef636a1e Updated http tests 2021-07-28 14:18:36 -05:00
Caleb Herpin
d2a4164c2b Finding file 2021-07-28 11:58:06 -05:00
Caleb Herpin
eb97917e10 Printing directories 2021-07-28 11:34:09 -05:00
Caleb Herpin
676c0fe3a0 Listing dir 2021-07-28 11:21:10 -05:00
Caleb Herpin
f86b73828d Showing error of netstat command 2021-07-28 10:00:53 -05:00
Caleb Herpin
dc7ae0663d Only starting server once 2021-07-28 09:59:06 -05:00
Caleb Herpin
a906e1a65d Not building civet server 2021-07-28 09:38:30 -05:00
Caleb Herpin
ab988c5478 Not cleaning. 2021-07-28 09:26:29 -05:00
Caleb Herpin
b088f61d3a Seperate build commadn 2021-07-28 09:05:32 -05:00
Caleb Herpin
fd10748f9e Starting tests in github actions 2021-07-27 23:14:13 -05:00
Caleb Herpin
599ce5a1f6 Fixed pause function 2021-07-27 20:09:00 -05:00
Caleb Herpin
9259de72a8 fixed make command 2021-07-27 20:00:49 -05:00
Caleb Herpin
244479b146 Don't fail if no make file 2021-07-27 19:29:17 -05:00
Caleb Herpin
811f9c1f44 Fixed path to sim. Added Info job. 2021-07-27 18:33:20 -05:00
Caleb Herpin
4645fb627f Setting trick_home 2021-07-27 18:06:52 -05:00
Caleb Herpin
d52350fedf Exit code fixed 2021-07-27 16:50:30 -05:00
Caleb Herpin
a350941b10 Using requirements file 2021-07-27 13:26:29 -05:00
Caleb Herpin
193bc0f7af Using python 3.9 2021-07-27 11:44:15 -05:00
Caleb Herpin
83317a38d6 Added pip installs to test_linux.yml 2021-07-27 10:44:35 -05:00
Caleb Herpin
5d8ae314ac Removed gsetup 2021-07-27 09:51:32 -05:00
Caleb Herpin
4f3f4daf65 Added pytests to makefile 2021-07-26 22:35:18 -05:00
Caleb Herpin
2f4b1aa3d4 Changed webserver tests to not test ssl 2021-07-24 00:58:23 -05:00
Caleb Herpin
edc6f3f1d2 Fixed ssl test cases 2021-07-23 10:06:31 -05:00
Caleb Herpin
85b1a09632 Updated tests 2021-07-22 13:51:47 -05:00
Caleb Herpin
f9feac77c4 Moved gsupt tests 2021-07-22 10:59:21 -05:00
Caleb Herpin
63ed7c9dca Moved civet server tests. Fixed variable server test. 2021-07-22 10:48:49 -05:00
Caleb Herpin
e12da52fca CivetServer with swig is now working. 2021-07-16 10:42:28 -05:00
Caleb Herpin
c7b088fcff Not throwing error. 2021-07-15 16:37:06 -05:00
Caleb Herpin
8042806f48 Trying to get Swig to work with CivetServer. Not working 2021-07-06 12:38:14 -05:00
Caleb Herpin
0725d28914 Implemented endpoints 2021-07-01 20:59:08 -05:00
Caleb Herpin
e9cd688c3f Added CivetWeb.sm 2021-07-01 19:38:30 -05:00
Dan Jordan
0be5f72e35 Robustify YAML config file validation, enhance unit tests
* Fixed run path/too/deep duplication logic
* Add more unit testing to cover edge cases in the YAML file
* Unify type checking to reduce code duplication
* Empty sections like run: are still ignored but now produce an error
  to remind the user to clean them up.
* Make get_sims() work with labels=None
* Test SIMs within deep directory structures to exercise pathing logic
* Add test for invalid sim path: syntax

Refs #1159
2021-06-25 16:02:12 -05:00
Fennell, Scott P 263712616
68cf81736c Trick 19.4.0 Pre-release ver no 2021-06-23 11:49:41 -05:00
Fennell, Scott P 263712616
15534f7f56 Trick Release 19.3.0 2021-06-23 11:39:47 -05:00
Derek Bankieris
9b7e18af15 Create link_list files for Trickification
ICG and make_makefile_swig create py_link_list and io_link_list files
listing the files to be linked during sim builds. Trickified projects
require slightly altered lists.

Fixes #1155
2021-06-02 13:56:21 -05:00
Keith Vetter
832fc4e8a7
Fix compiler shadow warning for issue #1141 (#1150)
closes #1141 

If you use the -Wshadow flag, there are few compiler warnings
for shadowing. You can recreate with the Ball L1 sim:

    % vi S_overrides.mk
    TRICK_CFLAGS += -Wshadow -I../models
    TRICK_CXXFLAGS += -Wshadow -I../models
    % trick-CP
    ...

    In file included from build/S_source.cpp:3:0:
    build/../S_source.hh: In member function ‘void EventManagerSimObject::create_thread_process_event()’:
    build/../S_source.hh:425:23: warning: declaration of ‘name’ shadows a member of 'this' [-Wshadow]
    char* name = strdup(oss.str().c_str()) ;

To fix the S_source* generated code, it is just a
matter of changing default_trick_sys.sm.
2021-05-26 22:13:31 -05:00
Derek Bankieris
2c06ae6eaf Rename SIM_*/trick to SIM_*/.trick
Hide the non-zipped Python modules to indicate to users that changing
them will have no effect on the sim.

Refs #1144
2021-05-19 17:33:13 -05:00
Derek Bankieris
8d314fa1b1 Zip SWIG-generated python modules
Closes #1144
2021-05-19 17:23:33 -05:00
ddj116
1d9ea79107
Introducing TrickOps - An Extensible Sim Testing Framework (#1130)
* Introducing TrickOps - An Extensible Sim Testing Framework

Features:

* Multiple simultaneous sim builds, runs, file vs. file comparisons,
  arbitrary post-run analyses, valgrind of runs
* Real-time progress bars for sim builds and runs
* Exit code management lets users easily define success & failure
* Failed comparisons can optionally generate koviz error reports

See share/trick/trickops/README.md for details

* Add GitHub Actions Workflow for TrickOps for Ubuntu:20.04 & CentOS latest

* Adds python unit and doc tests to github actions for push / pull requests
  for Ubuntu:20.04 and CentOS 8:latest. MacOS still forthcoming.
* Also updates documentation with TrickOps information
* Remove duplicate / overwriting SIM_ definitions in ExampleWorkflow.py

* Address Code Review / Discussion

* Reduce set of sims tested in ExampleWorkflow.py to stable set
* Add ExampleWorkflow.py to GitHub Actions
* Clarify documentation and add image of TrickOps in action
* Error/Ignore valgrind entries in YAML file if platform == darwin

* Fix run.compare() logic error and add unit test to cover it

Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
2021-05-03 14:39:20 -05:00
Fennell, Scott P 263712616
92ad2a8063 reapply prerelease version numbers to master branch 2021-03-12 13:49:27 -06:00
Fennell, Scott P 263712616
7b933255aa Trick Release 19.2.3 2021-03-12 13:42:49 -06:00
Scott Fennell
6691b14e9e
1093 c str (#1119)
* update checkpoint_map.hh #1093

* #1093 update checkpoint_pair.hh

* #1093 update checkpoint_queue.hh

* #1093 update MM_write_checkpoint.cc

* #1093 update units_attach.i

* #1093 update checkpoint_sequence_stl.hh

* #1093 update checkpoint_stack.hh

* #1093 update swig_extend_str.i

* #1093 update swig_int_templates.hh

* #1093 update checkpoint_stack.hh and swig_int_typemap.i

* #1093 fix c_str issue without adding memory leaks

* #1093 fix c_str issue without adding memory leaks

* #1093 remove dangling pointers in injector sim object (without causing memory leaks)

* #1093 remove dangling pointers in injector sim object (without causing memory leaks)

* #1093 remove dangling pointers in Event Manaager sim object (without causing memory leaks)

* #1093 fix MonteCarlo_c_intf dangling pointers

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>

closes #1093
2021-03-12 13:23:35 -06:00
Fennell, Scott P 263712616
be407eaf13 Update version numbers to pre-release for 19.3.0 2021-01-11 13:59:31 -06:00
Fennell, Scott P 263712616
e0be091c7e Trick Release 19.2.2 2021-01-11 13:57:14 -06:00
Scott Fennell
939b3002d1
tv dynamic allocations post initialization and test update (#1090)
* #1086 append runtime allocations when sie is requested instead of initialization

* #1088 change sie error to warning and improve warning message

* #1089 lowercase powertools in centOS 8 config


closes #1086
closes #1088
closes #1089
2020-12-15 12:48:21 -06:00