@@ -29,6 +29,10 @@ run-task () {
29
29
$PYTHON_EXEC $OPENFPGA_SCRIPT_PATH /run_fpga_task.py " $@ "
30
30
}
31
31
32
+ clean-run () {
33
+ rm -rf ./openfpga_flow/** /run???
34
+ }
35
+
32
36
run-modelsim () {
33
37
$PYTHON_EXEC $OPENFPGA_SCRIPT_PATH /run_modelsim.py " $@ "
34
38
}
@@ -48,13 +52,29 @@ goto-root () {
48
52
cd $OPENFPGA_PATH
49
53
}
50
54
55
+ # Run regression test locally
56
+ run-regression-local () {
57
+ cd ${OPENFPGA_PATH}
58
+ bash .github/workflows/* reg_test.sh
59
+ }
60
+
61
+ # Run regression test locally
62
+ run-regression-local-docker () {
63
+ cd ${OPENFPGA_PATH}
64
+ docker run \
65
+ -v $( pwd) /openfpga_flow:/opt/openfpga/ \
66
+ -v $( pwd) /.github:/opt/openfpga/ \
67
+ ghcr.io/lnis-uofu/openfpga-master:latest " bash .github/workflows/*reg_test.sh"
68
+ }
69
+
51
70
# Changes directory to task directory [goto_task <task_name> <run_num[default 0]>]
52
71
goto-task () {
53
72
if [ -z $1 ]; then
54
73
echo " requires task name goto_task <task_name> <run_num[default 0]>"
55
74
return
56
75
fi
57
76
goto_path=$OPENFPGA_TASK_PATH /$1
77
+ # Selects the run directory
58
78
run_num=" "
59
79
if [ ! -d $goto_path ]; then echo " Task directory not found" ; return ; fi
60
80
if [[ " $2 " =~ ' ^[0-9]+$' ]] ; then
@@ -67,6 +87,12 @@ goto-task () {
67
87
echo " Switching current dirctory to" $goto_path /$run_num
68
88
cd $goto_path /$run_num
69
89
fi
90
+ # Selects benchmark directory
91
+ select benchRun in $( ls -d ** /arch | sed " s/\/arch//" | head -n 20)
92
+ do
93
+ [ -d ${benchRun} ] && cd ${benchRun}
94
+ break
95
+ done
70
96
}
71
97
72
98
# Clears enviroment variables and fucntions
0 commit comments