import os from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # change build dir test_command("mkdir -p /home/aurman/build_dir") test_command( 'sudo sh -c "{}"' ''.format( "echo 'BUILDDIR=/home/aurman/build_dir' >> /etc/makepkg.conf")) # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" ) # check if cower installed test_command("pacman -Qi cower") if "cower" not in os.listdir("/home/aurman/build_dir"): print("Error: cower has not been built in build_dir") CurrentTest.to_return = 1 else: print("Success: cower has been built in build_dir") # install pacman-git test_command( "aurman -S pacman-git --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" )
from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # change pkgdest dir test_command('sudo sh -c "{}"' ''.format("echo 'PKGDEST=/tmp' >> /etc/makepkg.conf")) # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" ) # check if cower installed test_command("pacman -Qi cower") # change pkgdest dir in different makepkg.conf test_command("mkdir -p /home/aurman/build_dir") test_command( 'sudo sh -c "{}"' ''.format("echo 'PKGDEST=/home/aurman/build_dir' > ~/.makepkg.conf")) # install pacman-git test_command( "aurman -S pacman-git --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" )
from os import getcwd from os.path import join from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install expac-git test_command("git clone https://aur.archlinux.org/expac-git.git") test_command("makepkg -si --needed --noconfirm", dir_to_execute=join(getcwd(), "expac-git")) test_command("rm -rf expac-git/") # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # change pkgdest dir test_command('sudo sh -c "{}"' ''.format("echo 'PKGDEST=/tmp' >> /etc/makepkg.conf")) # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver hkp://ipv4.pool.sks-keyservers.net:11371 --noconfirm" ) # check if cower installed test_command("pacman -Qi cower") # change pkgdest dir in different makepkg.conf test_command("mkdir -p /home/aurman/build_dir") test_command(
from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install yay test_command("aurman -Syu yay --noedit --noconfirm") # check if yay installed test_command("pacman -Qi yay") # install yay-git test_command("aurman -S yay-git --noedit --noconfirm") # check if yay-git installed test_command("pacman -Qi yay-git") # install repo package mu with double dashes test_command("aurman -S --noedit --noconfirm -- mu") # check if mu installed test_command("pacman -Qi mu") # search solutions to install mingw-w64-gcc test_command("aurmansolver -S mingw-w64-gcc") test_command("aurmansolver -S mingw-w64-gcc --deep_search") # search solutions to install ros-indigo-desktop-full test_command("aurmansolver -S ros-indigo-desktop-full") test_command("aurmansolver -S ros-indigo-desktop-full --deep_search") # install fprintd and libfprint-vfs0090-git test_command( "aurman -S fprintd libfprint-vfs0090-git --noedit --noconfirm")
import os from os import getcwd from os.path import join from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install expac-git test_command("git clone https://aur.archlinux.org/expac-git.git") test_command("makepkg -si --needed --noconfirm", dir_to_execute=join(getcwd(), "expac-git")) test_command("rm -rf expac-git/") # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver hkp://ipv4.pool.sks-keyservers.net:11371 --noconfirm") # check if cower installed test_command("pacman -Qi cower") # remove uninstalled packages test_command("aurman -Sc --aur --noconfirm") if os.path.isdir("/home/aurman/.cache/aurman/cower"): print("Success: cower cache dir has not been deleted") else: print("Error: cower cache dir has been deleted") CurrentTest.to_return = 1 # install cower-git test_command(
import os from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" ) # check if cower installed test_command("pacman -Qi cower") # remove uninstalled packages test_command("aurman -Sc --aur --noconfirm") if os.path.isdir("/home/aurman/.cache/aurman/cower"): print("Success: cower cache dir has not been deleted") else: print("Error: cower cache dir has been deleted") CurrentTest.to_return = 1 # install cower-git test_command( "aurman -S cower-git --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" ) # check if cower-git installed test_command("pacman -Qi cower-git")
import os from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # change build dir test_command("mkdir -p /home/aurman/build_dir") test_command( 'sudo sh -c "{}"' ''.format( "echo 'BUILDDIR=/home/aurman/build_dir' >> /etc/makepkg.conf")) # install yay test_command("aurman -Syu yay --noedit --noconfirm") # check if yay installed test_command("pacman -Qi yay") if "yay" not in os.listdir("/home/aurman/build_dir"): print("Error: yay has not been built in build_dir") CurrentTest.to_return = 1 else: print("Success: yay has been built in build_dir") # install pacman-git test_command("aurman -S pacman-git --noedit --noconfirm") # check if pacman-git installed test_command("pacman -Qi pacman-git") # change build dir again
from os import getcwd from os.path import join from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install expac-git test_command("git clone https://aur.archlinux.org/expac-git.git") test_command("makepkg -si --needed --noconfirm", dir_to_execute=join(getcwd(), "expac-git")) test_command("rm -rf expac-git/") # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver hkp://ipv4.pool.sks-keyservers.net:11371 --noconfirm" ) # check if cower installed test_command("pacman -Qi cower") # install cower-git test_command( "aurman -S cower-git --noedit --pgp_fetch --keyserver hkp://ipv4.pool.sks-keyservers.net:11371 --noconfirm" ) # check if cower-git installed test_command("pacman -Qi cower-git")
from datetime import datetime, timedelta from subprocess import run, DEVNULL from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # set mirror to 7 days ago test_command( "sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak") d = (datetime.today() - timedelta(days=7)).date() test_command('sudo sh -c "{}"' ''.format("echo '" "Server = https://archive.archlinux.org/repos/" "{}/{}/{}" "/\$repo/os/\$arch" "' > /etc/pacman.d/mirrorlist" "".format(d.year, str(d.month).zfill(2), str(d.day).zfill(2)))) # downgrade test_command("sudo pacman -Syyuu --noconfirm --overwrite '*'") # reset mirrors test_command( "sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist") test_command("sudo pacman -Syy") if run("pacman -Qqun", shell=True, stdout=DEVNULL, stderr=DEVNULL).returncode != 0:
from subprocess import run, DEVNULL from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # activate testing test_command('sudo sh -c "{}"' ''.format("sed -i '/\[testing\]/,/Include/s/^[ ]*#//' /etc/pacman.conf")) # update with aurman --do_everything test_command("aurman -Syu --do_everything" " --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm") if run("pacman -Qqun", shell=True, stdout=DEVNULL, stderr=DEVNULL).returncode != 0: print("Success: everything known has been updated") else: print("Error: there are some things which are not updated") CurrentTest.to_return = 1 exit(CurrentTest.to_return)
import os from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install yay test_command("aurman -Syu yay --noedit --noconfirm") # check if yay installed test_command("pacman -Qi yay") # remove uninstalled packages test_command("aurman -Sc --aur --noconfirm") if os.path.isdir("/home/aurman/.cache/aurman/yay"): print("Success: yay cache dir has not been deleted") else: print("Error: yay cache dir has been deleted") CurrentTest.to_return = 1 # install yay-git test_command("aurman -S yay-git --noedit --noconfirm") # check if yay-git installed test_command("pacman -Qi yay-git") # remove uninstalled packages test_command("aurman -Sc --aur --noconfirm") if os.path.isdir("/home/aurman/.cache/aurman/yay"): print("Error: yay cache dir has not been deleted") CurrentTest.to_return = 1 else: print("Success: yay cache dir has been deleted")
import os from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" ) # check if cower installed test_command("pacman -Qi cower") # remove uninstalled packages test_command("aurman -Sc --aur --noconfirm") if os.path.isdir("/home/aurman/.cache/aurman/cower"): print("Success: cower cache dir has not been deleted") else: print("Error: cower cache dir has been deleted") CurrentTest.to_return = 1 # install cower-git test_command( "aurman -S cower-git --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm" ) # check if cower-git installed test_command("pacman -Qi cower-git") # remove uninstalled packages test_command("aurman -Sc --aur --noconfirm") if os.path.isdir("/home/aurman/.cache/aurman/cower"): print("Error: cower cache dir has not been deleted")
from os import getcwd from os.path import join from subprocess import run, DEVNULL from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install expac-git test_command("git clone https://aur.archlinux.org/expac-git.git") test_command("makepkg -si --needed --noconfirm", dir_to_execute=join(getcwd(), "expac-git")) test_command("rm -rf expac-git/") # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # activate testing test_command( 'sudo sh -c "{}"' ''.format( "sed -i '/\[testing\]/,/Include/s/^[ ]*#//' /etc/pacman.conf")) # update with aurman --do_everything test_command( "aurman -Syu --do_everything" " --noedit --pgp_fetch --keyserver hkp://ipv4.pool.sks-keyservers.net:11371 --noconfirm" ) if run("pacman -Qqun", shell=True, stdout=DEVNULL,
from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install cower test_command( "aurman -Syu cower --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm") # check if cower installed test_command("pacman -Qi cower") # install cower-git test_command( "aurman -S cower-git --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm") # check if cower-git installed test_command("pacman -Qi cower-git") # install repo package mu with double dashes test_command( "aurman -S --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm -- mu") # check if mu installed test_command("pacman -Qi mu") # search solutions to install mingw-w64-gcc test_command("aurmansolver -S mingw-w64-gcc") test_command("aurmansolver -S mingw-w64-gcc --deep_search") # search solutions to install ros-indigo-desktop-full test_command("aurmansolver -S ros-indigo-desktop-full") test_command("aurmansolver -S ros-indigo-desktop-full --deep_search")
from subprocess import run, DEVNULL from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # activate testing test_command('sudo sh -c "{}"' ''.format("sed -i '/\[testing\]/,/Include/s/^[ ]*#//' /etc/pacman.conf")) # update with aurman --do_everything test_command("aurman -Syu --do_everything" " --noedit --pgp_fetch --keyserver keyserver.ubuntu.com --noconfirm") if run("pacman -Qqun", shell=True, stdout=DEVNULL, stderr=DEVNULL).returncode != 0: print("Success: everything known has been updated") else: print("Error: there are some things which are not updated") CurrentTest.to_return = 1 exit(CurrentTest.to_return)
from datetime import datetime, timedelta from subprocess import run, DEVNULL from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # set mirror to 7 days ago test_command( "sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak") d = (datetime.today() - timedelta(days=7)).date() test_command('sudo sh -c "{}"' ''.format("echo '" "Server = https://archive.archlinux.org/repos/" "{}/{}/{}" "/\$repo/os/\$arch" "' > /etc/pacman.d/mirrorlist" "".format(d.year, str(d.month).zfill(2), str(d.day).zfill(2)))) # downgrade test_command("sudo pacman -Syyuu --noconfirm --force") # reset mirrors test_command( "sudo mv /etc/pacman.d/mirrorlist.bak /etc/pacman.d/mirrorlist") test_command("sudo pacman -Syy") if run("pacman -Qqun", shell=True, stdout=DEVNULL, stderr=DEVNULL).returncode != 0:
from datetime import datetime, timedelta from os import getcwd from os.path import join from subprocess import run, DEVNULL from sys import exit from docker_tests.test_utils import CurrentTest, test_command if __name__ == '__main__': # install expac-git test_command("git clone https://aur.archlinux.org/expac-git.git") test_command("makepkg -si --needed --noconfirm", dir_to_execute=join(getcwd(), "expac-git")) test_command("rm -rf expac-git/") # install aurman test_command("sudo python setup.py install --optimize=1", "/home/aurman/aurman-git") # set mirror to 7 days ago test_command("sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak") d = (datetime.today() - timedelta(days=7)).date() test_command('sudo sh -c "{}"' ''.format("echo '" "Server = https://archive.archlinux.org/repos/" "{}/{}/{}" "/\$repo/os/\$arch" "' > /etc/pacman.d/mirrorlist" "".format(d.year, str(d.month).zfill(2), str(d.day).zfill(2)))) # downgrade test_command("sudo pacman -Syyuu --noconfirm --force")