fixed
This commit is contained in:
parent
6bfd116164
commit
18c5379148
2
build.sh
2
build.sh
@ -8,7 +8,7 @@ CC=cc
|
|||||||
RTFS=$(pwd)/rootfs
|
RTFS=$(pwd)/rootfs
|
||||||
|
|
||||||
#Tests
|
#Tests
|
||||||
if ! ./test.sh; then
|
if ! env CC=$CC ./test.sh; then
|
||||||
echo "Build failed" >&2
|
echo "Build failed" >&2
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
5
test.sh
5
test.sh
@ -1,29 +1,34 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
#Make
|
||||||
if ! make -h > /dev/null; then
|
if ! make -h > /dev/null; then
|
||||||
echo "[FAILED] Make is not installed..."
|
echo "[FAILED] Make is not installed..."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Git
|
||||||
if git > /dev/null; then
|
if git > /dev/null; then
|
||||||
echo "[FAILED] Git is not installed..."
|
echo "[FAILED] Git is not installed..."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#Texinfo
|
||||||
if ! makeinfo -h > /dev/null; then
|
if ! makeinfo -h > /dev/null; then
|
||||||
echo "[FAILED] Texinfo is not installed..."
|
echo "[FAILED] Texinfo is not installed..."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#C
|
||||||
out_name=$(mktemp XXXXXX)
|
out_name=$(mktemp XXXXXX)
|
||||||
|
|
||||||
echo "#include <stdio.h>" >> test.c
|
echo "#include <stdio.h>" >> test.c
|
||||||
echo "int main(void){return 0;}" >> test.c
|
echo "int main(void){return 0;}" >> test.c
|
||||||
|
|
||||||
$CC test.c -o $out_name
|
$CC test.c -o $out_name
|
||||||
|
chmod +x $out_name
|
||||||
rm test.c
|
rm test.c
|
||||||
|
|
||||||
if ! ./$out_name; then
|
if ! ./$out_name; then
|
||||||
|
Loading…
Reference in New Issue
Block a user