Launch any command in epitech docker environnement
Find a file
2025-03-20 16:50:22 +01:00
epitest fix: -h being processed as an epitest argument and not a program argument 2025-03-20 16:50:22 +01:00
macOS.sh feat: graphical mode support for macOS 2025-03-20 14:10:24 +01:00
readme.md feat(docs): add macOS setup instructions to README 2025-03-20 14:26:14 +01:00
setup.sh refactor: improve readability of script messages 2025-03-15 00:53:30 +01:00

Epitest Setup and Usage Guide

Prerequisites

Before installing epitest, ensure that Docker is installed on your system. You can verify this by running:

docker --version

If Docker is not installed, follow the official Docker installation guide for your operating system.

Installation

To install epitest, follow these steps:

  1. Clone the Repository (if not already cloned):

    git clone <repository-url>
    cd <repository-directory>
    
  2. Run the Setup Script: Execute the setup script with root privileges:

    MacOS

    chmod +x macOS.sh && ./macOS.sh
    

    Note: This will also launch setup.sh

    Other

    sudo ./setup.sh
    

    What setup.sh Does:

    • Ensures the script is run with root permissions.
    • Verifies the presence of the epitest script in the current directory.
    • Copies epitest to /usr/local/bin/ for global access.
    • Grants execute permissions to epitest.
  3. Verify Installation: Check if epitest is installed correctly:

    epitest -h
    

    You should see the usage information displayed.

Usage

To execute a command within the epitest Docker environment, use:

epitest <command>

Examples:

  • Run an executable:

    epitest ./a.out
    
  • Run multiple commands (use quotes to group them):

    epitest "make re && ./a.out"
    
  • Enable graphical mode (e.g., for CSFML projects):

    epitest -g "make re && ./my_hunter"
    

Uninstallation

To remove epitest, delete the script from /usr/local/bin/:

sudo rm /usr/local/bin/epitest

Troubleshooting

If you encounter any issues:

  • Ensure Docker is running properly.
  • Verify that epitest is in /usr/local/bin/ by running:
    which epitest
    
  • Check for permission issues and rerun setup.sh with sudo.

For further assistance, consult the project repository or open an issue.