File tree 4 files changed +48
-99
lines changed
beaker-tests/Sanity/copr-cli-basic-operations
4 files changed +48
-99
lines changed Original file line number Diff line number Diff line change @@ -41,24 +41,24 @@ rlJournalStart
41
41
42
42
rlPhaseStartTest
43
43
rlRun " copr-cli create ${NAME_PREFIX} BuildSpec --enable-net on --chroot $CHROOT " 0
44
- rlRun " copr-cli build ${NAME_PREFIX} BuildSpec $HERE /files/vera .spec" 0
44
+ rlRun " copr-cli build ${NAME_PREFIX} BuildSpec $HERE /files/enum .spec" 0
45
45
46
46
# Make sure we don't upload SRPM/Spec if user tries to build into
47
47
# a non-existing project (or project he doesn't have permissions to)
48
48
OUTPUT=` mktemp`
49
- rlRun " copr-cli build --nowait ${NAME_PREFIX} NonExisting $HERE /files/vera .spec &> $OUTPUT " 1
49
+ rlRun " copr-cli build --nowait ${NAME_PREFIX} NonExisting $HERE /files/enum .spec &> $OUTPUT " 1
50
50
rlAssertEquals " " ` grep -r ' does not exist' $OUTPUT | wc -l` 1
51
51
rlAssertEquals " " ` grep -r ' Uploading package' $OUTPUT | wc -l` 0
52
52
53
53
# Or a non-existing and invalid CoprDir
54
54
OUTPUT=` mktemp`
55
- rlRun " copr-cli build --nowait ${NAME_PREFIX} BuildSpec:foo $HERE /files/vera .spec &> $OUTPUT " 1
55
+ rlRun " copr-cli build --nowait ${NAME_PREFIX} BuildSpec:foo $HERE /files/enum .spec &> $OUTPUT " 1
56
56
rlAssertEquals " " ` grep -r " Please use directory format" $OUTPUT | wc -l` 1
57
57
rlAssertEquals " " ` grep -r ' Uploading package' $OUTPUT | wc -l` 0
58
58
59
59
# Or a non-existing chroot
60
60
OUTPUT=` mktemp`
61
- rlRun " copr-cli build --nowait ${NAME_PREFIX} BuildSpec --chroot foo $HERE /files/vera .spec &> $OUTPUT " 1
61
+ rlRun " copr-cli build --nowait ${NAME_PREFIX} BuildSpec --chroot foo $HERE /files/enum .spec &> $OUTPUT " 1
62
62
rlAssertEquals " " ` grep -r ' not a valid choice' $OUTPUT | wc -l` 1
63
63
rlAssertEquals " " ` grep -r ' Uploading package' $OUTPUT | wc -l` 0
64
64
Original file line number Diff line number Diff line change
1
+ Name: enum
2
+ Version: 1.1
3
+ Release: 1%{?dist }
4
+ Summary: Seq- and jot-like enumerator
5
+
6
+ License: BSD-3-Clause
7
+ URL: https://fedorahosted.org/enum
8
+ # if this url stop existing, it'll sure be somewhere on the internet ^.^
9
+ Source0: https://praiskup.fedorapeople.org/courses/packaging/%{name }-%{version }.tar.bz2
10
+
11
+ BuildRequires: gcc
12
+ BuildRequires: make
13
+ BuildRequires: asciidoc
14
+
15
+ %description
16
+ Utility enum enumerates values (numbers) between two values, possibly
17
+ further adjusted by a step and/or a count, all given on the command line.
18
+ Before printing, values are passed through a formatter. Very fine control
19
+ over input interpretation and output is possible.
20
+
21
+ %prep
22
+ %autosetup
23
+
24
+
25
+ %build
26
+ %configure
27
+ %make_build
28
+
29
+
30
+ %install
31
+ %make_install
32
+
33
+
34
+ %files
35
+ %license COPYING
36
+ %doc ChangeLog
37
+ %{_bindir }/enum
38
+ %{_mandir }/man1/enum.1*
39
+
40
+
41
+ %changelog
42
+ *
Mon Sep 30 2024 Jiri Kyjovsky <[email protected] >
43
+ - Initial package
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ rlJournalStart
41
41
42
42
rlPhaseStartTest
43
43
rlRun " copr-cli create ${NAME_PREFIX} BuildSpecNetworking --chroot $CHROOT " 0
44
- rlRun -s " copr-cli build ${NAME_PREFIX} BuildSpecNetworking --enable-net on $HERE /files/vera .spec --nowait" 0
44
+ rlRun -s " copr-cli build ${NAME_PREFIX} BuildSpecNetworking --enable-net on $HERE /files/enum .spec --nowait" 0
45
45
rlRun " parse_build_id"
46
46
rlRun " copr watch-build $BUILD_ID "
47
47
rlRun " curl $FRONTEND_URL /backend/get-build-task/$BUILD_ID -$CHROOT | jq .enable_net"
You can’t perform that action at this time.
0 commit comments