Skip to content

Commit

Permalink
WIP : debugging questa_bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
kasun-buddhi committed Nov 5, 2024
1 parent 7696ec8 commit 9aa8cff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@ smoke:
- "vcs-uvm"
- "questa-uvm"
script:
- echo "[[[[[[[ QUESTA_BASHRC ]]]]]]]"
- echo $QUESTA_BASHRC
- source $QUESTA_BASHRC
- bash verif/regress/smoke-tests.sh
- if [[ $DV_SIMULATORS == *"spike"* ]]; then unset SPIKE_TANDEM; fi # dirty hack to do trace comparison between tandem execution and spike standalone
Expand Down
4 changes: 3 additions & 1 deletion verif/sim/cva6.py
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,8 @@ def check_spike_version():
# Get Spike hash from core-v-verif submodule
spike_hash = subprocess.run('git log -1 --pretty=tformat:%h', capture_output=True, text=True, shell=True, cwd=os.environ.get("SPIKE_SRC_DIR"))
spike_version = "1.1.1-dev " + spike_hash.stdout.strip()

print("ath = {}, hash = {}. run_output = {}".format(os.environ.get("SPIKE_SRC_DIR"), spike_hash,
spike_version))
# Get Spike User version
get_env_var("SPIKE_PATH")
user_spike_version = subprocess.run("$SPIKE_PATH/spike -v", capture_output=True, text=True, shell=True)
Expand Down Expand Up @@ -1174,6 +1175,7 @@ def check_spike_version():

logging.info(f"Spike Version: {user_spike_stderr_string}")

print("user_spike_stderr_string : {}".format(user_spike_stderr_string))
if user_spike_stderr_string != spike_version:
incorrect_version_exit("Spike", user_spike_stderr_string, spike_version)

Expand Down

0 comments on commit 9aa8cff

Please sign in to comment.