-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
executable file
·30 lines (24 loc) · 1.58 KB
/
test.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
#! /usr/bin/bash
TESTOUTPUT="./log/Test-All-$(date --iso-8601=ns).log"
mkdir -p log
echo "===================================< BEGIN TEST... $(date --iso-8601=ns)"
echo "----------> Begin test of randhex... $(date --iso-8601=ns)"
./bin/randhex -l1000 >> $TESTOUTPUT; echo "Ran test [0]"
./bin/randhex -h >> $TESTOUTPUT; echo "Ran test [1]"
./bin/randhex --upper -l1000 >> $TESTOUTPUT; echo "Ran test [2]"
./bin/randhex --mixed -l1000 >> $TESTOUTPUT; echo "Ran test [3]"
echo "----------> End test of randhex... $(date --iso-8601=ns)"
echo "----------> Begin test of randascii... $(date --iso-8601=ns)"
./bin/randascii -l100 >> $TESTOUTPUT; echo "Ran test [0]"
./bin/randascii -h >> $TESTOUTPUT; echo "Ran test [1]"
./bin/randascii -l100 --alphanumeric >> $TESTOUTPUT; echo "Ran test [2]"
echo "----------> End test of randascii... $(date --iso-8601=ns)"
echo "----------> Begin test of randfromargs... $(date --iso-8601=ns)"
./bin/randfromargs -a01 -l100 >> $TESTOUTPUT; echo "Ran test [0]"
./bin/randfromargs -h >> $TESTOUTPUT; echo "Ran test [1]"
./bin/randfromargs -a acgt -l100 >> $TESTOUTPUT; echo "Ran test [2]"
echo "----------> End test of randfromargs... $(date --iso-8601=ns)"
echo "===================================< END TEST... $(date --iso-8601=ns)"
# For GitHub actions
cat $TESTOUTPUT
rm -rf log