From e361f99801af41dbb241e246b179f03a743f5258 Mon Sep 17 00:00:00 2001
From: Florent Gluck <florent.gluck@hesge.ch>
Date: Wed, 16 Apr 2025 14:28:36 +0200
Subject: [PATCH] added test files for serie2

---
 .../exercices/serie2-test-files/group         | 82 +++++++++++++++++++
 .../exercices/serie2-test-files/passwd        | 45 ++++++++++
 .../serie2-test-files/test/subtest/bigest.txt | 30 +++++++
 .../test/subtest/subsubtest/hop.txt           |  1 +
 .../test/subtest/subsubtest/hp2.txt           |  1 +
 .../serie2-test-files/test/subtest2/file1.txt |  1 +
 .../serie2-test-files/test/subtest2/file2.txt |  1 +
 .../exercices/serie2-test-files/test/top.txt  |  1 +
 8 files changed, 162 insertions(+)
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/group
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/passwd
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/test/subtest/bigest.txt
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hop.txt
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hp2.txt
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file1.txt
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file2.txt
 create mode 100644 Cours/03-Scripting/exercices/serie2-test-files/test/top.txt

diff --git a/Cours/03-Scripting/exercices/serie2-test-files/group b/Cours/03-Scripting/exercices/serie2-test-files/group
new file mode 100644
index 0000000..f2914bf
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/group
@@ -0,0 +1,82 @@
+root:x:0:brltty,root
+bin:x:1:root,bin,daemon
+daemon:x:2:root,bin,daemon
+sys:x:3:root,bin
+adm:x:4:root,daemon
+tty:x:5:brltty
+disk:x:6:root
+lp:x:7:cups,daemon,chanel
+mem:x:8:
+kmem:x:9:
+wheel:x:10:root,chanel
+ftp:x:11:
+mail:x:12:
+uucp:x:14:brltty,chanel
+log:x:19:root
+utmp:x:20:
+locate:x:21:
+rfkill:x:24:
+smmsp:x:25:
+proc:x:26:polkitd
+http:x:33:
+games:x:50:
+lock:x:54:
+uuidd:x:68:
+dbus:x:81:
+network:x:90:
+video:x:91:
+audio:x:92:brltty
+optical:x:93:
+floppy:x:94:
+storage:x:95:
+scanner:x:96:
+input:x:97:brltty
+power:x:98:
+nobody:x:99:
+users:x:100:
+systemd-journal:x:190:
+systemd-journal-gateway:x:191:
+systemd-timesync:x:192:
+systemd-network:x:193:
+systemd-bus-proxy:x:194:
+systemd-resolve:x:195:
+systemd-journal-upload:x:999:
+systemd-coredump:x:997:
+systemd-journal-remote:x:998:
+polkitd:x:102:
+chanel:x:1000:
+git:x:996:
+avahi:x:84:
+rtkit:x:133:
+colord:x:124:
+gdm:x:120:
+usbmux:x:140:
+brlapi:x:995:brltty
+vboxusers:x:108:chanel,root
+rpc:x:32:
+mysql:x:89:
+kvm:x:994:
+mmi:x:1010:chanel,chanel-unige
+render:x:993:
+cups:x:209:
+chanel-unige:x:1154:
+docker:x:992:chanel
+geoclue:x:991:
+flatpak:x:990:
+adbusers:x:989:
+lxdm:x:988:
+exim:x:79:
+postdrop:x:75:
+nvidia-persistenced:x:143:
+dhcpcd:x:987:
+named:x:40:
+tor:x:43:
+mailpile:x:986:mailpile
+rainloop:x:985:
+gitlab-runner:x:107:
+tox-bootstrapd:x:199:
+brltty:x:984:
+x2gouser:x:111:
+x2goprint:x:112:
+sgx:x:983:
+systemd-oom:x:982:chanel
diff --git a/Cours/03-Scripting/exercices/serie2-test-files/passwd b/Cours/03-Scripting/exercices/serie2-test-files/passwd
new file mode 100644
index 0000000..1b10b6c
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/passwd
@@ -0,0 +1,45 @@
+root:x:0:0:root:/root:/bin/bash
+bin:x:1:1:bin:/bin:/usr/bin/nologin
+daemon:x:2:2:daemon:/:/usr/bin/nologin
+mail:x:8:12:mail:/var/spool/mail:/usr/bin/nologin
+ftp:x:14:11:ftp:/srv/ftp:/usr/bin/nologin
+http:x:33:33:http:/srv/http:/usr/bin/nologin
+uuidd:x:68:68:uuidd:/:/usr/bin/nologin
+dbus:x:81:81:dbus:/:/usr/bin/nologin
+nobody:x:99:99:nobody:/:/usr/bin/nologin
+systemd-journal-gateway:x:191:191:systemd-journal-gateway:/:/usr/bin/nologin
+systemd-timesync:x:192:192:systemd-timesync:/:/usr/bin/nologin
+systemd-network:x:193:193:systemd-network:/:/usr/bin/nologin
+systemd-bus-proxy:x:194:194:systemd-bus-proxy:/:/usr/bin/nologin
+systemd-resolve:x:195:195:systemd-resolve:/:/usr/bin/nologin
+systemd-journal-upload:x:999:999:systemd Journal Upload:/:/sbin/nologin
+systemd-coredump:x:997:997:systemd Core Dumper:/:/sbin/nologin
+systemd-journal-remote:x:998:998:systemd Journal Remote:/:/sbin/nologin
+polkitd:x:102:102:Policy Kit Daemon:/:/usr/bin/nologin
+chanel:x:1000:1000::/home/chanel:/usr/bin/fish
+git:x:996:996:git daemon user:/:/bin/bash
+avahi:x:84:84:avahi:/:/bin/nologin
+rtkit:x:133:133:RealtimeKit:/proc:/bin/false
+colord:x:124:124::/var/lib/colord:/bin/false
+gdm:x:120:120:Gnome Display Manager:/var/lib/gdm:/sbin/nologin
+usbmux:x:140:140:usbmux user:/:/sbin/nologin
+rpc:x:32:32:Rpcbind Daemon:/dev/null:/bin/false
+mysql:x:89:89:MariaDB:/var/lib/mysql:/sbin/nologin
+cups:x:209:209:cups helper user:/:/sbin/nologin
+chanel-unige:x:1154:1154::/tmp:/usr/bin/fish
+geoclue:x:991:991:Geoinformation service:/var/lib/geoclue:/sbin/nologin
+flatpak:x:990:990:Flatpak system helper:/:/sbin/nologin
+lxdm:x:988:988:Lightweight X11 Display Manager:/var/lib/lxdm:/usr/bin/nologin
+exim:x:79:79:Exim MTA:/var/spool/exim:/usr/bin/nologin
+nvidia-persistenced:x:143:143:NVIDIA Persistence Daemon:/:/usr/bin/nologin
+dhcpcd:x:987:987:dhcpcd privilege separation:/var/lib/dhcpcd:/usr/bin/nologin
+named:x:40:40:BIND DNS Server:/:/usr/bin/nologin
+tor:x:43:43::/var/lib/tor:/usr/bin/nologin
+mailpile:x:986:986:mailpile daemon user:/var/lib/mailpile:/bin/bash
+rainloop:x:985:985:RainLoop User:/var/lib/rainloop:/usr/bin/nologin
+gitlab-runner:x:107:107:GitLab Runner:/var/lib/gitlab-runner:/usr/bin/nologin
+tox-bootstrapd:x:199:199:Tox bootstrapd:/:/usr/bin/nologin
+brltty:x:984:984:Braille Device Daemon:/var/lib/brltty:/usr/bin/nologin
+x2gouser:x:111:111:x2gouser:/var/lib/x2go:/usr/bin/nologin
+x2goprint:x:112:112:x2goprint:/var/spool/x2go:/usr/bin/nologin
+systemd-oom:x:982:982:systemd Userspace OOM Killer:/:/usr/bin/nologin
diff --git a/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/bigest.txt b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/bigest.txt
new file mode 100644
index 0000000..9732530
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/bigest.txt
@@ -0,0 +1,30 @@
+ Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+  Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+   Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+    Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+     Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+      Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+       Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+        Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+        v
+        v
+         Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+         v Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+          Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+          v
+           Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+            Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+             Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+              Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+               Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+               v
+                Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                 Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                  Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                   Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                   
+                    Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                     Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is.... Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                      Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                       Woaw this is clearly the biggest file with all its content which is sooooo big. Incredible, how big it is....
+                       
diff --git a/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hop.txt b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hop.txt
new file mode 100644
index 0000000..511eb68
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hop.txt
@@ -0,0 +1 @@
+hop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hophop hop
diff --git a/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hp2.txt b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hp2.txt
new file mode 100644
index 0000000..b1c71a5
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest/subsubtest/hp2.txt
@@ -0,0 +1 @@
+hphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphphp
diff --git a/Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file1.txt b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file1.txt
new file mode 100644
index 0000000..0637880
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file1.txt
@@ -0,0 +1 @@
+This is a file
diff --git a/Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file2.txt b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file2.txt
new file mode 100644
index 0000000..7e14006
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/test/subtest2/file2.txt
@@ -0,0 +1 @@
+ This is a fileThis is a fileThis is a fileThis is a fileThis is a fileThis is a fileThis is a fileThis is a fileThis is a fileThis is a fileThis is a fileThis is a file
diff --git a/Cours/03-Scripting/exercices/serie2-test-files/test/top.txt b/Cours/03-Scripting/exercices/serie2-test-files/test/top.txt
new file mode 100644
index 0000000..0dc6649
--- /dev/null
+++ b/Cours/03-Scripting/exercices/serie2-test-files/test/top.txt
@@ -0,0 +1 @@
+top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top top 
-- 
GitLab