@@ -11,6 +11,7 @@
/dup.out
/error
/fchdir
+/fcntl
/fsync
/ftruncate
/ftruncate.out
@@ -26,9 +26,16 @@ all: $(BINS)
clean:
rm -f $(BINS) *.out
+expected: $(BINS)
+ mkdir -p expected
+ for bin in $(BINS); do "./$${bin}" test args > "expected/$${bin}.stdout" 2> "expected/$${bin}.stderr"; done
+
run: $(BINS)
for bin in $(BINS); do echo "# $${bin} #"; "./$${bin}" test args; done
+test: $(BINS)
+ for bin in $(BINS); do echo "# $${bin} #"; "./$${bin}" test args; done
GCCHEAD=\
-nostdinc \
-nostdlib \
@@ -0,0 +1,2 @@
+malloc 0x55ac6c472618
+calloc 0x55ac6c472618
@@ -0,0 +1 @@
+./args test args
+-3.14
@@ -0,0 +1,6 @@
+-42
+555
+1234567890
+brk exited with status code 0
+initial cwd: /home/jeremy/Projects/relibc/tests
+final cwd: /home/jeremy/Projects/relibc
+Success: 0
+fd 4 duped into fd 5
+perror: No such file or directory
+errno: 2 = No such file or directory
+fchdir exited with status code 0
+fsync exited with status code 0
+ftruncate exited with status code 0
+egid: 1000, euid: 1000, gid: 1000, pgid: 23916, pid: 23933, ppid 23918, uid 1000
@@ -0,0 +1,8 @@
+percent: %
+string: String
+char: c
+int: -16
+uint: 32
+hex: beef
+HEX: C0FFEE
+string: end
+rmdir exited with status code 0
+Hello World!