test helper
This commit is contained in:
parent
99a2e07195
commit
055a0f5e4e
26
make_desktop_file_developer_test.sh
Normal file
26
make_desktop_file_developer_test.sh
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Define the temporary file name for the .desktop file
|
||||||
|
SCRIPT="/tmp/shortcut-$(date +%s).desktop"
|
||||||
|
|
||||||
|
# Create the .desktop file with the required content
|
||||||
|
echo "[Desktop Entry]" >> $SCRIPT
|
||||||
|
echo "Version=1.0" >> $SCRIPT
|
||||||
|
echo "Name=AVVIO PROGRAMMA COLLAUDO" >> $SCRIPT
|
||||||
|
echo "Comment=Shortcut to AVVIO PROGRAMMA COLLAUDO" >> $SCRIPT
|
||||||
|
echo "Exec=$HOME/PycharmProjects/st-ten-1/runmetest.sh" >> $SCRIPT
|
||||||
|
echo "Icon=$HOME/PycharmProjects/st-ten-1/src/ui/imgs/neo_red.ico" >> $SCRIPT
|
||||||
|
echo "Terminal=false" >> $SCRIPT
|
||||||
|
echo "Type=Application" >> $SCRIPT
|
||||||
|
echo "Categories=Utility;" >> $SCRIPT
|
||||||
|
|
||||||
|
# Prompt for sudo password and copy the .desktop file to the user's Desktop
|
||||||
|
sudo cp $SCRIPT "$HOME/Desktop/AVVIO PROGRAMMA TEST.desktop"
|
||||||
|
|
||||||
|
# Make the .desktop file executable
|
||||||
|
sudo chmod +x "$HOME/Desktop/AVVIO PROGRAMMA TEST.desktop"
|
||||||
|
|
||||||
|
# Remove the temporary .desktop file
|
||||||
|
rm $SCRIPT
|
||||||
|
|
||||||
|
echo "Shortcut created on Desktop"
|
||||||
4
runmetest.sh
Executable file
4
runmetest.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
source "./venv/bin/activate" || source "./venv/Scripts/activate" || :
|
||||||
|
python -O "./src/main.py" --no-edgetpu --no-tflite --no-autotest --sim-archiver --sim-printer --system-id=test-linux --no-autotest --no-lock --sim-io --dev-portal --auto-login-admin $*
|
||||||
Loading…
Reference in New Issue
Block a user