Ejemplo n.º 1
0
int
main(int argc, char *argv[])
{
  printf(1, "usertests starting\n");

  if(open("usertests.ran", 0) >= 0){
    printf(1, "already ran user tests -- rebuild fs.img\n");
    exit();
  }
  close(open("usertests.ran", O_CREATE));

  createdelete();
  linkunlink();
  concreate();
  fourfiles();
  sharedfd();

  bigargtest();
  bigwrite();
  bigargtest();
  bsstest();
  sbrktest();
  validatetest();

  opentest();
  writetest();
  writetest1();
  createtest();

  openiputtest();
  exitiputtest();
  iputtest();

  mem();
  pipe1();
  preempt();
  exitwait();

  rmdot();
  fourteen();
  bigfile();
  subdir();
  linktest();
  unlinkread();
  dirfile();
  iref();
  forktest();
  bigdir(); // slow
  exectest();

  exit();
}
Ejemplo n.º 2
0
int
main(int argc, char *argv[])
{
	writetest1();
  // int fd = open("foo.txt", O_CREATE | O_SMALLFILE);
  // printf(1, "hello %d\n", fd);
  // char buf = 'a';
  // char out;
  // write(fd, &buf, 1);
  // read(fd, &out, 1);
  // printf(1, "read %c\n", out);

  // close(fd);
  exit();
}