Commit 66703189 authored by Giannis Kepas's avatar Giannis Kepas
Browse files

restructure the tests

parent 49192aea
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
default:
  image: ubuntu:24.04
  image: alpine/git:latest
  before_script:
    - apt update
    - apt install -y git
    - apk update
    - apk add bash
    - for filename in ./*.sh; do chmod +x "${filename}"; done
    - git clone --recurse-submodules -j8 https://netsim.cs.uowm.gr/gitlab/operating-systems/os-tests.git

@@ -12,24 +12,24 @@ stages:
test-task-1:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/e1-task1.bats
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-1/a1-task1.bats

test-task-2:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/e1-task2.bats
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-1/a1-task2.bats

test-task-3:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/e1-task3.bats
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-1/a1-task3.bats

test-task-4:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/e1-task4.bats
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-1/a1-task4.bats

test-task-5:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/e1-task5.bats
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-1/a1-task5.bats

assignment-2-tests.yml

0 → 100644
+35 −0
Original line number Diff line number Diff line
default:
  image: alpine/git:latest
  before_script:
    - apk update
    - apk add bash
    - for filename in ./*.sh; do chmod +x "${filename}"; done
    - git clone --recurse-submodules -j8 https://netsim.cs.uowm.gr/gitlab/operating-systems/os-tests.git

stages:
  - test

test-task-1:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-2/a2-task1.bats

test-task-2:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-2/a2-task2.bats

test-task-3:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-2/a2-task3.bats

test-task-4:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-2/a2-task4.bats

test-task-5:
  stage: test
  script:
    - ./os-tests/test/bats/bin/bats os-tests/test/tests/assignment-2/a2-task5.bats
+6 −0
Original line number Diff line number Diff line
#!/usr/bin/env bats

setup() {
    load 'test_helper/bats-support/load'
    load 'test_helper/bats-assert/load'
}
+6 −0
Original line number Diff line number Diff line
#!/usr/bin/env bats

setup() {
    load 'test_helper/bats-support/load'
    load 'test_helper/bats-assert/load'
}
+6 −0
Original line number Diff line number Diff line
#!/usr/bin/env bats

setup() {
    load 'test_helper/bats-support/load'
    load 'test_helper/bats-assert/load'
}
Loading