-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathruntests
More file actions
executable file
·44 lines (42 loc) · 1.15 KB
/
runtests
File metadata and controls
executable file
·44 lines (42 loc) · 1.15 KB
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
37
38
39
40
41
42
43
44
#! /usr/bin/bash
dir=`dirname "$0"`
cd "$dir"
vers=""
update="false"
instantiate="false"
resolve="false"
while [ $# -gt 0 ]; do
case "$1" in
-h | --help )
prog=$(basename "$0")
echo "usage: $prog [-h|--help] [-i|--instantiate] [-r|--resolve] [-u|--update] [version ...]"
exit 0
;;
-i | --instantiate )
instantiate="true"
;;
-r | --resolve )
resolve="true"
;;
-u | --update )
update="true"
;;
* )
vers="${vers:+$vers }$1"
;;
esac
shift
done
vers="${vers:=$(echo 1.{0..12})}"
for ver in $vers; do
echo "########################################### Julia version $ver"
rm -f Manifest.toml
test -r ".Manifest-$ver.toml" && cp -pf ".Manifest-$ver.toml" Manifest.toml
julia +$ver --color=yes --check-bounds=yes --depwarn=yes --project -e "
using Pkg;
$update && Pkg.update();
$instantiate && Pkg.instantiate();
$resolve && Pkg.resolve();
Pkg.test();"
test -r Manifest.toml && mv -f Manifest.toml ".Manifest-$ver.toml"
done