-
Notifications
You must be signed in to change notification settings - Fork 3
/
test.py
executable file
·58 lines (52 loc) · 2.05 KB
/
test.py
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
#!/usr/bin/env python3
from pool.loader import poolFactory
import logger
import logging
import time
from time import sleep
class test:
def run(self):
# chris found a program called figlet that makes BIG text and got a LITTLE excited.
log = logging.getLogger("pool.test-runner")
log.warn("==================================================")
sleep(0.001)
log.warn("|| ___ _ ______ __ ||")
sleep(0.001)
log.warn("|| / _ )___ ___ _(_)__ /_ __/__ ___ / /_ ||")
sleep(0.001)
log.warn("|| / _ / -_) _ `/ / _ \ / / / -_|_-</ __/ ||")
sleep(0.001)
log.warn("|| /____/\__/\_, /_/_//_/ /_/ \__/___/\__/ ||")
sleep(0.001)
log.warn("|| /___/ ||")
sleep(0.001)
log.warn("==================================================")
sleep(0.001)
log.info("Loading Pools config")
try:
fac = poolFactory("./config/pools.yaml")
except:
log.error("Error loading pool config")
raise
pools = fac.getPools()
for pool in pools:
poolAlgos = pool.getAlgos()
sleep(0.001)
log.info("Pool '%s' containing %s available algo(s)", pool.PoolName(), len(poolAlgos))
#Sleep for 1ms so our end banner is displayed correctly in logtrail.
sleep(0.001)
log.warn("=================================================")
sleep(0.001)
log.warn("|| ____ __ ______ __ ||")
sleep(0.001)
log.warn("|| / __/__ ___/ / /_ __/__ ___ / /_ ||")
sleep(0.001)
log.warn("|| / _// _ \/ _ / / / / -_|_-</ __/ ||")
sleep(0.001)
log.warn("|| /___/_//_/\_,_/ /_/ \__/___/\__/ ||")
sleep(0.001)
log.warn("|| ||")
sleep(0.001)
log.warn("=================================================")
t = test()
t.run()