more updates testsuite

This commit is contained in:
Leon van Kammen 2025-06-20 16:12:34 +02:00
parent 12f05205fa
commit 6a481dffc6
14 changed files with 43 additions and 6 deletions

View file

@ -12,6 +12,10 @@
| package | description | | package | description |
|-|-| |-|-|
| [fzy](fzy) | lightweight + fast fuzzyfinder alternative | | [fzy](fzy) | lightweight + fast fuzzyfinder alternative |
| [joe](joe) | Set of battleproof lightweight text/code editors |
| [nano](nano) | Lightweight code editor with syntax highlighting |
| [testsuite](testsuite) | This tests the integrity of XRSH |
| [vim](vim) | Most popular clone of the VI editor | | [vim](vim) | Most popular clone of the VI editor |
| [zip](zip) | Popular file archiver |
> developers: run `echo "$(./README.sh)" > README.md` to regenerate this README.md after adding a pkg > developers: run `echo "$(./README.sh)" > README.md` to regenerate this README.md after adding a pkg

View file

@ -2,7 +2,7 @@
dir=$(pwd) dir=$(pwd)
# overlay our directories # overlay our directories
test -f /.fzypackage || { test -n "$BROWSER" && test -f /.fzypackage || {
cp bin/fzy /bin/. cp bin/fzy /bin/.
ln -s /bin/fzy /bin/fzf ln -s /bin/fzy /bin/fzf
echo 1 > /.fzypackage echo 1 > /.fzypackage

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
../nix/build_nixpkg.sh fzy ../build_nixpkg.sh fzy
out=$(pwd) out=$(pwd)
rm -rf *.zip bin || true rm -rf *.zip bin || true
mkdir bin || true mkdir bin || true

View file

@ -2,7 +2,7 @@
dir=$(pwd) dir=$(pwd)
# overlay our directories # overlay our directories
test -f /.overlayfs || { test -n "$BROWSER" && test -f /.overlayfs || {
find . -type d -mindepth 1 | while read dir; do find . -type d -mindepth 1 | while read dir; do
cp -d -r ./$dir/* /$dir/. cp -d -r ./$dir/* /$dir/.
done done

3
joe/README.md Normal file
View file

@ -0,0 +1,3 @@
# Joe
Set of battleproof lightweight text/code editors

View file

@ -2,7 +2,7 @@
dir=$(pwd) dir=$(pwd)
# overlay our directories # overlay our directories
test -f /.nano || { test -n "$BROWSER" && test -f /.nano || {
find . -type d -mindepth 1 | while read dir; do find . -type d -mindepth 1 | while read dir; do
cp -d -r ./$dir/* /$dir/. cp -d -r ./$dir/* /$dir/.
done done

3
nano/README.md Normal file
View file

@ -0,0 +1,3 @@
# Nano
Lightweight code editor with syntax highlighting

View file

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
dir=$(pwd) dir=$(pwd)
{ test -n "$BROWSER" && {
cd test cd test
echo -e "\n\r[!!] running package.testsuite.zip" echo -e "\n\r[!!] running package.testsuite.zip"
for test in *-*; do for test in *-*; do

View file

@ -1,3 +1,7 @@
# testsuite
This tests the integrity of XRSH
# How to run # How to run
run: run:

View file

@ -2,7 +2,7 @@
dir=$(pwd) dir=$(pwd)
# overlay our directories # overlay our directories
test -f /.vimpackage || { test -n "$BROWSER" && test -f /.vimpackage || {
cp bin/vim /bin/. cp bin/vim /bin/.
cp -r .vim /root/. cp -r .vim /root/.
echo 1 > /.vimpackage echo 1 > /.vimpackage

11
zip/.env Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
dir=$(pwd)
# overlay our directories
test -n "$BROWSER" && test -f /.fzypackage || {
cp bin/zip /bin/.
ln -s /bin/zip /bin/zip
echo 1 > /.zippackage
echo "[i] zip is now available at /bin/zip"
}

3
zip/README.md Normal file
View file

@ -0,0 +1,3 @@
# Zip
Popular file archiver

9
zip/build.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
set -e
name=zip
../build_nixpkg.sh $name
out=$(pwd)
rm -rf *.zip bin || true
mkdir bin || true
cp result/bin/* bin/.
zip -r package.$name.zip bin .env

BIN
zip/package.zip.zip Normal file

Binary file not shown.