forked from SheetJS/sheetjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
49 lines (43 loc) · 1.15 KB
/
test.sh
File metadata and controls
49 lines (43 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
45
46
47
48
49
#!/bin/bash
set -euxo pipefail
TZONES=(America/New_York Europe/London Asia/Seoul America/Los_Angeles Europe/Berlin Asia/Kolkata Asia/Shanghai America/Cancun America/Anchorage America/Barbados Asia/Tokyo America/Cayman Pacific/Honolulu America/Mexico_City Asia/Hong_Kong Europe/Paris Atlantic/Azores)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
if [ -e datetest.js ]; then
nvm use 20
# sudo n 20;
for TZ in ${TZONES[@]}; do
echo "$TZ"
env TZ="$TZ" mocha -R dot datetest.js
done
fi
# min test
for n in 20 10 0.8 0.10 0.12 4 6 8 12 14 16 18 22 24; do
nvm use $n
# sudo n $n
env WTF=1 make testdot_misc
for TZ in ${TZONES[@]}; do
# sudo n $n
nvm use $n
env WTF=1 TZ="$TZ" make testdot_misc
done
done
# full test
for n in 24 16 0.12; do
for TZ in America/New_York Asia/Seoul Asia/Kolkata Europe/Paris; do
# sudo n $n
nvm use $n
env WTF=1 TZ="$TZ" make testdot
done
done
# bun
for TZ in ${TZONES[@]}; do
echo "$TZ";
env TZ="$TZ" WTF=1 make test-bun_misc;
done
# deno
for TZ in ${TZONES[@]}; do
echo "$TZ";
env TZ="$TZ" WTF=1 make test-deno_misc;
env TZ="$TZ" WTF=1 make test-denocp_misc;
done