Skip to content

wepsim/tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WepSIM Tester for submissions

Initial steps

  1. First, you need to download the project (download the .zip file or "git clone" it):
   wget https://github.com/wepsim/tester/archive/refs/heads/main.zip
   unzip tester-main.zip
   cd tester-main/
  1. Then, you need to download all laboratories of each teaching group and save the associated .zip file the submissions directory.
   ls submissions
  1. Finally, complete the solutions (labeled as TODO in the test directory files)
   ls test

PHASE 1: To check one group

  1. First, you need to spin up the container with:
   ./ws.sh start
  1. To unzip the submitted files in p2-90.zip for the group 90 please use:
   ./s10_unzip.sh  p2-90.zip
  1. To prepare the execution output to compare with:
   ./s10_tests.sh      tests/tests.in   
  1. To check only the 90 group:
   ./s20_check.sh      tests/tests.in   p2-90.in
  1. Finally, you can spin down the container:
   ./ws.sh stop

PHASE 2: To check again one group and make the ajustments to the submissions

  1. First, you need to spin up the container with:
   ./ws.sh start
  1. For each submitted work named <xxxxx_yyyyy> that needs some modification please first backup the original files in the ORIGINAL subdirectory:
   mkdir -p p2-90/<xxxxx_yyyyy>/ORIGINAL
   cp    -a p2-90/<xxxxx_yyyyy>/*   p2-90/<xxxxx_yyyyy>/ORIGINAL
  • For example:
    • If file names are not OK (p2-report.pdf, ej2_microcode.txt.txt, etc.)
    • If fetch has to be removed from the submitted microcode.
    • Etc.
  • Normally the adjustments involve penalties for not following what is requested in the statement.

3.a To check again the 90 group:

   ./s10_tests.sh      tests/tests.in   
   ./s20_check.sh      tests/tests.in   p2-90.in

3.b To check again several groups:

   ./s20_check.sh      tests/tests.in   p2-80.in
   ./s20_check.sh      tests/tests.in   p2-81.in
   ./s20_check.sh      tests/tests.in   p2-82.in
   ./s20_check.sh      tests/tests.in   p2-83.in

3.c To check a sublist please use:

   mv p2-90.in p2-90-original.in
   grep 100xxx p2-90-original.in > p2-90.in
  1. Finally, you can spin down the container:
   ./ws.sh stop

About

WepSIM command line tester

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages