forked from OCP-on-NERC/python-batchtools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbt-test.sh
More file actions
74 lines (54 loc) · 1.68 KB
/
bt-test.sh
File metadata and controls
74 lines (54 loc) · 1.68 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# BJ
# --------------------------------------------------------------------------------
echo "testing bj valid commands"
python3 batchtools.py bj -h
python3 batchtools.py bj --help
echo "testing bj invalid commands"
python3 batchtools.py bj -z
echo "testing bj command"
br nvidia-smi &
br sleep 10 &
python3 batchtools.py bj
# BD
# ----------------------------------------------------------------------------------
echo "testing bd valid commands"
python3 batchtools.py bd -h
python3 batchtools.py bd --help
br nvidia-smi &
sleep 3
python3 batchtools.py bd
echo "testing bj invalid commands"
python3 batchtools.py bd -z
python3 batchtools.py bd thisisafakejob
#NEED TO ADD CASE FOR SPECIFIED WORKLOAD
# BL
# ----------------------------------------------------------------------------------
echo "testing bl valid commands"
python3 batchtools.py bl -h
python3 batchtools.py bl --help
python3 batchtools.py bl
python3 batchtools.py bl csw-dev-0
br nvidia-smi
# ADD CASES HERE FOR
br sleep 20 &
# Needs bash to get jobs
# python3 batchtools.py bl csw-dev-0 csw-dev-1
echo "testing bl invalid commands"
python3 batchtools.py bl -z
python3 batchtools.py bl thisisafakepod
# BQ
# ----------------------------------------------------------------------------------
echo "testing bq valid commands"
python3 batchtools.py bq -h
python3 batchtools.py bq --help
python3 batchtools.py bq
echo "testing bq invalid commands"
python3 batchtools.py bq randomnewarg
python3 batchtools.py bq -z
# BP
# ------------------------------------------------------------------------------------
echo "testing valid bp commands"
python3 batchtools.py bp -h
python3 batchtools.py bp --help
br nvidia-smi &
python3 batchtools.py bp