Skip to content
Snippets Groups Projects
Select Git revision
  • 7dbf28afedeee12ff5fa18b88a6599f4ec782109
  • main default protected
  • switch_on_off_individuat_antennas
  • movesomeprotos
  • v1.2.9 protected
  • v1.2.10 protected
  • v1.2.8 protected
  • v1.2.7 protected
  • 1.2.7.dev0
  • v1.2.6 protected
  • v1.2.5 protected
  • 1.2.4.dev1
  • 1.2.3.dev0
  • v1.2.3 protected
  • v1.2.2 protected
  • v1.2.1 protected
  • v1.2.0 protected
  • v1.1.0 protected
  • v1.0.17 protected
  • v1.0.16 protected
  • v1.0.15 protected
  • v1.0.14 protected
  • v1.0.14.dev1 protected
  • v1.0.14.dev0 protected
24 results

pre-commit.sh

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    run_integration_test.sh 1.29 KiB
    #!/bin/bash -e
    
    if [ -z "$LOFAR20_DIR" ]; then
        # We assume we aren't in the PATH, so we can derive our path.
        # We need our parent directory.
        LOFAR20_DIR_RELATIVE=$(dirname "$0")/..
    
        # As an absolute path
        LOFAR20_DIR=$(readlink -f "${LOFAR20_DIR_RELATIVE}")
    fi
    
    # Start and stop sequence
    cd "$LOFAR20_DIR/docker-compose" || exit 1
    make stop device-sdp device-recv device-sst device-unb2 device-xst sdptr-sim recv-sim unb2-sim apsct-sim apspu-sim
    make start databaseds dsconfig elk
    
    # Give dsconfig and databaseds time to start
    sleep 60
    
    # Update the dsconfig
    # Do not remove `bash`, otherwise statement ignored by gitlab ci shell!
    bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/integration_ConfigDb.json
    
    cd "$LOFAR20_DIR/docker-compose" || exit 1
    make start sdptr-sim recv-sim unb2-sim apsct-sim apspu-sim
    
    # Give the simulators time to start
    sleep 5
    
    make start device-sdp device-recv device-sst device-unb2 device-xst
    
    # Give devices time to restart
    # TODO(Corne Lukken): Use a nicer more reliable mechanism
    sleep 60
    
    # Start the integration test
    cd "$LOFAR20_DIR/docker-compose" || exit 1
    make start integration-test
    
    # Give devices time to restart
    sleep 60
    
    # Run the integration test with the output displayed on stdout
    docker start -a "${CONTAINER_NAME_PREFIX}"integration-test