3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-25 13:29:29 +01:00

pbot-vm: add Tumbleweed orchestration script

Fix Java language missing `/bin/sh` in execute()
Update brainfck language to use `bff`
This commit is contained in:
Pragmatic Software 2024-03-30 16:49:09 -07:00
parent f8a739a688
commit 91f8547aed
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
6 changed files with 31 additions and 6 deletions

View File

@ -30,7 +30,7 @@ sub postprocess {
my $input_quoted = quotemeta $self->{input};
$input_quoted =~ s/\\"/"'\\"'"/g;
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 5; echo $input_quoted | java prog $self->{arguments} > .output\"");
my ($retval, $result) = $self->execute(60, "bash -c \"date -s \@$self->{date}; ulimit -t 5; echo $input_quoted | java prog $self->{arguments} > .output\"", '/bin/sh');
$result = "";
open(FILE, '.output');

View File

@ -0,0 +1 @@
Orchestration scripts to install packages and set-up environments

View File

@ -0,0 +1,23 @@
#!/bin/sh
# File: tumbleweed
#
# Purpose: Orchestration script to install packages and set-up environment
# on OpenSUSE Tumbleweed for pbot-vim.
# SPDX-FileCopyrightText: 2024 Pragmatic Software <pragma78@gmail.com>
# SPDX-License-Identifier: MIT
# for virt-io socket
zypper in socat
# for `cc` C language support
zypper in libubsan1 libasan8 gdb gcc-32bit glibc-32bit
# for pbot-vm guest-server support
zypper in perl-IPC-Run perl-JSON-XS make
cpan i IPC::Shareable
# for `cc` additional languages
zypper in ksh zsh tcl lua php8-cli nodejs-common guile bff bc gcc-c++
zypper in --no-recommends clisp gcc-go java java-devel

View File

@ -1,6 +1,6 @@
#!/usr/bin/env perl
# SPDX-FileCopyrightText: 2021 Pragmatic Software <pragma78@gmail.com>
# SPDX-FileCopyrightText: 2021-2024 Pragmatic Software <pragma78@gmail.com>
# SPDX-License-Identifier: MIT
use warnings;
@ -15,7 +15,7 @@ sub initialize {
$self->{sourcefile} = 'prog.bf';
$self->{execfile} = 'prog.bf';
$self->{default_options} = '';
$self->{cmdline} = 'bf $options $sourcefile';
$self->{cmdline} = 'bff $options $sourcefile';
}
1;

View File

@ -20,7 +20,8 @@ sub initialize {
$self->{cmdline} = 'javac $options $sourcefile';
$self->{prelude} = <<'END';
import java.*;
import java.lang.*;
import java.util.*;
END
}

View File

@ -25,8 +25,8 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4726,
BUILD_DATE => "2024-03-27",
BUILD_REVISION => 4727,
BUILD_DATE => "2024-03-30",
};
sub initialize {}