@@ -1,3 +1,4 @@
+/gen/
/alloc
/args
/atof
@@ -27,7 +27,31 @@ clean:
rm -f $(BINS) *.out
run: $(BINS)
- for bin in $(BINS); do echo "# $${bin} #"; "./$${bin}" test args; done
+ for bin in $(BINS); \
+ do
+ echo "# $${bin} #"; \
+ "./$${bin}" test args; \
+ done
+
+expected: $(BINS)
+ rm -rf expected
+ mkdir -p expected
+ do \
+ "./$${bin}" test args > "expected/$${bin}.stdout" 2> "expected/$${bin}.stderr"; \
+verify: $(BINS)
+ rm -rf gen
+ mkdir -p gen
+ "./$${bin}" test args > "gen/$${bin}.stdout" 2> "gen/$${bin}.stderr"; \
+ diff -u "gen/$${bin}.stdout" "expected/$${bin}.stdout"; \
+ diff -u "gen/$${bin}.stderr" "expected/$${bin}.stderr"; \
GCCHEAD=\
-nostdinc \
@@ -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!