Initial file system tests.
[pintos-anon] / grading / filesys / seq-block.inc
diff --git a/grading/filesys/seq-block.inc b/grading/filesys/seq-block.inc
new file mode 100644 (file)
index 0000000..e5424cd
--- /dev/null
@@ -0,0 +1,21 @@
+/* -*- c -*- */
+
+#include "fslib.h"
+
+static char buf[TEST_SIZE];
+
+static size_t
+return_block_size (void) 
+{
+  return BLOCK_SIZE;
+}
+
+int
+main (void) 
+{
+  msg ("begin");
+  seq_test ("noodle", buf, sizeof buf, sizeof buf, 4,
+            return_block_size, NULL);
+  msg ("end");
+  return 0;
+}