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 # test_name=riscv_arithmetic_basic_test
riscvdv: 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 ${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
# 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 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 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.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 #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 #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 ## coremark_sweep.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# embench_arch_sweep.py # embench_arch_sweep.py
# David_Harris@hmc.edu 16 November 2023 # David_Harris@hmc.edu 16 November 2023
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 # 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 # Daniel Torres 2022
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1 # 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 Python Regression Build Automation Script

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
import os,sys,subprocess import os,sys,subprocess
from datetime import datetime, timezone, timedelta 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 # 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 # testgen-ADD-SUB.py
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
################################## ##################################
# testgen-ADDIW-SLLIW-SRLIW-SRAIW.py # 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 # testgen-ADDW-SUBW-SLLW-SRLW-SRAW.py
# #

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# #
# Python regression test for DC # Python regression test for DC
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22 # 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 # Python regression test for DC
# Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22 # Madeleine Masser-Frye mmasserfrye@hmc.edu 5/22

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#! /usr/bin/python3 #!/usr/bin/env python3
# author: Alessandro Maiuolo, Kevin Kim # author: Alessandro Maiuolo, Kevin Kim
# contact: amaiuolo@g.hmc.edu, kekim@hmc.edu # 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 # extract sqrt and float div testfloat vectors
# author: Alessandro Maiuolo # author: Alessandro Maiuolo

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python3
from fp_dataset import * from fp_dataset import *
#coverpoints=ibm_b1(128, 128, 'fadd.q', 2) #ibm_b1(flen, iflen, opcode, ops) #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 # PIPELINE.py
# #

View File

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

View File

@ -12,7 +12,7 @@ printf "\n\n#####\nStarting tests for $1\n#####\n\n"
if [[ "$2" != "-simonly" ]] if [[ "$2" != "-simonly" ]]
then then
cd $WALLY/testgen/privileged 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" printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
if [[ "$2" == "-c" ]] if [[ "$2" == "-c" ]]

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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