37 Commits
devel ... v4

Author SHA1 Message Date
574d615ec5 Installing the rpm in binaryies folder
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 6s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-11-15 16:28:05 +08:00
cfe9d3eba7 Testing the getbinaries in the workflow
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 7s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-11-15 16:06:42 +08:00
d6162dc83d Back to normal test runner update container image
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 4s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-11-13 16:26:03 +08:00
550faf9c6b Test new runner by just updating the Dockerfile
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 2s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-11-13 16:20:07 +08:00
30d9006d70 test build
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 1m35s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 15:00:38 +08:00
a864c9c815 Remove test
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 54s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 14:29:05 +08:00
a41e79f7ae Testing another build syntax
Some checks failed
OSC Pull Custom Image Demo / build (push) Failing after 5s
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 4s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 14:24:20 +08:00
05cc6b573a Adding a build command
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 0s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 14:13:03 +08:00
aed408096c Create v4 flag to trigger rebuild
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 13:36:47 +08:00
22b5342e38 Copy the new script to dockerfile
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 13:12:58 +08:00
527b90605c Finish a checkout and buildlog cycle
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 13:07:52 +08:00
d898fcca59 Push v3 for test
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-31 10:49:06 +08:00
e2ae5bab94 test build
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-30 16:49:51 +08:00
c157ed7013 Adding expect to input username password
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 44s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-30 16:23:09 +08:00
fac40dee31 update action workflow to v2 to trigger docker build
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Has been cancelled
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-25 11:24:40 +08:00
1924414090 Change Dockerfile add a test.sh
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-25 11:21:23 +08:00
197606cee9 Push @ref factory
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 24s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-25 11:16:29 +08:00
78d68b0790 Remove tag v1 recreate error image
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 18s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-25 11:12:36 +08:00
8877a98b04 Changing the dockerfile to trigger rebuild
All checks were successful
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Successful in 2s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 14:23:10 +08:00
69189daf63 Rename the - variable name with _
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 12:52:31 +08:00
114a9339b6 remove exec and keep just echo
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 12:41:29 +08:00
5062c7aa59 Switch back to sh
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 12:23:48 +08:00
0c3b16f96e Switch to bash
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 12:17:49 +08:00
a535b4d7e7 Fix typo, update-index
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 12:14:30 +08:00
991c51f411 Adding a script to capture the variable
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 1s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 12:05:24 +08:00
68abc5d549 Testing Dockerfile
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 2s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 11:35:08 +08:00
a35e36c90d Remove the empty run with no step
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 2s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 11:27:18 +08:00
a99404f46f Add tag v1 to run in workflow job tag.
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 0s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-23 11:19:14 +08:00
511ca74741 Adding Dockerfile action.yml and obs-service to test custom docker
Some checks failed
OSC Pull Custom Image Demo / opensuse osc custom container checkout test (push) Failing after 0s
Signed-off-by: Alex Lau (AvengerMoJo) <alau@suse.com>
2023-10-20 11:38:39 +08:00
1fae16c9eb Accepting request 841945 from Base:System
- fix [bsc#1177579] -- wrong clamping of hexadecimal digits in dc
- deleted patches
  - bc-1.06-dc_ibase.patch (upstreamed)

OBS-URL: https://build.opensuse.org/request/show/841945
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=26
2020-10-18 14:28:29 +00:00
93cde5c060 Accepting request 727043 from Base:System
OBS-URL: https://build.opensuse.org/request/show/727043
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=25
2019-09-02 11:22:47 +00:00
6b939f6650 Accepting request 685953 from Base:System
- added patches
  Correct return value after 'q' [bsc#1129038]
  + bc-dc-correct-return-value.patch

OBS-URL: https://build.opensuse.org/request/show/685953
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=24
2019-03-27 15:11:24 +00:00
c0566115b7 Accepting request 486972 from Base:System
- Update to version 1.07.1: (forwarded request 486969 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/486972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=23
2017-04-25 06:54:44 +00:00
e9ee5ab0d0 Accepting request 291128 from Base:System
- Update url
- Correct info files scriplets and dependencies (forwarded request 291074 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/291128
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=22
2015-03-23 11:11:38 +00:00
2953647744 Accepting request 263376 from Base:System
- Clean up with spec-cleaner
- Add ncurses-devel as it is inherited from readline
- Explicitely pass without-libedit if we decide to switch for
  it at some point

OBS-URL: https://build.opensuse.org/request/show/263376
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=21
2014-12-01 13:00:33 +00:00
Stephan Kulow
3ae1dd26cd Accepting request 134667 from Base:System
- Add BuildRequires on makeinfo to fix Factory build

OBS-URL: https://build.opensuse.org/request/show/134667
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=17
2012-09-20 13:48:12 +00:00
Stephan Kulow
5a36c80973 Accepting request 133894 from Base:System
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/133894
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bc?expand=0&rev=16
2012-09-17 11:47:45 +00:00
13 changed files with 95 additions and 124 deletions

View File

@@ -0,0 +1,19 @@
name: OSC Pull Custom Image Demo
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
branches: [ factory ]
jobs:
osc_job:
runs-on: ubuntu-latest
name: opensuse osc custom container checkout test
steps:
- name: Build action step
uses: https://src.opensuse.org/alexlau/bc@v4
with:
osc_user: 'alexlau'
osc_path: 'home:alexlau:branches:Base:System'
osc_package: 'bc'
env: # Or as an environment variable
osc_pass: ${{ secrets.OSCPASS }}
id: osc-demo

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM opensuse/tumbleweed:latest
RUN zypper --non-interactive update
RUN zypper --non-interactive install osc expect
RUN zypper --non-interactive clean --all
#COPY test.sh /test.sh
COPY runner.sh /runner.sh
COPY osc_buildlog.sh /osc_buildlog.sh
RUN chmod +x /osc_buildlog.sh
COPY osc_checkout /osc_checkout
RUN chmod +x /osc_checkout
# ENTRYPOINT ["/test.sh"]
ENTRYPOINT ["/runner.sh"]

18
action.yml Normal file
View File

@@ -0,0 +1,18 @@
# action.yml
name: 'OSC Test'
description: 'Checkout the rpm and install run from osc'
inputs:
osc_user: # id of input
description: 'Who is the osc user'
required: true
default: 'alexlau'
outputs:
time: # id of output
description: 'The time we greeted you'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.osc_user}}
- ${{ inputs.osc_path}}
- ${{ inputs.osc_package}}

View File

@@ -1,10 +0,0 @@
--- bc-1.06/lib/number.c
+++ bc-1.06/lib/number.c
@@ -35,6 +35,7 @@
#include <assert.h>
#include <stdlib.h>
#include <ctype.h>/* Prototypes needed for external utility routines. */
+#include <string.h>
#define bc_rt_warn rt_warn
#define bc_rt_error rt_error

View File

@@ -1,11 +0,0 @@
--- ./configure.in 2000-07-08 01:34:09.000000000 +0200
+++ ./configure.in 2004-08-19 12:36:16.000000000 +0200
@@ -68,7 +68,7 @@
])
if test "$LEX" = "flex" ; then
- LEX="flex -I8"
+ LEX="flex -I -8"
else
if test "$bcrl" = "y" ; then
AC_MSG_WARN(readline works only with flex.)

View File

@@ -1,20 +0,0 @@
--- bc/bc.y
+++ bc/bc.y
@@ -203,7 +203,7 @@ statement : Warranty
{
if ($4 & 2)
warn ("Comparison in first for expression");
- if ($4 >= 0)
+ if (!($4 & 16))
generate ("p");
$4 = next_label++;
sprintf (genstr, "N%1d:", $4);
@@ -211,7 +211,7 @@ statement : Warranty
}
opt_expression ';'
{
- if ($7 < 0) generate ("1");
+ if ($7 & 16) generate ("1");
$7 = next_label++;
sprintf (genstr, "B%1d:J%1d:", $7, break_label);
generate (genstr);

View File

@@ -1,13 +0,0 @@
--- bc-1.06/dc/numeric.c
+++ bc-1.06/dc/numeric.c
@@ -254,8 +254,8 @@
{
dc_data result;
- bc_init_num((bc_num *)&result.v.number);
- bc_int2num((bc_num *)&result.v.number, value);
+ bc_init_num(&result.v.number);
+ bc_int2num(&result.v.number, value);
result.dc_type = DC_NUMBER;
return result;
}

View File

@@ -1,55 +0,0 @@
--- bc/load.c
+++ bc/load.c
@@ -156,7 +156,7 @@
long label_no;
long vaf_name; /* variable, array or function number. */
long func;
- program_counter save_adr;
+ program_counter save_adr = { 0, 0 };;
/* Initialize. */
str = code;
--- bc/scan.l
+++ bc/scan.l
@@ -143,7 +143,7 @@
/* Definitions for readline access. */
extern FILE *rl_instream;
-_PROTOTYPE(char *readline, (char *));
+/* _PROTOTYPE(char *readline, (char *)); */
/* rl_input puts upto MAX characters into BUF with the number put in
BUF placed in *RESULT. If the yy input file is the same as
--- bc/util.c
+++ bc/util.c
@@ -423,7 +423,7 @@
case 0: /* no height increase. */
return (FALSE);
case -1: /* height increase. */
- return (FALSE);
+ return (TRUE);
case -2: /* we need to do a rebalancing act. */
A = *root;
B = (*root)->left;
@@ -476,7 +476,7 @@
case 0: /* no height increase. */
return (FALSE);
case 1: /* height increase. */
- return (FALSE);
+ return (TRUE);
case 2: /* we need to do a rebalancing act. */
A = *root;
B = (*root)->right;
--- doc/bc.info
+++ doc/bc.info
@@ -1,5 +1,10 @@
This is bc.info, produced by makeinfo version 4.0 from bc.texi.
+START-INFO-DIR-ENTRY
+* bc: (bc). An arbritrary precision calculator language
+END-INFO-DIR-ENTRY
+
+

File: bc.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:250595f87ff5aa8ce91eb09f14efb19f9b9087999a8cf5751ceff8f4b4b63f21
size 230980

View File

@@ -1,12 +0,0 @@
--- bc/main.c
+++ bc/main.c
@@ -93,6 +93,9 @@ parse_args (argc, argv)
switch (optch)
{
+ case 0: /* long option */
+ break;
+
case 'c': /* compile only */
compile_only = TRUE;
break;

15
osc_buildlog.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/bin/sh -l
# echo $1 $2 $3
# echo "${osc_user} ${osc_path} ${osc_package}"
# echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}"
# osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
cd "${INPUT_OSC_PATH}/${INPUT_OSC_PACKAGE}"
osc buildlog openSUSE_Factory x86_64
echo "Getting binaries from the obs";
osc getbinaries openSUSE_Factory x86_64
ls binaries
rpm -Uvh binaries/*.rpm

20
osc_checkout Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/expect -f
# echo $1 $2 $3
# echo "${osc_user} ${osc_path} ${osc_package}"
# echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}"
set timeout -1
spawn osc checkout "$env(INPUT_OSC_PATH)" "$env(INPUT_OSC_PACKAGE)"
expect {
-re "..*Username \\\[api.opensuse.org\\\]: " { send "$env(INPUT_OSC_USER)\r"; exp_continue }
-re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue }
-re "..*Select credentials manager \\\[default=1\\\]:" { send "3\r"; exp_continue }
-re "..*Password \\\[..*\@api.opensuse.org\\\]: " { send "$env(osc_pass)\r"; exp_continue }
-re "..*At revision (..*)" { puts $expect_out(1,string);
send "cd $env(INPUT_OSC_PATH)\r"; send "cd $env(INPUT_OSC_PACKAGE)\r";
send "osc buildlog openSUSE_Factory x86_64\r";
exp_continue }
}

9
runner.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh -l
echo $1 $2 $3
echo "${osc_user} ${osc_path} ${osc_package}"
echo "${INPUT_OSC_USER} ${INPUT_OSC_PATH} ${INPUT_OSC_PACKAGE}"
# osc checkout $INPUT_OSC_PATH $INPUT_OSC_PACKAGE
# osc buildlog openSUSE_Factory x86_64
/usr/bin/expect /osc_checkout
/osc_buildlog.sh