Browse Source

test(trycmd): generate device files

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Christina Sørensen 2 years ago
parent
commit
2195dead24
1 changed files with 19 additions and 0 deletions
  1. 19 0
      Justfile

+ 19 - 0
Justfile

@@ -216,6 +216,25 @@ gen_test_dir:
     cd ..
     
     # END git
+    
+    # BEGIN test_root
+    
+    sudo mkdir root
+    sudo chmod 777 root
+    sudo mkdir root/empty
+    
+    # END test_root
+    
+    # BEGIN mknod
+    
+    mkdir -p specials
+    
+    sudo mknod specials/block-device b  3 60
+    sudo mknod specials/char-device  c 14 40
+    sudo mknod specials/named-pipe   p
+
+    # END test_root
+    
     eza -l --grid;
 
 # Runs integration tests in nix sandbox