您好!我发现按照lab2的文档,使用make grade并不能直接获得lab2代码部分的成绩。
我进入Makefile中查看,发现默认情况下LAB这个变量等于1(LAB := 1)。
我将LAB手动改为2,并运行makefile,结果发现会报错:
./scripts/docker_build.sh
compiling kernel ...
-- The C compiler identification is GNU 7.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/aarch64-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /chos/build
before ninja
[12/12] Linking C executable kernel.img
after ninja
make grade
LAB2: test >>>>>>>>>>>>>>>>>
./scripts/run_mm_test.sh
make: ./scripts/run_mm_test.sh: Command not found
Makefile:37: recipe for target 'grade' failed
make: *** [grade] Error 127
我仔细看了报错信息和Makefile中的内容,认为是run_mm_test.sh和grade-lab2缺失。
我搜寻了网上能直接下载到的多个chcore-lab,包括github, gitee,以及好大学上的chcore-lab,发现它们都缺少了run_mm_test.sh和grade-lab2,并且文档上也没有提及怎么获得这些脚本。
请问有办法获得这些成绩测试脚本吗?或许它们会出现在chcore以后的更新中?