Update python shebangs to use /usr/bin/env python3 so virtual environment can be used (also aids in general portability)

This commit is contained in:
Jordan Carlin 2024-07-03 20:42:55 -07:00
parent 01bce0c0b8
commit e6e070f4e4
61 changed files with 69 additions and 69 deletions

View File

@ -51,9 +51,9 @@ funcovreg:
# test_name=riscv_arithmetic_basic_test
riscvdv:
python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gen,gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
# python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
# python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps iss_sim >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
${RISCV}/riscv-python/bin/python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gen,gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
# ${RISCV}/riscv-python/bin/python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps gcc_compile >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
# ${RISCV}/riscv-python/bin/python3 ${WALLY}/addins/riscv-dv/run.py --test ${test_name} --target rv64gc --output tests/riscvdv --iterations 1 -si questa --iss spike --verbose --cov --seed 0 --steps iss_sim >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
# run-elf.bash --seed ${SIM}/questa/seed0.txt --verbose --elf ${WALLY}/tests/riscvdv/asm_test/${test_name}_0.o >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
#run-elf-cov.bash --seed ${SIM}/questa/seed0.txt --verbose --coverdb ${SIM}/questa/riscv.ucdb --elf ${WALLY}/tests/riscvdv/asm_test/${test_name}_0.o >> ${SIM}/questa/functcov_logs/${test_name}.log 2>&1
#cp ${SIM}/questa/riscv.ucdb ${SIM}/questa/functcov_ucdbs/${test_name}.ucdb

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
##################################################
## coremark_sweep.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# embench_arch_sweep.py
# David_Harris@hmc.edu 16 November 2023
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# Daniel Torres 2022
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
"""
Python Regression Build Automation Script

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
###########################################
## Written: Rose Thompson ross1728@gmail.com

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
#
# regression-wally

View File

@ -17,5 +17,5 @@ source ./setup.sh
cd $PYTHON_SCRIPT
pwd
echo "Running python file"
python nightly_build.py
$RISCV/riscv-python/bin/python nightly_build.py
echo "Finished"

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# wsim
# David_Harris@hmc.edu 5 April 2024

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
###########################################
## fpgaTop.sv
##

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
###########################################
## probe.sh
##

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
###########################################
## proberange.sh
##
@ -13,15 +13,15 @@
##
## SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
##
## Licensed under the Solderpad Hardware License v 2.1 (the “License”); you may not use this file
## except in compliance with the License, or, at your option, the Apache License version 2.0. You
## Licensed under the Solderpad Hardware License v 2.1 (the “License”); you may not use this file
## except in compliance with the License, or, at your option, the Apache License version 2.0. You
## may obtain a copy of the License at
##
## https:##solderpad.org#licenses#SHL-2.1#
##
## Unless required by applicable law or agreed to in writing, any work distributed under the
## License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
## either express or implied. See the License for the specific language governing permissions
## Unless required by applicable law or agreed to in writing, any work distributed under the
## License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
## either express or implied. See the License for the specific language governing permissions
## and limitations under the License.
################################################################################################
@ -41,7 +41,7 @@ set_property C_INPUT_PIPE_STAGES 0 [get_debug_cores u_ila_0]
set_property C_EN_STRG_QUAL false [get_debug_cores u_ila_0]
set_property ALL_PROBE_SAME_MU true [get_debug_cores u_ila_0]
set_property ALL_PROBE_SAME_MU_CNT 1 [get_debug_cores u_ila_0]
startgroup
startgroup
set_property C_EN_STRG_QUAL true [get_debug_cores u_ila_0 ]
set_property C_ADV_TRIGGER true [get_debug_cores u_ila_0 ]
set_property ALL_PROBE_SAME_MU true [get_debug_cores u_ila_0 ]

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
###########################################
## probe.sh
##

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import sys
import re

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# disassembleBootTrace.py
# David_Harris@hmc.edu 22 November 2023

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
import sys, os
from functools import reduce

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
import sys, fileinput, re
# Ross Thompson

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
import sys, os
from functools import reduce

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
import fileinput, sys
parseState = "idle"

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
import sys, os
################

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
import sys, os
################

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
#
# regression-wally

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import sys, os, subprocess
def main():

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import os,sys,subprocess
from datetime import datetime, timezone, timedelta

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-ADD-SUB-SLT-SLTU-XOR-OR-AND.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-ADD-SUB.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-ADDIW-SLLIW-SRLIW-SRAIW.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-ADDW-SUBW-SLLW-SRLW-SRAW.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-branch.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-ADD-SUB.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-JAL.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-LOAD.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
###################################################################################################
# testgen-PIPELINE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-SLL-SRL-SRA.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-ADD-SUB.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-ADD-SUB.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-STORE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-VIRTUALMEMORY.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# Madeleine Masser-Frye (mmmasserfrye@hmc.edu) 06/2022
from collections import namedtuple
import re

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Python regression test for DC
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
#
# Python regression test for DC
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
"""
wrapperGen.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# Madeleine Masser-Frye mmasserfrye@hmc.edu 1/2023
import subprocess

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
import sys, fileinput

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
# author: Alessandro Maiuolo, Kevin Kim
# contact: amaiuolo@g.hmc.edu, kekim@hmc.edu

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3
#!/usr/bin/env python3
# extract sqrt and float div testfloat vectors
# author: Alessandro Maiuolo

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
from fp_dataset import *
#coverpoints=ibm_b1(128, 128, 'fadd.q', 2) #ibm_b1(flen, iflen, opcode, ops)

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# PIPELINE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# covergen.py
#

View File

@ -12,7 +12,7 @@ printf "\n\n#####\nStarting tests for $1\n#####\n\n"
if [[ "$2" != "-simonly" ]]
then
cd $WALLY/testgen/privileged
python3 "testgen-$1.py"
$RISCV/riscv-python/bin/python3 "testgen-$1.py"
printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
if [[ "$2" == "-c" ]]

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-CAUSE.py (new)
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-CSR-PERMISSIONS.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-CAUSE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-CAUSE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-IE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-IE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-CAUSE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-CAUSE.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-TVAL.py
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen-TVEC.py (new)
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3
#!/usr/bin/env python3
##################################
# testgen.py
#