Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 866b260

Browse files
committed
ISSUE 114: Adds test cases for FastCGI operation.
1 parent 6750f27 commit 866b260

File tree

3 files changed

+1688
-0
lines changed

3 files changed

+1688
-0
lines changed

test/shpec/makefile.sh

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
describe "Makefile"
2+
readonly DOCKER_NAME="makefile_test"
3+
4+
it "builds the image"
5+
local status_make_build
6+
7+
make build &> /dev/null
8+
status_make_build=${?}
9+
10+
assert equal ${status_make_build} 0
11+
end
12+
13+
it "creates the container"
14+
local status_make_install
15+
16+
make install &> /dev/null
17+
status_make_install=${?}
18+
19+
assert equal ${status_make_install} 0
20+
end
21+
22+
it "starts the container"
23+
local status_make_start
24+
25+
make start &> /dev/null
26+
status_make_start=${?}
27+
28+
assert equal ${status_make_start} 0
29+
end
30+
31+
it "pauses the container"
32+
local status_make_pause
33+
34+
make pause &> /dev/null
35+
status_make_pause=${?}
36+
37+
assert equal ${status_make_pause} 0
38+
end
39+
40+
it "unpauses the container"
41+
local status_make_unpause
42+
43+
make unpause &> /dev/null
44+
status_make_unpause=${?}
45+
46+
assert equal ${status_make_unpause} 0
47+
end
48+
49+
it "restarts the container"
50+
local status_make_restart
51+
52+
make restart &> /dev/null
53+
status_make_restart=${?}
54+
55+
assert equal ${status_make_restart} 0
56+
end
57+
58+
it "outputs the container logs"
59+
local status_make_logs
60+
local content_make_logs
61+
62+
content_make_logs=$(
63+
make logs
64+
)
65+
status_make_logs=${?}
66+
67+
assert equal ${status_make_logs} 0
68+
end
69+
70+
it "terminates the container"
71+
local status_make_terminate
72+
73+
make terminate &> /dev/null
74+
status_make_terminate=${?}
75+
76+
assert equal ${status_make_terminate} 0
77+
end
78+
79+
it "runs the container"
80+
local status_make_run
81+
82+
make run &> /dev/null
83+
status_make_run=${?}
84+
85+
assert equal ${status_make_run} 0
86+
end
87+
88+
it "stops the container"
89+
local status_make_stop
90+
91+
make stop &> /dev/null
92+
status_make_stop=${?}
93+
94+
assert equal ${status_make_stop} 0
95+
end
96+
97+
it "deletes the container"
98+
local status_make_rm
99+
100+
make rm &> /dev/null
101+
status_make_rm=${?}
102+
103+
assert equal ${status_make_rm} 0
104+
end
105+
106+
it "untags the image"
107+
local status_make_clean
108+
109+
make rmi &> /dev/null
110+
status_make_clean=${?}
111+
112+
assert equal ${status_make_clean} 0
113+
end
114+
end

0 commit comments

Comments
 (0)