Skip to content
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

Commit 25a886f

Browse files
author
Wu Yu Wei
authored
Merge pull request #163 from HowJMay/shell_script_for_runner
feat(reg): Add shell script for running runner.py
2 parents 4e90937 + 1304e2f commit 25a886f

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

tests/regression/0_pull_build.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
git fetch origin develop
4+
git checkout -b pullrequest FETCH_HEAD
5+
6+
make
7+
8+
bazel run //accelerator &
9+
pid=$!
10+
11+
kill $pid
12+
wait $pid
13+
14+
trap 'exit 0' SIGTERM
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env bash
2+
3+
git fetch origin develop
4+
git checkout -b pullrequest FETCH_HEAD
5+
6+
make
7+
8+
bazel run //accelerator &
9+
TA_pid=$!
10+
sleep 60
11+
12+
if [ -z "$1" ]; then
13+
url="localhost:8000"
14+
else
15+
url="$1"
16+
fi
17+
18+
sudo pip install > requirements.txt
19+
python3 tests/regression/runner.py $url
20+
runner_pid=$!
21+
wait $runner_pid
22+
kill "$TA_pid"
23+
wait $TA_pid
24+
25+
trap 'exit 0' SIGTERM

tests/regression/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy==1.14.2
2+
requests==2.9.1

0 commit comments

Comments
 (0)