Commit 92533bea authored by Natanael Copa's avatar Natanael Copa

test: dont run sh manually but respect #!/bin/sh in each test

That way we can set sh options case by case
parent 2dd7ad9a
......@@ -2,3 +2,5 @@ src
pkg
*.apk
*.tar.gz
conf.mk
-include conf.mk
repos := repo1 repo2
......@@ -6,8 +7,8 @@ testroot = $(tmproot)/$(basename $@)
SUDO := sudo
APK := ../src/apk --keys-dir /etc/apk/keys
#SYSREPO ?= http://alpinelinux.org/cgi-bin/dl.cgi/edge/main
SYSREPO ?= http://192.168.8.4/main
SYSREPO ?= http://alpinelinux.org/cgi-bin/dl.cgi/edge/main
LD_LIBRARY_PATH = ../src
export LD_LIBRARY_PATH SYSREPO
......@@ -41,7 +42,7 @@ repos.stamp: $(repos)
@echo -n "$<"; \
rm -rf "$(testroot)" ;\
mkdir -p "$(testroot)"; \
if ! APK="$(APK)" ROOT="$(testroot)" SYSREPO="$(SYSREPO)" sh -e $< > $(basename $@).out 2>&1; then\
if ! APK="$(APK)" ROOT="$(testroot)" SYSREPO="$(SYSREPO)" ./$< > $(basename $@).out 2>&1; then\
echo " FAIL";\
exit 1;\
fi ;\
......
#!/bin/sh
#!/bin/sh -e
# desc: test if basic add/del/upgrade works
......
#!/bin/sh
#!/bin/sh -e
# desc: test if dependencies works
......
#!/bin/sh
#!/bin/sh -e
# desc: test successful pre-install
......
#!/bin/sh
#!/bin/sh -e
# desc: test failing pre-install
......
#!/bin/sh
#!/bin/sh -e
# desc: test post-install script
......
#!/bin/sh
#!/bin/sh -e
# desc: test triggers in kernel package
......
#!/bin/sh
#!/bin/sh -e
# desc: test triggers in busybox package
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment