From 18c5379148a23fe9216112ba1c787df3ed27069f Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 12 Jan 2024 11:54:12 +0300 Subject: [PATCH] fixed --- build.sh | 2 +- test.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index cdd73ae..805ad69 100755 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ CC=cc RTFS=$(pwd)/rootfs #Tests -if ! ./test.sh; then +if ! env CC=$CC ./test.sh; then echo "Build failed" >&2 exit 1; fi diff --git a/test.sh b/test.sh index 1b0a0cb..eb4065e 100755 --- a/test.sh +++ b/test.sh @@ -1,29 +1,34 @@ #!/bin/sh +#Make if ! make -h > /dev/null; then echo "[FAILED] Make is not installed..." exit 1 fi +#Git if git > /dev/null; then echo "[FAILED] Git is not installed..." exit 1 fi +#Texinfo if ! makeinfo -h > /dev/null; then echo "[FAILED] Texinfo is not installed..." exit 1 fi +#C out_name=$(mktemp XXXXXX) echo "#include " >> test.c echo "int main(void){return 0;}" >> test.c $CC test.c -o $out_name +chmod +x $out_name rm test.c if ! ./$out_name; then