Browse Source

Clean up tests

jD91mZM2 6 years ago
parent
commit
67d5976622
97 changed files with 84 additions and 84 deletions
  1. 38 38
      tests/.gitignore
  2. 45 45
      tests/Makefile
  3. 0 1
      tests/expected/exec.stdout
  4. 0 0
      tests/expected/fcntl/create.stderr
  5. 0 0
      tests/expected/fcntl/create.stdout
  6. 0 0
      tests/expected/fcntl/fcntl.stderr
  7. 0 0
      tests/expected/fcntl/fcntl.stdout
  8. 0 0
      tests/expected/stdio/getc_unget.stderr
  9. 0 0
      tests/expected/stdio/getc_unget.stdout
  10. 0 0
      tests/expected/stdio/printf.stderr
  11. 0 0
      tests/expected/stdio/printf.stdout
  12. 0 0
      tests/expected/stdio/rename.stderr
  13. 0 0
      tests/expected/stdio/rename.stdout
  14. 0 0
      tests/expected/stdio/scanf.stderr
  15. 0 0
      tests/expected/stdio/scanf.stdout
  16. 0 0
      tests/expected/stdio/sprintf.stderr
  17. 0 0
      tests/expected/stdio/sprintf.stdout
  18. 0 0
      tests/expected/stdlib/atof.stderr
  19. 0 0
      tests/expected/stdlib/atof.stdout
  20. 0 0
      tests/expected/stdlib/atoi.stderr
  21. 0 0
      tests/expected/stdlib/atoi.stdout
  22. 0 0
      tests/expected/stdlib/env.stderr
  23. 0 0
      tests/expected/stdlib/env.stdout
  24. 0 0
      tests/expected/stdlib/mkostemps.stderr
  25. 0 0
      tests/expected/stdlib/mkostemps.stdout
  26. 0 0
      tests/expected/stdlib/system.stderr
  27. 0 0
      tests/expected/stdlib/system.stdout
  28. 0 0
      tests/expected/string/mem.stderr
  29. 0 0
      tests/expected/string/mem.stdout
  30. 0 0
      tests/expected/time/asctime.stderr
  31. 0 0
      tests/expected/time/asctime.stdout
  32. 0 0
      tests/expected/time/gmtime.stderr
  33. 0 0
      tests/expected/time/gmtime.stdout
  34. 0 0
      tests/expected/time/localtime.stderr
  35. 0 0
      tests/expected/time/localtime.stdout
  36. 0 0
      tests/expected/time/mktime.stderr
  37. 0 0
      tests/expected/time/mktime.stdout
  38. 0 0
      tests/expected/time/strftime.stderr
  39. 0 0
      tests/expected/time/strftime.stdout
  40. 0 0
      tests/expected/time/time.stderr
  41. 0 0
      tests/expected/time/time.stdout
  42. 0 0
      tests/expected/unistd/brk.stderr
  43. 0 0
      tests/expected/unistd/brk.stdout
  44. 0 0
      tests/expected/unistd/dup.stderr
  45. 0 0
      tests/expected/unistd/dup.stdout
  46. 1 0
      tests/expected/unistd/exec.stderr
  47. 0 0
      tests/expected/unistd/exec.stdout
  48. 0 0
      tests/expected/unistd/fchdir.stderr
  49. 0 0
      tests/expected/unistd/fchdir.stdout
  50. 0 0
      tests/expected/unistd/fsync.stderr
  51. 0 0
      tests/expected/unistd/fsync.stdout
  52. 0 0
      tests/expected/unistd/ftruncate.stderr
  53. 0 0
      tests/expected/unistd/ftruncate.stdout
  54. 0 0
      tests/expected/unistd/pipe.stderr
  55. 0 0
      tests/expected/unistd/pipe.stdout
  56. 0 0
      tests/expected/unistd/rmdir.stderr
  57. 0 0
      tests/expected/unistd/rmdir.stdout
  58. 0 0
      tests/expected/unistd/sleep.stderr
  59. 0 0
      tests/expected/unistd/sleep.stdout
  60. 0 0
      tests/expected/unistd/write.stderr
  61. 0 0
      tests/expected/unistd/write.stdout
  62. 0 0
      tests/fcntl/create.c
  63. 0 0
      tests/fcntl/fcntl.c
  64. 0 0
      tests/stdio/getc_unget.c
  65. 0 0
      tests/stdio/printf.c
  66. 0 0
      tests/stdio/rename.c
  67. 0 0
      tests/stdio/scanf.c
  68. 0 0
      tests/stdio/sprintf.c
  69. 0 0
      tests/stdlib/alloc.c
  70. 0 0
      tests/stdlib/atof.c
  71. 0 0
      tests/stdlib/atoi.c
  72. 0 0
      tests/stdlib/env.c
  73. 0 0
      tests/stdlib/mkostemps.c
  74. 0 0
      tests/stdlib/system.c
  75. 0 0
      tests/string/mem.c
  76. 0 0
      tests/time/asctime.c
  77. 0 0
      tests/time/gmtime.c
  78. 0 0
      tests/time/localtime.c
  79. 0 0
      tests/time/mktime.c
  80. 0 0
      tests/time/strftime.c
  81. 0 0
      tests/time/time.c
  82. 0 0
      tests/unistd/brk.c
  83. 0 0
      tests/unistd/chdir.c
  84. 0 0
      tests/unistd/dup.c
  85. 0 0
      tests/unistd/exec.c
  86. 0 0
      tests/unistd/fchdir.c
  87. 0 0
      tests/unistd/fsync.c
  88. 0 0
      tests/unistd/ftruncate.c
  89. 0 0
      tests/unistd/gethostname.c
  90. 0 0
      tests/unistd/getid.c
  91. 0 0
      tests/unistd/link.c
  92. 0 0
      tests/unistd/pipe.c
  93. 0 0
      tests/unistd/rmdir.c
  94. 0 0
      tests/unistd/setid.c
  95. 0 0
      tests/unistd/sleep.c
  96. 0 0
      tests/unistd/unlink.c
  97. 0 0
      tests/unistd/write.c

+ 38 - 38
tests/.gitignore

@@ -1,54 +1,34 @@
 # Automatically generated by 'make ignore'
 /*.out
 /gen/
-alloc
 args
 arpainet
-asctime
 assert
-atof
-atoi
-brk
-chdir
-create
 ctype
-dup
-env
 error
-exec
-fchdir
-fcntl
-fsync
-ftruncate
-getc_unget
-gethostname
-getid
-gmtime
-link
+fcntl/create
+fcntl/fcntl
 locale
-localtime
 math
-mem
-mktime
-mkostemps
-pipe
-printf
-rename
-rmdir
-scanf
-setid
 setjmp
-sleep
-sprintf
 stdio/all
 stdio/freopen
 stdio/fwrite
+stdio/getc_unget
+stdio/printf
+stdio/rename
+stdio/scanf
+stdio/sprintf
 stdlib/a64l
-stdlib/bsearch
-stdlib/mktemp
+stdlib/atof
+stdlib/atoi
+stdlib/env
+stdlib/mkostemps
 stdlib/rand
 stdlib/strtol
 stdlib/strtoul
+stdlib/system
+string/mem
 string/strchr
 string/strcspn
 string/strncmp
@@ -58,15 +38,35 @@ string/strspn
 string/strstr
 string/strtok
 string/strtok_r
-strftime
 strings
-system
-time
+time/asctime
+time/gmtime
+time/localtime
+time/mktime
+time/strftime
+time/time
+unistd/brk
+unistd/dup
+unistd/exec
+unistd/fchdir
+unistd/fsync
+unistd/ftruncate
 unistd/getopt
-unlink
+unistd/pipe
+unistd/rmdir
+unistd/sleep
+unistd/write
 waitpid
 wchar/mbrtowc
 wchar/mbsrtowcs
 wchar/putwchar
 wchar/wcrtomb
-write
+stdlib/alloc
+stdlib/bsearch
+stdlib/mktemp
+unistd/chdir
+unistd/gethostname
+unistd/getid
+unistd/link
+unistd/setid
+unistd/unlink

+ 45 - 45
tests/Makefile

@@ -1,78 +1,78 @@
 # Binaries that should generate the same output every time
 EXPECT_BINS=\
+	args \
 	arpainet \
 	assert \
-	atof \
-	atoi \
-	brk \
-	args \
-	create \
 	ctype \
-	dup \
-	env \
 	error \
-	exec \
-	fchdir \
-	fcntl \
-	fsync \
-	ftruncate \
-	getc_unget \
+	fcntl/create \
+	fcntl/fcntl \
 	locale \
-	localtime \
 	math \
-	mem \
-	mktime \
-	mkostemps \
-	pipe \
-	printf \
-	rename \
-	rmdir \
-	scanf \
 	setjmp \
-	sleep \
-	sprintf \
-	strftime \
-	strings \
-	stdio/fwrite \
 	stdio/all \
 	stdio/freopen \
-	stdlib/strtol \
-	stdlib/strtoul \
+	stdio/fwrite \
+	stdio/getc_unget \
+	stdio/printf \
+	stdio/rename \
+	stdio/scanf \
+	stdio/sprintf \
 	stdlib/a64l \
+	stdlib/atof \
+	stdlib/atoi \
+	stdlib/env \
+	stdlib/mkostemps \
 	stdlib/rand \
-	string/strncmp \
-	string/strcspn \
+	stdlib/strtol \
+	stdlib/strtoul \
+	stdlib/system \
+	string/mem \
 	string/strchr \
+	string/strcspn \
+	string/strncmp \
+	string/strpbrk \
 	string/strrchr \
 	string/strspn \
 	string/strstr \
-	string/strpbrk \
 	string/strtok \
 	string/strtok_r \
-	system \
+	strings \
+	time/asctime \
+	time/gmtime \
+	time/localtime \
+	time/mktime \
+	time/strftime \
+	time/time \
+	unistd/brk \
+	unistd/dup \
+	unistd/exec \
+	unistd/fchdir \
+	unistd/fsync \
+	unistd/ftruncate \
 	unistd/getopt \
+	unistd/pipe \
+	unistd/rmdir \
+	unistd/sleep \
+	unistd/write \
 	waitpid \
 	wchar/mbrtowc \
 	wchar/mbsrtowcs \
 	wchar/putwchar \
-	wchar/wcrtomb \
-	write \
-	time \
-	gmtime \
-	asctime
+	wchar/wcrtomb
 
 # Binaries that may generate varied output
 BINS=\
 	$(EXPECT_BINS) \
-	alloc \
-	chdir \
-	gethostname \
-	getid \
-	link \
-	setid \
+	stdlib/alloc \
 	stdlib/bsearch \
 	stdlib/mktemp \
-	unlink
+	unistd/chdir \
+	unistd/gethostname \
+	unistd/getid \
+	unistd/link \
+	unistd/setid \
+	unistd/unlink
 
 all: $(BINS)
 

+ 0 - 1
tests/expected/exec.stdout

@@ -1 +0,0 @@
-Hello World!

+ 0 - 0
tests/expected/create.stderr → tests/expected/fcntl/create.stderr


+ 0 - 0
tests/expected/create.stdout → tests/expected/fcntl/create.stdout


+ 0 - 0
tests/expected/fcntl.stderr → tests/expected/fcntl/fcntl.stderr


+ 0 - 0
tests/expected/fcntl.stdout → tests/expected/fcntl/fcntl.stdout


+ 0 - 0
tests/expected/getc_unget.stderr → tests/expected/stdio/getc_unget.stderr


+ 0 - 0
tests/expected/getc_unget.stdout → tests/expected/stdio/getc_unget.stdout


+ 0 - 0
tests/expected/printf.stderr → tests/expected/stdio/printf.stderr


+ 0 - 0
tests/expected/printf.stdout → tests/expected/stdio/printf.stdout


+ 0 - 0
tests/expected/rename.stderr → tests/expected/stdio/rename.stderr


+ 0 - 0
tests/expected/rename.stdout → tests/expected/stdio/rename.stdout


+ 0 - 0
tests/expected/scanf.stderr → tests/expected/stdio/scanf.stderr


+ 0 - 0
tests/expected/scanf.stdout → tests/expected/stdio/scanf.stdout


+ 0 - 0
tests/expected/sprintf.stderr → tests/expected/stdio/sprintf.stderr


+ 0 - 0
tests/expected/sprintf.stdout → tests/expected/stdio/sprintf.stdout


+ 0 - 0
tests/expected/atof.stderr → tests/expected/stdlib/atof.stderr


+ 0 - 0
tests/expected/atof.stdout → tests/expected/stdlib/atof.stdout


+ 0 - 0
tests/expected/atoi.stderr → tests/expected/stdlib/atoi.stderr


+ 0 - 0
tests/expected/atoi.stdout → tests/expected/stdlib/atoi.stdout


+ 0 - 0
tests/expected/env.stderr → tests/expected/stdlib/env.stderr


+ 0 - 0
tests/expected/env.stdout → tests/expected/stdlib/env.stdout


+ 0 - 0
tests/expected/mkostemps.stderr → tests/expected/stdlib/mkostemps.stderr


+ 0 - 0
tests/expected/mkostemps.stdout → tests/expected/stdlib/mkostemps.stdout


+ 0 - 0
tests/expected/system.stderr → tests/expected/stdlib/system.stderr


+ 0 - 0
tests/expected/system.stdout → tests/expected/stdlib/system.stdout


+ 0 - 0
tests/expected/mem.stderr → tests/expected/string/mem.stderr


+ 0 - 0
tests/expected/mem.stdout → tests/expected/string/mem.stdout


+ 0 - 0
tests/expected/asctime.stderr → tests/expected/time/asctime.stderr


+ 0 - 0
tests/expected/asctime.stdout → tests/expected/time/asctime.stdout


+ 0 - 0
tests/expected/gmtime.stderr → tests/expected/time/gmtime.stderr


+ 0 - 0
tests/expected/gmtime.stdout → tests/expected/time/gmtime.stdout


+ 0 - 0
tests/expected/localtime.stderr → tests/expected/time/localtime.stderr


+ 0 - 0
tests/expected/localtime.stdout → tests/expected/time/localtime.stdout


+ 0 - 0
tests/expected/mktime.stderr → tests/expected/time/mktime.stderr


+ 0 - 0
tests/expected/mktime.stdout → tests/expected/time/mktime.stdout


+ 0 - 0
tests/expected/strftime.stderr → tests/expected/time/strftime.stderr


+ 0 - 0
tests/expected/strftime.stdout → tests/expected/time/strftime.stdout


+ 0 - 0
tests/expected/time.stderr → tests/expected/time/time.stderr


+ 0 - 0
tests/expected/time.stdout → tests/expected/time/time.stdout


+ 0 - 0
tests/expected/brk.stderr → tests/expected/unistd/brk.stderr


+ 0 - 0
tests/expected/brk.stdout → tests/expected/unistd/brk.stdout


+ 0 - 0
tests/expected/dup.stderr → tests/expected/unistd/dup.stderr


+ 0 - 0
tests/expected/dup.stdout → tests/expected/unistd/dup.stdout


+ 1 - 0
tests/expected/unistd/exec.stderr

@@ -0,0 +1 @@
+execv: No such file or directory

+ 0 - 0
tests/expected/exec.stderr → tests/expected/unistd/exec.stdout


+ 0 - 0
tests/expected/fchdir.stderr → tests/expected/unistd/fchdir.stderr


+ 0 - 0
tests/expected/fchdir.stdout → tests/expected/unistd/fchdir.stdout


+ 0 - 0
tests/expected/fsync.stderr → tests/expected/unistd/fsync.stderr


+ 0 - 0
tests/expected/fsync.stdout → tests/expected/unistd/fsync.stdout


+ 0 - 0
tests/expected/ftruncate.stderr → tests/expected/unistd/ftruncate.stderr


+ 0 - 0
tests/expected/ftruncate.stdout → tests/expected/unistd/ftruncate.stdout


+ 0 - 0
tests/expected/pipe.stderr → tests/expected/unistd/pipe.stderr


+ 0 - 0
tests/expected/pipe.stdout → tests/expected/unistd/pipe.stdout


+ 0 - 0
tests/expected/rmdir.stderr → tests/expected/unistd/rmdir.stderr


+ 0 - 0
tests/expected/rmdir.stdout → tests/expected/unistd/rmdir.stdout


+ 0 - 0
tests/expected/sleep.stderr → tests/expected/unistd/sleep.stderr


+ 0 - 0
tests/expected/sleep.stdout → tests/expected/unistd/sleep.stdout


+ 0 - 0
tests/expected/write.stderr → tests/expected/unistd/write.stderr


+ 0 - 0
tests/expected/write.stdout → tests/expected/unistd/write.stdout


+ 0 - 0
tests/create.c → tests/fcntl/create.c


+ 0 - 0
tests/fcntl.c → tests/fcntl/fcntl.c


+ 0 - 0
tests/getc_unget.c → tests/stdio/getc_unget.c


+ 0 - 0
tests/printf.c → tests/stdio/printf.c


+ 0 - 0
tests/rename.c → tests/stdio/rename.c


+ 0 - 0
tests/scanf.c → tests/stdio/scanf.c


+ 0 - 0
tests/sprintf.c → tests/stdio/sprintf.c


+ 0 - 0
tests/alloc.c → tests/stdlib/alloc.c


+ 0 - 0
tests/atof.c → tests/stdlib/atof.c


+ 0 - 0
tests/atoi.c → tests/stdlib/atoi.c


+ 0 - 0
tests/env.c → tests/stdlib/env.c


+ 0 - 0
tests/mkostemps.c → tests/stdlib/mkostemps.c


+ 0 - 0
tests/system.c → tests/stdlib/system.c


+ 0 - 0
tests/mem.c → tests/string/mem.c


+ 0 - 0
tests/asctime.c → tests/time/asctime.c


+ 0 - 0
tests/gmtime.c → tests/time/gmtime.c


+ 0 - 0
tests/localtime.c → tests/time/localtime.c


+ 0 - 0
tests/mktime.c → tests/time/mktime.c


+ 0 - 0
tests/strftime.c → tests/time/strftime.c


+ 0 - 0
tests/time.c → tests/time/time.c


+ 0 - 0
tests/brk.c → tests/unistd/brk.c


+ 0 - 0
tests/chdir.c → tests/unistd/chdir.c


+ 0 - 0
tests/dup.c → tests/unistd/dup.c


+ 0 - 0
tests/exec.c → tests/unistd/exec.c


+ 0 - 0
tests/fchdir.c → tests/unistd/fchdir.c


+ 0 - 0
tests/fsync.c → tests/unistd/fsync.c


+ 0 - 0
tests/ftruncate.c → tests/unistd/ftruncate.c


+ 0 - 0
tests/gethostname.c → tests/unistd/gethostname.c


+ 0 - 0
tests/getid.c → tests/unistd/getid.c


+ 0 - 0
tests/link.c → tests/unistd/link.c


+ 0 - 0
tests/pipe.c → tests/unistd/pipe.c


+ 0 - 0
tests/rmdir.c → tests/unistd/rmdir.c


+ 0 - 0
tests/setid.c → tests/unistd/setid.c


+ 0 - 0
tests/sleep.c → tests/unistd/sleep.c


+ 0 - 0
tests/unlink.c → tests/unistd/unlink.c


+ 0 - 0
tests/write.c → tests/unistd/write.c