Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: seL4
Upstream-Contact: seL4 team <support@sel4.systems>
Source: https://github.com/seL4/machine_queue

Files:
VERSION
Copyright: 2021 UNSW Sydney
License: GPL-2.0-only
5 changes: 5 additions & 0 deletions .stylefilter
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2025 Proofcraft Pty Ltd
# SPDX-License-Identifier: BSD-2-Clause

# uses bashisms, because it is for bash only:
bash_mq_completion.sh
341 changes: 0 additions & 341 deletions LICENSE

This file was deleted.

9 changes: 9 additions & 0 deletions LICENSES/BSD-2-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Copyright (c) <year> <owner>

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
170 changes: 170 additions & 0 deletions LICENSES/CC-BY-SA-4.0.txt

Large diffs are not rendered by default.

117 changes: 117 additions & 0 deletions LICENSES/GPL-2.0-only.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
Copyright 2023 UNSW, Sydney

SPDX-License-Identifier: GPL-2.0-only
SPDX-License-Identifier: CC-BY-SA-4.0
-->

Machine Queue
Expand Down Expand Up @@ -60,7 +60,7 @@ Usage
* `system-tsv` --- list available systems as tab-separated values
* `pool-tsv` --- list available pools of systems as tab-separated
values

`mq run`
--------
`mq.sh run -r|-c` _<string>_ `[-l ` _logfile_ `] -s` _system_ `[-w` _retry-time_ `] [-t `_retry-count_` ] [-n] [-a] [-d` _timeout_ `] [-e` _<string>_`] [-k `_<string>_`] [-L] -f `_file1_ `[-f `_file2_`]
Expand Down
4 changes: 4 additions & 0 deletions bash_mq_completion.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Copyright 2021 Proofcraft Pty Ltd
#
# SPDX-License-Identifier: GPL-2.0-only
#
# bash completion for mq.sh
# source this file to use: . ./bash_mq_completion.sh

Expand Down
4 changes: 4 additions & 0 deletions mq.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

file_to_dir() {
F="$1"
Expand Down
6 changes: 5 additions & 1 deletion scripts/common
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down Expand Up @@ -30,7 +34,7 @@ fi
random()
{
awk "
BEGIN { srand();
BEGIN { srand();
printf(\"%d\", $1 * rand() + 1);
}"
}
4 changes: 4 additions & 0 deletions scripts/enqueue
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ ! "${SCRIPT_PATH}" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/pool
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ ! "${SCRIPT_PATH}" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/pools/maaxboard_pool
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
8 changes: 6 additions & 2 deletions scripts/pools/odroidc4_pool
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand All @@ -7,7 +11,7 @@ fi

Systems_odroidc4_pool() {
# This function can be explicit or programatic

# Explicit:
echo "odroidc4_1"
echo "odroidc4_2"
Expand All @@ -33,7 +37,7 @@ GetRandomSystemFromPool_odroidc4_pool() {
selectOne "$free_odroidc4_systems"
else
selectOne "$odroidc4_systems"
fi
fi
}


Expand Down
8 changes: 6 additions & 2 deletions scripts/pools/rockpro64_pool
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand All @@ -7,7 +11,7 @@ fi

Systems_rockpro64_pool() {
# This function can be explicit or programatic

# Explicit:
#echo "rockpro64a"
echo "rockpro64b"
Expand All @@ -33,7 +37,7 @@ GetRandomSystemFromPool_rockpro64_pool() {
selectOne "$free_rockpro64_systems"
else
selectOne "$rockpro64__systems"
fi
fi
}


Expand Down
8 changes: 6 additions & 2 deletions scripts/pools/sabre_pool
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand All @@ -14,7 +18,7 @@ Systems_sabre_pool() {
echo ${system}
fi
done

# Explicit:
#echo "sabre"
#echo "sabre2"
Expand All @@ -38,6 +42,6 @@ GetRandomSystemFromPool_sabre_pool() {
selectOne "$free_sabre_systems"
else
selectOne "$sabre_systems"
fi
fi
}

8 changes: 6 additions & 2 deletions scripts/pools/x86_pool
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand All @@ -14,7 +18,7 @@ Systems_x86_pool() {
# echo ${system}
# fi
#done

# Explicit:
echo "haswell3"
echo "haswell4"
Expand Down Expand Up @@ -43,7 +47,7 @@ GetRandomSystemFromPool_x86_pool() {
selectOne "$free_x86_systems"
else
selectOne "$x86_systems"
fi
fi
}


Expand Down
8 changes: 6 additions & 2 deletions scripts/pools/zcu102_pool
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/bash
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand All @@ -7,7 +11,7 @@ fi

Systems_zcu102_pool() {
# This function can be explicit or programatic

# Explicit:
echo "zcu102"
echo "zcu102_2"
Expand All @@ -33,7 +37,7 @@ GetRandomSystemFromPool_zcu102_pool() {
selectOne "$free_zcu102_systems"
else
selectOne "$zcu102_systems"
fi
fi
}


Expand Down
4 changes: 4 additions & 0 deletions scripts/remote
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
8 changes: 6 additions & 2 deletions scripts/runner
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand All @@ -18,7 +22,7 @@ RebootShutdown() {
ssh -tt -oLogLevel=quiet ${HOST} "stty isig -echoctl -echo; /tftpboot/${machine}/reboot --shutdown"
else
"/tftpboot/${machine}/reboot" --shutdown
fi
fi
}

RebootConsoleRunTwoFiles() {
Expand Down Expand Up @@ -109,7 +113,7 @@ RebootConsoleRunOneFile() {
keep_alive=$5
kernel=$6
machine=$7

logfile=""
kernelfile=""

Expand Down
8 changes: 6 additions & 2 deletions scripts/system
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand All @@ -23,7 +27,7 @@ SystemBootsLinuxPXE() {
SystemList() {
(
cd "${SCRIPT_PATH}/scripts/systems/"
echo * | sed -e 's/ unavailable//' -e 's/ [^ ]*~//g' -e 's/ */\n/g'
echo * | sed -e 's/ unavailable//' -e 's/ [^ ]*~//g' -e 's/ */\n/g'
)
}

Expand All @@ -46,7 +50,7 @@ OutputSystemList() {
return 0
;;
esac
printf "+----------------+------+---------+-----------------+----------------+-------+-------+--------+\n"
printf "+----------------+------+---------+-----------------+----------------+-------+-------+--------+\n"
printf "| Name | Arch | ISA | SoC | CPU | Cores | RAM | MaxCLK |\n"
printf "+----------------+------+---------+-----------------+----------------+-------+-------+--------+\n"
for system in $(SystemList)
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/bboneblack
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/beagle
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/colorado2
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/haswell1
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/haswell3
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/haswell4
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/hifive
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/hifive1
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
4 changes: 4 additions & 0 deletions scripts/systems/hikey
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/bin/sh
#
# Copyright 2021 UNSW, Sydney
#
# SPDX-License-Identifier: GPL-2.0-only

if [ "${SCRIPT_PATH}" = "" ]; then
echo "This script should not be called directly! Please use mq.sh"
Expand Down
Loading