-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy pathlaunch.sh
31 lines (25 loc) · 1.05 KB
/
launch.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
export PYTHONPATH=.
# update, as needed, to point to your own Python installation or
# just eliminate if you already have python executables in your path
PYTHON3=python3
echo "Running test cases -- should take about 15 minutes."
$PYTHON3 -m unittest discover > tests.txt
$PYTHON3 ch07/replacement.py >> tests.txt
echo "Generating figures and tables for the book. This will take about six hours"
$PYTHON3 book.py > book.txt
echo "Generating Timing results for each chapter. Should take about two hours"
$PYTHON3 algs/timing.py > algs.txt
$PYTHON3 ch02/timing.py > ch02.txt
$PYTHON3 ch03/timing.py > ch03.txt
$PYTHON3 ch04/timing.py > ch04.txt
$PYTHON3 ch05/timing.py > ch05.txt
$PYTHON3 ch07/timing.py > ch07.txt
echo "Challenge Exercise at end of each chapter. Might take up to fifteen hours"
$PYTHON3 ch01/challenge.py > ch01.txt
$PYTHON3 ch02/challenge.py > ch02.txt
$PYTHON3 ch03/challenge.py > ch03.txt
$PYTHON3 ch04/challenge.py > ch04.txt
$PYTHON3 ch05/challenge.py > ch05.txt
$PYTHON3 ch06/challenge.py > ch06.txt
$PYTHON3 ch07/challenge.py > ch07.txt