-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathrun-tests
More file actions
executable file
·33 lines (26 loc) · 741 Bytes
/
Copy pathrun-tests
File metadata and controls
executable file
·33 lines (26 loc) · 741 Bytes
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
#!/usr/bin/env bash
set -e
################################################################################
#
# This script compiles and runs the tests for all problem solutions in
# this repository. It is intended to be used for automated verification.
#
################################################################################
for chapter in $(ls -d */)
do
cd $chapter
for problem in $(ls -d */)
do
cd $problem
if [ -e Makefile ]
then
make test > /dev/null
echo "Passed tests for problem ${problem/\//}"
else
echo "Problem ${problem/\//} contains no tests"
fi
cd ..
done
cd ..
done
echo "Success: all tests passed!"