-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathrunall.sh
executable file
·51 lines (40 loc) · 1.45 KB
/
runall.sh
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
#!/usr/bin/env bash
ZIG_TEST='zig build test'
# -fsummary Print the build summary, even on success
# -freference-trace Reference trace should be shown per compile error
Args='--summary all -freference-trace'
## Test all algorithms
# Math
$ZIG_TEST -Dalgorithm=math/ceil $Args
$ZIG_TEST -Dalgorithm=math/crt $Args
$ZIG_TEST -Dalgorithm=math/primes $Args
$ZIG_TEST -Dalgorithm=math/fibonacci $Args
$ZIG_TEST -Dalgorithm=math/factorial $Args
$ZIG_TEST -Dalgorithm=math/euclidianGCDivisor $Args
$ZIG_TEST -Dalgorithm=math/gcd $Args
# Data Structures
$ZIG_TEST -Dalgorithm=ds/linkedlist $Args
$ZIG_TEST -Dalgorithm=ds/doublylinkedlist $Args
$ZIG_TEST -Dalgorithm=ds/lrucache $Args
$ZIG_TEST -Dalgorithm=ds/stack $Args
# Dynamic Programming
$ZIG_TEST -Dalgorithm=dp/coinChange $Args
$ZIG_TEST -Dalgorithm=dp/knapsack $Args
$ZIG_TEST -Dalgorithm=dp/longestIncreasingSubsequence $Args
$ZIG_TEST -Dalgorithm=dp/editDistance $Args
## Sort
$ZIG_TEST -Dalgorithm=sort/quicksort $Args
$ZIG_TEST -Dalgorithm=sort/bubblesort $Args
$ZIG_TEST -Dalgorithm=sort/radixsort $Args
$ZIG_TEST -Dalgorithm=sort/mergesort $Args
$ZIG_TEST -Dalgorithm=sort/insertsort $Args
## Search
$ZIG_TEST -Dalgorithm=search/bSearchTree $Args
$ZIG_TEST -Dalgorithm=search/rb $Args
## Threads
$ZIG_TEST -Dalgorithm=threads/threadpool $Args
## Web
$ZIG_TEST -Dalgorithm=web/httpClient $Args
$ZIG_TEST -Dalgorithm=web/httpServer $Args
$ZIG_TEST -Dalgorithm=web/tls1_3 $Args
## Add more...