mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 06:03:10 +00:00
Starting tests in github actions
This commit is contained in:
parent
599ce5a1f6
commit
fd10748f9e
5
.github/workflows/test_linux.yml
vendored
5
.github/workflows/test_linux.yml
vendored
@ -174,7 +174,10 @@ jobs:
|
||||
make
|
||||
- name: Run Civet Tests
|
||||
run: |
|
||||
cd share/trick/pymods/trick/
|
||||
cd ${{ github.workspace }}/trick_sims/Cannon/SIM_cannon_numeric
|
||||
${{ github.workspace }}/bin/trick-CP
|
||||
./S_main_Linux_9.3_x86_64.exe RUN_test/input.py
|
||||
cd #{{ github.workspace }}/share/trick/pymods/trick/
|
||||
. .venv/bin/activate
|
||||
./run_tests.py
|
||||
env:
|
||||
|
@ -58,7 +58,6 @@ trick.exec_set_freeze_command(True)""")
|
||||
|
||||
if params.get_start_sim():
|
||||
pathToSim=params.get_path_to_sim()
|
||||
pause()
|
||||
if not os.path.exists(os.path.join(pathToSim, "S_main_Linux_9.3_x86_64.exe")):
|
||||
raise RuntimeError(f"Sim executable does not exist in {pathToSim}. Build this sim before running this test.")
|
||||
cmd = f'echo "cd {pathToSim} && ./S_main_Linux_9.3_x86_64.exe {os.path.join(params.get_input_folder(), params.get_test_input_file())} &" | /bin/bash'
|
||||
|
@ -19,7 +19,7 @@ class Params:
|
||||
# self.__ssl_cert_path = "server.pem"
|
||||
# self.__ssl_cert_path = "/home/cherpin/git/trick_fork/trick_sims/Cannon/SIM_cannon_numeric/server.pem"
|
||||
self.__ssl_cert_path = "/home/cherpin/.ssl/server.pem"
|
||||
self.__build_sim = True
|
||||
self.__build_sim = False
|
||||
self.__start_sim = True
|
||||
self.__trick_home = os.environ.get("TRICK_HOME", None)
|
||||
if not self.__trick_home:
|
||||
|
@ -1,14 +1,14 @@
|
||||
web.server.enable = True
|
||||
web.server.debug = True
|
||||
web.server.ssl_enable = True
|
||||
web.server.path_to_ssl_cert = '/home/cherpin/.ssl/server.pem1'
|
||||
web.server.ssl_enable = False
|
||||
#web.server.path_to_ssl_cert = '/home/cherpin/.ssl/server.pem1'
|
||||
#web.server.path_to_ssl_cert = '/home/cherpin/.ssl/temp/server.pem'
|
||||
#web.server.path_to_ssl_cert = '/home/cherpin/git/trick_fork/share/trick/pymods/trick/tests/civet_server/temp1/server.pem'
|
||||
#web.server.path_to_ssl_cert = "server.pem"
|
||||
web.server.port = 5000
|
||||
web.server.error_log_file = "log.error"
|
||||
|
||||
trick.var_server_set_port(5001)
|
||||
web.server.port = 9000
|
||||
trick.var_server_set_port(9001)
|
||||
|
||||
exec(open("Modified_data/realtime.py").read())
|
||||
exec(open("Modified_data/cannon.dr").read())
|
||||
|
Loading…
Reference in New Issue
Block a user