forked from gyselroth/docxBox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·64 lines (44 loc) · 2.46 KB
/
test.sh
File metadata and controls
executable file
·64 lines (44 loc) · 2.46 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
#!/bin/bash
########################################################################################################################
# Run functional tests written with bats - https://github.com/sstephenson/bats #
# #
# Install bats on Linux: sudo apt-get install bats #
# Install bats on Mac: brew install bats #
########################################################################################################################
START_TIME=$SECONDS
printf "\033[4mTest display of help\033[0m\n"
bats ./test/functional/help.bats.sh
printf "\n\033[4mTest display of version number\033[0m\n"
bats ./test/functional/version.bats.sh
printf "\n\033[4mTest listing files in DOCX\033[0m\n"
bats ./test/functional/ls.bats.sh
printf "\n\033[4mTest listing files in DOCX as JSON\033[0m\n"
bats ./test/functional/lsj.bats.sh
printf "\n\033[4mTest listing referenced fonts in DOCX\033[0m\n"
bats ./test/functional/lsf.bats.sh
printf "\n\033[4mTest listing referenced fonts in DOCX as JSON\033[0m\n"
bats ./test/functional/lsfj.bats.sh
printf "\n\033[4mTest listing images in DOCX\033[0m\n"
bats ./test/functional/lsi.bats.sh
printf "\n\033[4mTest listing images in DOCX as JSON\033[0m\n"
bats ./test/functional/lsij.bats.sh
printf "\n\033[4mTest listing metadata in DOCX\033[0m\n"
bats ./test/functional/lsm.bats.sh
printf "\n\033[4mTest listing metadata in DOCX as JSON\033[0m\n"
bats ./test/functional/lsmj.bats.sh
printf "\n\033[4mTest replacing image in DOCX\033[0m\n"
bats ./test/functional/rpi.bats.sh
printf "\n\033[4mTest replacing text in DOCX\033[0m\n"
bats ./test/functional/rpt.bats.sh
printf "\n\033[4mTest modyfing or setting meta attributes in DOCX\033[0m\n"
bats ./test/functional/mm.bats.sh
printf "\n\033[4mTest output DOCX document as plaintext\033[0m\n"
bats ./test/functional/txt.bats.sh
printf "\n\033[4mTest unziping files from DOCX\033[0m\n"
bats ./test/functional/uz.bats.sh
printf "\n\033[4mTest unziping only media files from DOCX\033[0m\n"
bats ./test/functional/uzm.bats.sh
printf "\n\033[4mTest creating (zip) DOCX from files\033[0m\n"
bats ./test/functional/zip.bats.sh
ELAPSED_TIME=$(($SECONDS - $START_TIME))
printf "\nDone. Bats tests ran for $ELAPSED_TIME seconds.\n\n";