@@ -57,61 +57,64 @@ test:
5757 bash -c ' set -eu; make test-app; make test-zlib; make test-openssl'
5858.PHONY : test
5959
60+ test-all : test-app test-zlib test-openssl
61+ .PHONY : test-all
62+
6063test-app :
6164 @echo " Checking Debian version..."
6265 @cat /etc/debian_version
6366 @echo
6467 @echo " Testing cross-compiling application..."
6568 @rustc -vV
6669 @echo
67- @cd tests/hello-world \
70+ @cd tests/app \
6871\
6972 && echo "Compiling application (linux-gnu x86_64)..." \
7073 && cargo build -v --release --target x86_64-unknown-linux-gnu \
7174 && if [ "$$(uname -m)" = "x86_64" ]; then \
72- target/x86_64-unknown-linux-gnu/release/hello-world -test; \
75+ target/x86_64-unknown-linux-gnu/release/app -test; \
7376 fi \
74- && du -sh target/x86_64-unknown-linux-gnu/release/hello-world -test \
75- && file target/x86_64-unknown-linux-gnu/release/hello-world -test \
77+ && du -sh target/x86_64-unknown-linux-gnu/release/app -test \
78+ && file target/x86_64-unknown-linux-gnu/release/app -test \
7679 && echo \
7780\
7881 && echo "Compiling application (linux-musl x86_64)..." \
7982 && cargo build -v --release --target x86_64-unknown-linux-musl \
8083 && if [ "$$(uname -m)" = "x86_64" ]; then \
81- target/x86_64-unknown-linux-musl/release/hello-world -test; \
84+ target/x86_64-unknown-linux-musl/release/app -test; \
8285 fi \
83- && du -sh target/x86_64-unknown-linux-musl/release/hello-world -test \
84- && file target/x86_64-unknown-linux-musl/release/hello-world -test \
86+ && du -sh target/x86_64-unknown-linux-musl/release/app -test \
87+ && file target/x86_64-unknown-linux-musl/release/app -test \
8588 && echo \
8689\
8790 && echo "Cross-compiling application (apple-darwin x86_64)..." \
8891 && cargo build -v --release --target x86_64-apple-darwin \
89- && du -sh target/x86_64-apple-darwin/release/hello-world -test \
90- && file target/x86_64-apple-darwin/release/hello-world -test \
92+ && du -sh target/x86_64-apple-darwin/release/app -test \
93+ && file target/x86_64-apple-darwin/release/app -test \
9194 && echo \
9295\
9396 && echo "Cross-compiling application (linux-gnu aarch64)..." \
9497 && cargo build -v --release --target aarch64-unknown-linux-gnu \
9598 && if [ "$$(uname -m)" = "aarch64" ]; then \
96- target/aarch64-unknown-linux-gnu/release/hello-world -test; \
99+ target/aarch64-unknown-linux-gnu/release/app -test; \
97100 fi \
98- && du -sh target/aarch64-unknown-linux-gnu/release/hello-world -test \
99- && file target/aarch64-unknown-linux-gnu/release/hello-world -test \
101+ && du -sh target/aarch64-unknown-linux-gnu/release/app -test \
102+ && file target/aarch64-unknown-linux-gnu/release/app -test \
100103 && echo \
101104\
102105 && echo "Cross-compiling application (linux-musl aarch64)..." \
103106 && cargo build -v --release --target aarch64-unknown-linux-musl \
104107 && if [ "$$(uname -m)" = "aarch64" ]; then \
105- target/aarch64-unknown-linux-musl/release/hello-world -test; \
108+ target/aarch64-unknown-linux-musl/release/app -test; \
106109 fi \
107- && du -sh target/aarch64-unknown-linux-musl/release/hello-world -test \
108- && file target/aarch64-unknown-linux-musl/release/hello-world -test \
110+ && du -sh target/aarch64-unknown-linux-musl/release/app -test \
111+ && file target/aarch64-unknown-linux-musl/release/app -test \
109112 && echo \
110113\
111114 && echo "Cross-compiling application (apple-darwin aarch64)..." \
112115 && cargo build -v --release --target aarch64-apple-darwin \
113- && du -sh target/aarch64-apple-darwin/release/hello-world -test \
114- && file target/aarch64-apple-darwin/release/hello-world -test \
116+ && du -sh target/aarch64-apple-darwin/release/app -test \
117+ && file target/aarch64-apple-darwin/release/app -test \
115118 && echo
116119.ONESHELL : test-app
117120
@@ -189,56 +192,56 @@ test-openssl:
189192 && echo "Compiling application (linux-gnu x86_64)..." \
190193 && cargo build -v --release --target x86_64-unknown-linux-gnu \
191194 && if [ "$$(uname -m)" = "x86_64" ]; then \
192- target/x86_64-unknown-linux-gnu/release/openssl; \
195+ target/x86_64-unknown-linux-gnu/release/openssl-test ; \
193196 fi \
194- && du -sh target/x86_64-unknown-linux-gnu/release/openssl \
195- && file target/x86_64-unknown-linux-gnu/release/openssl \
197+ && du -sh target/x86_64-unknown-linux-gnu/release/openssl-test \
198+ && file target/x86_64-unknown-linux-gnu/release/openssl-test \
196199 && echo \
197200\
198201 && echo "Cross-compiling application (linux-gnu aarch64)..." \
199202 && CC=aarch64-linux-gnu-gcc \
200203 cargo build -v --release --target aarch64-unknown-linux-gnu \
201204 && if [ "$$(uname -m)" = "aarch64" ]; then \
202- target/aarch64-unknown-linux-gnu/release/openssl; \
205+ target/aarch64-unknown-linux-gnu/release/openssl-test ; \
203206 fi \
204- && du -sh target/aarch64-unknown-linux-gnu/release/openssl \
205- && file target/aarch64-unknown-linux-gnu/release/openssl \
207+ && du -sh target/aarch64-unknown-linux-gnu/release/openssl-test \
208+ && file target/aarch64-unknown-linux-gnu/release/openssl-test \
206209 && echo \
207210\
208211 && echo "Compiling application (linux-musl x86_64)..." \
209212 && OPENSSL_STATIC=1 \
210213 cargo build -v --release --target x86_64-unknown-linux-musl \
211214 && if [ "$$(uname -m)" = "x86_64" ]; then \
212- target/x86_64-unknown-linux-musl/release/openssl; \
215+ target/x86_64-unknown-linux-musl/release/openssl-test ; \
213216 fi \
214- && du -sh target/x86_64-unknown-linux-musl/release/openssl \
215- && file target/x86_64-unknown-linux-musl/release/openssl \
217+ && du -sh target/x86_64-unknown-linux-musl/release/openssl-test \
218+ && file target/x86_64-unknown-linux-musl/release/openssl-test \
216219 && echo \
217220\
218221 && echo "Cross-compiling application (apple-darwin x86_64)..." \
219222 && OPENSSL_STATIC=1 \
220223 CC=o64-clang CXX=o64-clang++ \
221224 cargo build -v --release --target x86_64-apple-darwin \
222- && du -sh target/x86_64-apple-darwin/release/openssl \
223- && file target/x86_64-apple-darwin/release/openssl \
225+ && du -sh target/x86_64-apple-darwin/release/openssl-test \
226+ && file target/x86_64-apple-darwin/release/openssl-test \
224227 && echo \
225228\
226229 && echo "Cross-compiling application (linux-musl aarch64)..." \
227230 && OPENSSL_STATIC=1 \
228231 cargo build -v --release --target aarch64-unknown-linux-musl \
229232 && if [ "$$(uname -m)" = "aarch64" ]; then \
230- target/aarch64-unknown-linux-musl/release/openssl;
233+ target/aarch64-unknown-linux-musl/release/openssl-test ;
231234 fi \
232- && du -sh target/aarch64-unknown-linux-musl/release/openssl \
233- && file target/aarch64-unknown-linux-musl/release/openssl \
235+ && du -sh target/aarch64-unknown-linux-musl/release/openssl-test \
236+ && file target/aarch64-unknown-linux-musl/release/openssl-test \
234237 && echo \
235238\
236239 && echo "Cross-compiling application (apple-darwin aarch64)..." \
237240 && OPENSSL_STATIC=1 \
238241 CC=oa64-clang CXX=oa64-clang++ \
239242 cargo build -v --release --target aarch64-apple-darwin \
240- && du -sh target/aarch64-apple-darwin/release/openssl \
241- && file target/aarch64-apple-darwin/release/openssl \
243+ && du -sh target/aarch64-apple-darwin/release/openssl-test \
244+ && file target/aarch64-apple-darwin/release/openssl-test \
242245 && echo
243246
244247.ONESHELL : test-openssl
0 commit comments