Loading static/js/exercises.mjs +21 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,27 @@ export const pooltest = test("Pooltest Sommersemester 2022", async function () { [ -f /resources/Contacts/technik@cl.uni-heidelberg.de ] ); then echo 'yes'; else echo 'no'; fi`).hasOutput("yes") }) this.exercise("Kopieren vieler Dateien in ein neues Verzeichnis", async function () { this.describe(`Kopiere alle Dateien aus dem Verzeichnis "/resources/so_much" in einen neuen Unterordner deines Home-Verzeichnisses mit dem Namen "much".`) await this.prepareWith(`mkdir -p /resources/so_much && cd /resources/so_much && for i in "peter" "susanne" "josef" "martin" "samira" "gerhard" "manfred" "ahmad" do for j in "dateien" "dokumente" "filme" "videos" "musik" "software" do echo "Some content" > "$i-$j" done done `) await this.manualConfirmation() // TODO: check if everything was copied correctly this.verify("ls /resources/so_much").hasOutput("") }) // To add another exercise, simply copy and paste an exercise(...) block from above and adjust it. Loading Loading
static/js/exercises.mjs +21 −0 Original line number Diff line number Diff line Loading @@ -269,6 +269,27 @@ export const pooltest = test("Pooltest Sommersemester 2022", async function () { [ -f /resources/Contacts/technik@cl.uni-heidelberg.de ] ); then echo 'yes'; else echo 'no'; fi`).hasOutput("yes") }) this.exercise("Kopieren vieler Dateien in ein neues Verzeichnis", async function () { this.describe(`Kopiere alle Dateien aus dem Verzeichnis "/resources/so_much" in einen neuen Unterordner deines Home-Verzeichnisses mit dem Namen "much".`) await this.prepareWith(`mkdir -p /resources/so_much && cd /resources/so_much && for i in "peter" "susanne" "josef" "martin" "samira" "gerhard" "manfred" "ahmad" do for j in "dateien" "dokumente" "filme" "videos" "musik" "software" do echo "Some content" > "$i-$j" done done `) await this.manualConfirmation() // TODO: check if everything was copied correctly this.verify("ls /resources/so_much").hasOutput("") }) // To add another exercise, simply copy and paste an exercise(...) block from above and adjust it. Loading