Starting tests in github actions

This commit is contained in:
Caleb Herpin 2021-07-27 23:14:13 -05:00
parent 599ce5a1f6
commit fd10748f9e
4 changed files with 9 additions and 7 deletions

View File

@ -174,7 +174,10 @@ jobs:
make make
- name: Run Civet Tests - name: Run Civet Tests
run: | 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 . .venv/bin/activate
./run_tests.py ./run_tests.py
env: env:

View File

@ -58,7 +58,6 @@ trick.exec_set_freeze_command(True)""")
if params.get_start_sim(): if params.get_start_sim():
pathToSim=params.get_path_to_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")): 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.") 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' 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'

View File

@ -19,7 +19,7 @@ class Params:
# self.__ssl_cert_path = "server.pem" # 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/git/trick_fork/trick_sims/Cannon/SIM_cannon_numeric/server.pem"
self.__ssl_cert_path = "/home/cherpin/.ssl/server.pem" self.__ssl_cert_path = "/home/cherpin/.ssl/server.pem"
self.__build_sim = True self.__build_sim = False
self.__start_sim = True self.__start_sim = True
self.__trick_home = os.environ.get("TRICK_HOME", None) self.__trick_home = os.environ.get("TRICK_HOME", None)
if not self.__trick_home: if not self.__trick_home:

View File

@ -1,14 +1,14 @@
web.server.enable = True web.server.enable = True
web.server.debug = True web.server.debug = True
web.server.ssl_enable = True 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/server.pem1'
#web.server.path_to_ssl_cert = '/home/cherpin/.ssl/temp/server.pem' #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 = '/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.path_to_ssl_cert = "server.pem"
web.server.port = 5000
web.server.error_log_file = "log.error" 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/realtime.py").read())
exec(open("Modified_data/cannon.dr").read()) exec(open("Modified_data/cannon.dr").read())