forked from sola-st/DynaPyt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_all.sh
More file actions
20 lines (17 loc) · 793 Bytes
/
Copy pathrun_all.sh
File metadata and controls
20 lines (17 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
# $1: repo name
# $2: test directory in repository root
# $3: analysis name
cd ./test/PythonRepos/$1
#exactTime=`date +%y%m%d%H%M%S`
printf "import pytest\n\npytest.main(['-n', '8', '--import-mode=importlib', '$(pwd)/$2/'])\n" > run_all_tests.py
[ -f requirements.txt ] && pip install --user -r requirements.txt
if [ $3 = "original" ]; then
[ -f myInstall.sh ] && bash ./myInstall.sh || pip install --user .
python run_all_tests.py #> ../../results/$1_original_${exactTime}_output.txt
else
python -m dynapyt.run_instrumentation --dir . --analysis $3
pip show dynapyt
[ -f myInstall.sh ] && bash ./myInstall.sh || pip install --user .
python -m dynapyt.run_analysis --entry run_all_tests.py --analysis $3 #> ../../results/$1_$2_${exactTime}_output.txt
fi