Skip to content

This is a script to test your lem-in on valid and invalid maps. Works on Linux and on MacOS.

Notifications You must be signed in to change notification settings

EvitaO/Tester-lem-in

Repository files navigation

Tester Lem-in

This is a script to test your lem-in on valid and invalid maps. Works on Linux and on MacOS.

Prerequisites

Put your lem-in executable in this folder. If you want to use it on MacOS, command in make_maps the lines with './linux_gen' and uncommand the lines with './generator'. Also in the files flow-b, flow-bs, flow-o, flow-t, flow-th you have to change the values of the variables 'start' and 'end' to the values that are commanded. For MacOS time doesn't work yet.

Usage

1      Run the following command:

$ ./script

2      You will be asked if you want to test your lem-in on valid or invalid maps

3      If you choose invalid, it will test all the maps given in the invalid_map directory.
        It will print the name of the map and if you passed(max 1 line of output) or failed(more than 1 line of output).
        Than the script is finished.

        If you choose valid, you will be asked with which maps you want to test you lem-in (flow-one, flow-ten, flow-thousand, big ,
        big-super or all).

4      The maps will be generated and saved in a directory with the name of the category.

5      It runs your lem-in with those maps and will first print the average time it takes your lem-in to execute the maps of the specified category.
        The results will be saved in a directory with 'name of the category'-results.

6      Then it will print: the name of the map, the number of lines required, how many lines your lem-in used and
        if you passed(equal or less then lines required) or failed(more than required lines).

7      You will be asked if you want to remove the maps and maps-results.

8      If you chose to run it with 'all', it runs step 4 till 7 for each category.

Example of the result

Image of results

About

This is a script to test your lem-in on valid and invalid maps. Works on Linux and on MacOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages