Skip to content
Snippets Groups Projects
Commit f38f706b authored by Robert Grancsa's avatar Robert Grancsa
Browse files

Added docker config


Signed-off-by: default avatarRobert Grancsa <robert.grancsa2002@gmail.com>
parent cdc2a28f
No related branches found
No related tags found
No related merge requests found
transpiler transpiler
*.o *.o
\ No newline at end of file *.out
\ No newline at end of file
FROM ghcr.io/open-education-hub/vmcheker-next-base-image/base-container:latest FROM gitlab.cs.pub.ro:5050/iocla/tema-1-2024
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -yqq gcc-multilib gdb curl && \
apt-get install -y build-essential valgrind
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install hw_checker RUN cargo install hw_checker
COPY ./checker ${CHECKER_DATA_DIRECTORY} COPY ./checker ${CHECKER_DATA_DIRECTORY}
COPY ./data.json ${CHECKER_DATA_DIRECTORY}
...@@ -6,9 +6,7 @@ test_all() ...@@ -6,9 +6,7 @@ test_all()
make clean make clean
ulimit -n 1024 ulimit -n 1024
cd .. cd ..
echo '<VMCK_NEXT_BEGIN>'
hw_checker --legacy hw_checker --legacy
echo '<VMCK_NEXT_END>'
} }
test_all test_all
File mode changed from 100644 to 100755
{ {
"tests": [ "tests": [
[ [
{ {
"id": 0, "id": 0,
"name": "MOV", "name": "MOV 1",
"status": "0", "status": "0",
"log": "", "log": "",
"time_normal": 0.0, "time_normal": 0.0,
"time_valgrind": 0.0, "time_valgrind": 0.0,
"timeout": 30000, "timeout": 30000,
"test_score": 5 "test_score": 5
} },
] {
], "id": 1,
"test_path": "checker/", "name": "MOV 2",
"exec_name": [ "status": "0",
"transpiler" "log": "",
], "time_normal": 0.0,
"valgrind_enabled": false "time_valgrind": 0.0,
} "timeout": 30000,
\ No newline at end of file "test_score": 5
},
{
"id": 2,
"name": "LOGICAL 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 3,
"name": "LOGICAL 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 4,
"name": "ADD 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 5,
"name": "ADD 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 6,
"name": "SUB 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 7,
"name": "SUB 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 8,
"name": "MUL 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 9,
"name": "MUL 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 10,
"name": "DIV 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 11,
"name": "DIV 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 12,
"name": "SHIFT 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 13,
"name": "SHIFT 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 14,
"name": "FOR 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 15,
"name": "FOR 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 16,
"name": "WHILE 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 17,
"name": "WHILE 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 18,
"name": "COMPLEX 1",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
},
{
"id": 19,
"name": "COMPLEX 2",
"status": "0",
"log": "",
"time_normal": 0.0,
"time_valgrind": 0.0,
"timeout": 30000,
"test_score": 5
}
]
],
"test_path": "checker/",
"exec_name": [
"transpiler"
],
"valgrind_enabled": false
}
\ No newline at end of file
...@@ -6,7 +6,7 @@ TARGET = transpiler ...@@ -6,7 +6,7 @@ TARGET = transpiler
all: $(TARGET) all: $(TARGET)
$(TARGET): main.o parser.o $(TARGET): main.o
$(CC) $(CFLAGS) -o ../$@ $^ $(CC) $(CFLAGS) -o ../$@ $^
%.o: %.c %.o: %.c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment