Commit 28a4f11e authored by H. Fischer's avatar H. Fischer Committed by Jakob Moser
Browse files

Start working on copy and asterisk task

parent baeb1aa9
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -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.