-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_all.sh
36 lines (33 loc) · 972 Bytes
/
run_all.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
32
33
34
35
36
#!/usr/bin/env bash
# If project not ready, generate cmake file.
if [[ ! -d build ]]; then
mkdir -p build
cd build
cmake ..
cd ..
else
rm -r build
mkdir -p build
cd build
cmake ..
cd ..
fi
# Build project.
cd build
make -j
cd ..
# Run all testcases.
# You can comment some lines to disable the run of specific examples.
mkdir -p output
# bin/PA1 testcases/spheres.txt output/spheres.bmp
# bin/PA1 testcases/bunny.txt output/bunny.bmp
# bin/PA1 testcases/dragon.txt output/dragon.bmp
# bin/PA1 testcases/room.txt output/room.bmp
# bin/PA1 testcases/earth.txt output/earth.bmp
# bin/PA1 testcases/drop.txt output/drop.bmp
# bin/PA1 testcases/dragon.txt output/dragon.bmp
# bin/PA1 testcases/depth.txt output/depth.bmp
# bin/PA1 testcases/porcelain.txt output/porcelain.bmp
# bin/PA1 testcases/texture.txt output/texture.bmp
# bin/PA1 testcases/threebody.txt output/threebody.bmp
# bin/PA1 testcases/wineglass.txt output/wineglass.bmp