mirror of
https://github.com/LearningOS/rust-based-os-comp2022.git
synced 2026-02-12 22:55:36 +08:00
update Makfile for classroom autograding
This commit is contained in:
110
Makefile
110
Makefile
@@ -69,11 +69,115 @@ docker:
|
||||
build_docker:
|
||||
docker build -t ${DOCKER_NAME} .
|
||||
|
||||
setupclassroom:
|
||||
setupclassroom_test1:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test1.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git commit -m"update classroom.yml for classroom CI test"
|
||||
git push
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test2:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test2.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test3:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test3.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test4:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test4.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test5:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test5.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test1:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test1.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test6:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test6.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test7:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test7.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
setupclassroom_test8:
|
||||
mkdir -p .github/classroom/
|
||||
mkdir -p .github/workflows/
|
||||
touch .github/.keep
|
||||
cp scripts/autograding-test8.json .github/classroom/autograding.json
|
||||
cp scripts/classroom.yml .github/workflows/classroom.yml
|
||||
git add .github/classroom/autograding.json
|
||||
git add .github/workflows/classroom.yml
|
||||
git add .github/.keep
|
||||
git commit -m"update classroom.yml .keep autograding.json for classroom CI test"
|
||||
git push
|
||||
|
||||
|
||||
# setupenv:
|
||||
# sudo apt-get update
|
||||
# sudo apt-get install -y curl wget autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc xz-utils zlib1g-dev libexpat-dev pkg-config libglib2.0-dev libpixman-1-dev git tmux python3
|
||||
|
||||
14
scripts/autograding-test1.json
Normal file
14
scripts/autograding-test1.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os1",
|
||||
"setup": "",
|
||||
"run": "make test1",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test2.json
Normal file
14
scripts/autograding-test2.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os2",
|
||||
"setup": "",
|
||||
"run": "make test2",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test3.json
Normal file
14
scripts/autograding-test3.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os3",
|
||||
"setup": "",
|
||||
"run": "make test3",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test4.json
Normal file
14
scripts/autograding-test4.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os4",
|
||||
"setup": "",
|
||||
"run": "make test4",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test5.json
Normal file
14
scripts/autograding-test5.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os5",
|
||||
"setup": "",
|
||||
"run": "make test5",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test6.json
Normal file
14
scripts/autograding-test6.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "run_os6",
|
||||
"setup": "",
|
||||
"run": "make test6",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
14
scripts/autograding-test8.json
Normal file
14
scripts/autograding-test8.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"tests": [
|
||||
{
|
||||
"name": "rust_os8",
|
||||
"setup": "",
|
||||
"run": "make test8",
|
||||
"input": "",
|
||||
"output": "",
|
||||
"comparison": "included",
|
||||
"timeout": 15,
|
||||
"points": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user