Correcting Java issues; improvements for make clean
This commit is contained in:
parent
4398103dc4
commit
0324ce8bbe
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,7 @@
|
||||
HelloWorld
|
||||
HelloWorld.class
|
||||
HelloWorld.exe
|
||||
tests/__pycache__
|
||||
__pycache__
|
||||
*.tar.zst
|
||||
*.tar.zst.sig
|
||||
pkg/
|
||||
|
9
Makefile
9
Makefile
@ -11,7 +11,7 @@ test: compile
|
||||
python3 -m pytest
|
||||
|
||||
clean:
|
||||
cat .gitignore | xargs rm -Rf
|
||||
for i in `cat .gitignore`; do /bin/bash -c "rm -Rf $$i"; done
|
||||
|
||||
diff:
|
||||
@echo Nothing to do.
|
||||
@ -25,8 +25,8 @@ checkperm:
|
||||
c: HelloWorld.c /usr/bin/gcc
|
||||
gcc -o HelloWorld HelloWorld.c
|
||||
|
||||
java: HelloWorld.java /usr/lib/jvm/java-15-openjdk/bin/java /usr/lib/jvm/java-15-openjdk/bin/javac
|
||||
/usr/lib/jvm/java-15-openjdk/bin/javac HelloWorld.java
|
||||
java: HelloWorld.java /usr/lib/jvm/java-18-openjdk/bin/javac /usr/lib/jvm/java-18-openjdk/bin/java
|
||||
/usr/lib/jvm/java-18-openjdk/bin/javac HelloWorld.java
|
||||
|
||||
bash: HelloWorld.bash /usr/bin/bash
|
||||
#bash HelloWorld.bash
|
||||
@ -34,9 +34,6 @@ bash: HelloWorld.bash /usr/bin/bash
|
||||
php: HelloWorld.php /usr/bin/php
|
||||
#php HelloWorld.php
|
||||
|
||||
#hack: HelloWorld.php /usr/bin/hhvm
|
||||
#hhvm --php HelloWorld.php
|
||||
|
||||
perl: HelloWorld.pl /usr/bin/perl
|
||||
#perl ./HelloWorld.pl
|
||||
|
||||
|
2
PKGBUILD
2
PKGBUILD
@ -10,7 +10,7 @@ arch=("x86_64")
|
||||
url="https://aninix.net/foundation/${pkgname}"
|
||||
license=('custom')
|
||||
groups=()
|
||||
depends=('bash>=4.4' 'php' 'perl' 'jre-openjdk>=15.0.1' 'python>=3.7')
|
||||
depends=('bash>=4.4' 'php' 'perl' 'jdk-openjdk>=18.0.1.1.u2-1' 'jre-openjdk-headless>=18.0.1.1.u2-1' 'python>=3.7')
|
||||
makedepends=('make>=4.2' 'mono>5.0.0' 'gcc' 'python-pytest')
|
||||
checkdepends=()
|
||||
optdepends=()
|
||||
|
@ -21,7 +21,7 @@ def test_cs():
|
||||
|
||||
def test_java():
|
||||
print(os.getcwd())
|
||||
fh = os.popen("/usr/lib/jvm/java-15-openjdk/bin/java HelloWorld", mode='r', buffering=-1)
|
||||
fh = os.popen("/usr/lib/jvm/java-18-openjdk/bin/java HelloWorld", mode='r', buffering=-1)
|
||||
output = fh.read()
|
||||
retcode = fh.close()
|
||||
assert retcode == None and CheckOutput(output)
|
||||
|
Loading…
Reference in New Issue
Block a user