@@ -4,10 +4,7 @@ set -ex
cargo build
cargo build --manifest-path src/crt0/Cargo.toml
-cd openlibm
-make
-cd ..
+CFLAGS=-fno-stack-protector make -C openlibm
-cd tests
-make clean
-make run
+make -C tests clean
+make -C tests run
@@ -1,3 +1,4 @@
+/*.out
/gen/
/alloc
/args
@@ -6,19 +7,15 @@
/brk
/chdir
/create
-/create.out
/ctype
/dup
-/dup.out
/error
/fchdir
/fcntl
/fsync
/ftruncate
-/ftruncate.out
/getid
/link
-/link.out
/math
/mem
/setid
@@ -36,5 +33,5 @@
/string/strrchr
/string/strspn
/unlink
-/unlink.out
/write
+
@@ -4,7 +4,6 @@ EXPECT_BINS=\
atoi \
brk \
args \
- chdir \
create \
ctype \
dup \
@@ -35,6 +34,7 @@ EXPECT_BINS=\
BINS=\
$(EXPECT_BINS) \
alloc \
+ chdir \
getid \
setid
@@ -1,2 +0,0 @@
-initial cwd: /home/jeremy/Projects/relibc/tests
-final cwd: /home/jeremy/Projects/relibc
@@ -0,0 +1 @@
+cos(3.14) = -0.9999987483024597
+#include <stdio.h>
#include <unistd.h>
int main(int argc, char** argv) {
@@ -1,5 +1,8 @@
#include <math.h>
int main(int argc, char ** argv) {
- float c = cos(3.14);
+ double pi = 3.14;
+ float c = cos(pi);
+ printf("cos(%f) = %f\n", pi, c);
}